Ben Golus
Nov 7, 2023

--

The example shader is opaque and does not support transparency without modification. The alpha value it outputs is correct, but the shader's render type, queue, ZWrite, and blend modes are all the defaults, which are for an opaque shader. You'll need to change those to make the shader transparent, and use premultipled blend mode.

Tags { "RenderType"="Transparent" "Queue"="Transparent" }

ZWrite Off

Blend One SrcAlpha

--

--

Ben Golus
Ben Golus

Written by Ben Golus

Tech Artist & Graphics Programmer lately focused on Unity VR game dev. https://ko-fi.com/bgolus

No responses yet