How do i turn off “Receive Shadows” and “Cast Shadows” in a Shader Script??
Hi,
I believe you should look at:
GetComponent<Renderer>().shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.ShadowsOnly;
GetComponent<Renderer>().receiveShadows = true;
see here for details on shadow casting mode
hope that helps,