Is there a thorough guide on how to make lights work on ShaderMaterial? I’ve been searching and found quite many topics on it but none of them actually achieve anything useful since topics were old and threejs is changed much since.
I want to imitate how StandardMaterials work but want to do it in my own shader, I do some texture mixing and coloring in there but the end result is just plan texture and colors.
I read about adding
THREE.UniformsLib['lights'] to uniforms and setting
lights: true in ShaderMaterial. Did those, but still I cannot observe any changes as if I have no lights added to the scene.
I’d be glad if someone could lead me to a working example that I could not find out about yet, thank you!