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

Demo: add directional light #73

Open
Shimuuar opened this issue Jan 23, 2022 · 1 comment
Open

Demo: add directional light #73

Shimuuar opened this issue Jan 23, 2022 · 1 comment
Labels
feature New feature or request fixed in dev Fixed, but not released

Comments

@Shimuuar
Copy link

Demo only uses ambient light so all faces are are illuminated equally and so have identical color. Picture will look much nicer if directional light is added to scene. It's even more important in more complicated geometries.

Note. Not all materials interact correctly with directed light (MeshStandardMaterial does)

@altavir
Copy link
Member

altavir commented Jan 27, 2022

Fixed in 0.2.1. Lights are added as objects instead of scene options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request fixed in dev Fixed, but not released
Projects
None yet
Development

No branches or pull requests

2 participants