I know that RectAreaLight can’t cast shadows, and that’s ok… but I have this problem
A scene with a single spotlight and a single area light (you can see its highlight on the floor)
The same scene with shadow casting enabled for the spotlight
what’s wrong?
Three.js version
- Dev
It is best to redirect your question to the three.js forum.
If you can provide a live example demonstrating a bug in the current three.js revision, you may reopen this issue.
@MEBoo Thanks for the fiddle.
It seems to me the
RectAreaLight
specular highlight is incorrect withNodeMaterial
regardless of whether another light casts a shadow; toggling the shadow can amplify the error.Data is being corrupted somewhere, apparently. I am not sure what is going on…
sorry delay…
RectAreaLightUniformsLib.js
modify native uniforms but nodematerial not use native uniforms… this bug is because of thisltc_1
andltc_2
is not sended to uniforms.This example bellow fix this:
https://jsfiddle.net/8nhk975v/
this PR fix this issue
#16796
b08bc89