Skip to content

Commit

Permalink
fixed transparent shader ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
orels1 committed Oct 12, 2024
1 parent 12fd0ed commit 84cc538
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
#pragma multi_compile_fragment _ VERTEXLIGHT_ON
}

%ShaderModifiers()
{
ZTest [_ZTest]
ZWrite [_ZWrite]
Cull [_CullMode]
}

%ShaderDefines()
{
#if defined(UNITY_PBS_USE_BRDF2) || defined(SHADER_API_MOBILE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ Shader %ShaderName
SubShader
{
Tags { "VRCFallback"="Standard" %ShaderTags }
ZTest[_ZTest]
ZWrite[_ZWrite]
Cull[_CullMode]

%ShaderModifiers

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

%Includes()
{
"@/Shaders/ORL Toon Transparent",
"self",
"@/Shaders/ORL Toon Transparent",
}

%ShaderModifiers()
Expand Down

0 comments on commit 84cc538

Please sign in to comment.