Skip to content

Commit

Permalink
fix ShadowCaster's keywords & cullmode
Browse files Browse the repository at this point in the history
  • Loading branch information
Santarh committed May 7, 2019
1 parent 453ac11 commit bc933ec
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions MToon/Resources/Shaders/MToon.shader
Original file line number Diff line number Diff line change
Expand Up @@ -130,28 +130,23 @@ Shader "VRM/MToon"
ENDCG
}

// ------------------------------------------------------------------
// Shadow rendering pass
Pass {
Pass
{
Name "ShadowCaster"
Tags { "LightMode" = "ShadowCaster" }

ZWrite On ZTest LEqual
Cull [_CullMode]
ZWrite On
ZTest LEqual

CGPROGRAM
#pragma target 2.0

#pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON
#pragma shader_feature _METALLICGLOSSMAP
#pragma shader_feature _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A
#pragma skip_variants SHADOWS_SOFT
#pragma target 3.0
#pragma multi_compile _ _ALPHATEST_ON _ALPHABLEND_ON
#pragma multi_compile_shadowcaster

#pragma vertex vertShadowCaster
#pragma fragment fragShadowCaster

#include "UnityStandardShadow.cginc"

ENDCG
}
}
Expand Down

0 comments on commit bc933ec

Please sign in to comment.