Hi everyone,
I need someone to explain lighting with Mesh types. PROBLEM:
When I want to use SpotLight I can’t see any lights on my PlaneGeometry.
I was trying with different mesh types(I know that some of them are not affected by lights) with zero effects. I don’t get it…
Thanks @jrlazz . I’m using version 171.
OrbitControls are surprisingly easy to use. Great stuff.
I definitely must read more about lights.
For example; why the second parameter has to be soooo high? position.y is only 170 but I still have to use intensivity = 1000000 to get normal light.
Of course my code is now a bit different.
Recent versions of threejs have switched to a more physics/physically based lighting model which necessitated a change of units for lighting.
I’m also not sure about the parameters you’re passing to the spotlight constructor… it appears you’re passing an array instead of the float “decay” parameter. That could also be part of the problem.
I’m also not sure about the parameters you’re passing to the spotlight constructor… it appears you’re passing an array instead of the float “decay” parameter.
This array contains x, y and z position. It’s not a decay parameter and this entire function was made by me