INNER CODE UNIT · JavaScript

LightingExample

bberak/react-native-game-engine-handbook · app/opengl/lighting/index.js:7

export default class LightingExample extends PureComponent {
  constructor() {
    super();
  }

  render() {
    return (
      <GameEngine 
        style={styles.container} 
        systems={[Rotate]}
        entities={{ 
          bunny: { yaw: 0, pitch: 0, renderer: <Bunny /> }
        }}>

        <StatusBar hidden={true} />

      </GameEngine>
    );

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…