-
Notifications
You must be signed in to change notification settings - Fork 17
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
Improve lighting #158
Improve lighting #158
Conversation
Hey please update snapshots |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
||
const light = new THREE.SpotLight(0xffffff, 0.2); | ||
const light = new THREE.PointLight(0xffffff, 1); | ||
light.castShadow = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should disable the shadowmap computing. We're not using it so we could save some perf here.
|
||
const light = new THREE.SpotLight(0xffffff, 0.2); | ||
const light = new THREE.PointLight(0xffffff, 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not know adding a point light to the camera would make the point light stick to the camera position! That's good to know!
Before
After