From 6cbacc1d86d8d0742e8abad2c570757db14f45a9 Mon Sep 17 00:00:00 2001 From: HifiExperiments Date: Sat, 29 Jun 2024 14:02:57 -0700 Subject: [PATCH] fix mtoon issue on GLES --- libraries/graphics/src/graphics/MaterialTextures.slh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/graphics/src/graphics/MaterialTextures.slh b/libraries/graphics/src/graphics/MaterialTextures.slh index 083a1146be..425b8deed8 100644 --- a/libraries/graphics/src/graphics/MaterialTextures.slh +++ b/libraries/graphics/src/graphics/MaterialTextures.slh @@ -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@>