immersive-web / webxr-samples

Samples to demonstrate use of the WebXR Device API
https://immersive-web.github.io/webxr-samples/
MIT License
995 stars 479 forks source link

Example about light #76

Open nilsbacz opened 4 years ago

nilsbacz commented 4 years ago

It would be nice to have an example that shows how different light sources could be implemented. I am aware, that the lighting concepts from webGL apply here but I'm struggling to find information on how to work with the light.

As there is only one light pointing in one direction (down) in the different samples, I find it very hard to learn how to add additional light sources just from looking at the rendering files. The only thing I have figured out is how to manipulate the existing light.