From e81a1e5b5a62f0f1a21a547a0f0f322a51a282db Mon Sep 17 00:00:00 2001 From: clayjohn Date: Mon, 21 Nov 2022 09:56:08 -0800 Subject: Expose model_matrix in GLES3 scene fragment shader --- drivers/gles3/shaders/scene.glsl | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gles3/shaders/scene.glsl b/drivers/gles3/shaders/scene.glsl index 01135a9bbd..04dba602dd 100644 --- a/drivers/gles3/shaders/scene.glsl +++ b/drivers/gles3/shaders/scene.glsl @@ -920,6 +920,7 @@ void main() { #else vec3 view = -normalize(vertex_interp); #endif + highp mat4 model_matrix = world_transform; vec3 albedo = vec3(1.0); vec3 backlight = vec3(0.0); vec4 transmittance_color = vec4(0.0, 0.0, 0.0, 1.0); -- cgit v1.2.3