Graphics, Programming, Unity, Tutorial, Technology.
block. UpdateSurfaceType will refresh the ZWrite mode, Blend modes, tags and shadow caster based on the _SurfaceType. Since the function runs post-input, its safe to read properties directly from the material. Use a switch statement to refresh the material based on the SurfaceType enum. Set render