I\'m trying to get shadows to work in a custom shader in Three.js. I\'ve tried to add these into my codes:
In uniforms:
THREE.UniformsLib[\"shadowmap
I believe that you need to mark each object as casting and receiving shadows
I think its just
obj.castShadow = true; obj.recieveShadow = true;