So if I am modifying something in the PBR glsl code how do I do a define check for mesh.receiveShadows?
Something like
#ifdef SHADOWS
doSomething
#endif
Its not seeming to be the SHADOWS define though.
So if I am modifying something in the PBR glsl code how do I do a define check for mesh.receiveShadows?
Something like
#ifdef SHADOWS
doSomething
#endif
Its not seeming to be the SHADOWS define though.
It’s SHADOW0
, SHADOW1
, etc because we append the light index to SHADOW
to make the define.