Fix shadow behaviour of MToon 1.0 when Single-Pass Stereo Rendering is enabled.

This commit is contained in:
Masataka SUMI
2023-04-11 01:42:40 +09:00
parent 1913bd4932
commit 451bee1b88

View File

@@ -20,6 +20,7 @@ half4 MToonFragment(const FragmentInput fragmentInput) : SV_Target
}
const Varyings input = fragmentInput.varyings;
UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(input);
// Get MToon UV (with UVAnimation)
const float2 uv = GetMToonGeometry_Uv(input.uv);