- Home /
Question by
Clement_Shimizu · Nov 03, 2011 at 09:56 PM ·
shaderlabztestcullz-depth
Script Control over shaderlab's Ztest and Cull properties
Is there any way to have a script control the ztest and cull properties of a shader/material at runtime?
These two properties are not exposed through the Shader or Material class interface.
I know its possible to edit the shaderlab source code to change these values, but this would be cumbersome to do across many shaders. Control from scripting would be better.
Comment
Your answer
Follow this Question
Related Questions
ZTest is not support On mobile devices? 0 Answers
Shader that renders fragment behind 0 Answers
Frustum culling question 1 Answer
Fragment shader alpha 0 Answers
Screen projected shader with lighting used to blend between textures 0 Answers