summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-11-22 08:28:55 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-11-22 08:28:55 +0100
commit6d5570d790e961e90f51405633bc9212b05d7d0b (patch)
tree844e69a15c0ab9e049693f0036ecd95ad85ad0f0
parent11e1c83309e7e7c15018c8b2c6456fa294116244 (diff)
parente81a1e5b5a62f0f1a21a547a0f0f322a51a282db (diff)
Merge pull request #68966 from clayjohn/GLES3-model-matrix
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);