Open davidetan opened 3 months ago
As reported by a user in this forum thread, the custom shader we use to render our meshes does not take into consideration lights and shadows.
It seems that using the onBeforeCompile callback is possible to modify the threejs base shader rather than replacing it.
onBeforeCompile
See this official example (code here).
As reported by a user in this forum thread, the custom shader we use to render our meshes does not take into consideration lights and shadows.
It seems that using the
onBeforeCompile
callback is possible to modify the threejs base shader rather than replacing it.See this official example (code here).