Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HemisphereLight not working #110

Open
danvim opened this issue Feb 5, 2019 · 0 comments
Open

HemisphereLight not working #110

danvim opened this issue Feb 5, 2019 · 0 comments

Comments

@danvim
Copy link

danvim commented Feb 5, 2019

By adding a HemisphereLight to the Scene, all the other lights stopped emitting, but leaving out the groundColor prop, the others worked again. Essentially, all objects are rendered pitch black.

I tried manually adding a HemisphereLight through the exposed scene, and that works.

<Renderer width={this.state.width} height={this.state.height} background={0x2d2c5b}>
    <Scene width={this.state.width} ref="exposeToWindow" height={this.state.height} camera="main-camera">
      <PerspectiveCamera ref={App._onCameraMounted} name="main-camera" {...cameraProps} />
      <HemisphereLight color={0x327aff} groundColor={0xffc77f} intensity={0.6}/>
      <DirectionalLight color={0xfff5e8} position={new Vector3(0, 0, 20)} intensity={1} castShadow={true}/>
      <ReactTHREE.PointLight color={0x327aff} intensity={0.6} position={new Vector3(0, 0, 20)}/>
      <Object3D>...</Object3D>
   </Scene>
</Renderer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant