Merge pull request #2038 from Santarh/singlePassStereoMtoon10

Fix shadow behaviour of MToon 1.0 when Single-Pass Stereo Rendering is enabled.
This commit is contained in:
ousttrue 2023-04-11 14:40:58 +09:00 committed by GitHub
commit f07012eb17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);