summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2022-11-21 09:56:08 -0800
committerclayjohn <claynjohn@gmail.com>2022-11-21 09:56:08 -0800
commite81a1e5b5a62f0f1a21a547a0f0f322a51a282db (patch)
tree844e69a15c0ab9e049693f0036ecd95ad85ad0f0
parent11e1c83309e7e7c15018c8b2c6456fa294116244 (diff)
Expose model_matrix in GLES3 scene fragment shader
-rw-r--r--drivers/gles3/shaders/scene.glsl1
1 files changed, 1 insertions, 0 deletions
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);