Skip to content

Commit

Permalink
Merge pull request #45 from SetoKaiba/master
Browse files Browse the repository at this point in the history
Fix 2019.1 compatibility issue
  • Loading branch information
Santarh authored May 7, 2019
2 parents 98e553e + cbd3777 commit 453ac11
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions MToon/Resources/Shaders/MToon.shader
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,30 @@ Shader "VRM/MToon"
ENDCG
}

// Cast transparent shadow
UsePass "Standard/SHADOWCASTER"
// ------------------------------------------------------------------
// Shadow rendering pass
Pass {
Name "ShadowCaster"
Tags { "LightMode" = "ShadowCaster" }

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 multi_compile_shadowcaster

#pragma vertex vertShadowCaster
#pragma fragment fragShadowCaster

#include "UnityStandardShadow.cginc"

ENDCG
}
}

Fallback "Unlit/Texture"
Expand Down

0 comments on commit 453ac11

Please sign in to comment.