Is it possible to set the 'ForceNoShadowCasting' SubShader Tag via shader properties or a custom material editor?
Basically, I would like an option in my shader properties to enable me to toggle the "ForceNoShadowCasting" Tag on or off.
I am already using a custom material editor, so it is no problem for me to do it this way.
I have already tried setting a shader float property to either 0 or 1, then using the "SetOverrideTag" function from material editor to change the tag value based on that. This results in a new tag being visible in the debug inspector for the shader, and the value of this changes, as i change the property. However, no change is actually apparent in the shader.
If i manually set "ForceNoShadowCasting" to true or false in the shader code, it has the expected result.
Answer by tetriste · Oct 27, 2017 at 03:46 PM
same problem with DisableBatching :/
This is limiting the flexibility of uber shaders
Your answer
Follow this Question
Related Questions
Is there any way to do multiple passes on a texture / in a fragment shader? 1 Answer
Shader error : unexpected $end, expecting TOK_SETTEXTURE or '}' at line 18 1 Answer
_Time in Image Effects 0 Answers
Operate the shader, rotate the material 90 degrees 0 Answers
Fog not working in my own Vertext Shader 2 Answers