Merge pull request #1055 from HifiExperiments/mtoonGLES

Fix mtoon issue on GLES
This commit is contained in:
HifiExperiments 2024-07-06 11:54:49 -07:00 committed by GitHub
commit 2dd7306a5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -465,7 +465,7 @@ float fetchUVAnimationMaskMap(vec2 uv) {
<@func evalMaterialShadingShift(fetchedShadingShift, materialShadingShift, matKey, shadingShift)@>
{
<$shadingShift$> = mix(0.0, <$materialShadingShift$>, float((<$matKey$> & SHADING_SHIFT_VAL_BIT) != 0));
<$shadingShift$> += mix(0.0, <$fetchedShadingShift$>.r, float((<$matKey$> & SHADING_SHIFT_MAP_BIT) != 0));
<$shadingShift$> += mix(0.0, <$fetchedShadingShift$>, float((<$matKey$> & SHADING_SHIFT_MAP_BIT) != 0));
}
<@endfunc@>