summaryrefslogtreecommitdiff
path: root/drivers/gles2/shaders
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-05-13 17:59:40 +0200
committerGitHub <noreply@github.com>2019-05-13 17:59:40 +0200
commit86a74e2cb3f22b1d7f84f41cce673679d1b08a18 (patch)
tree1e45fe3f3dc80604b9d174bd9d60af29a0311b3f /drivers/gles2/shaders
parente0517a12c53793ec0529d57f7792b7541aaa5223 (diff)
parente37d72369510e45a0895af88d47a7fdac93ceba9 (diff)
Merge pull request #27798 from clayjohn/gles2-proj-mat-bug
Fixes bug when setting projection matrix in shader GLES2
Diffstat (limited to 'drivers/gles2/shaders')
-rw-r--r--drivers/gles2/shaders/scene.glsl3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gles2/shaders/scene.glsl b/drivers/gles2/shaders/scene.glsl
index e7e84c4091..34f34f9961 100644
--- a/drivers/gles2/shaders/scene.glsl
+++ b/drivers/gles2/shaders/scene.glsl
@@ -424,9 +424,12 @@ void main() {
#endif
+ mat4 local_projection_matrix = projection_matrix;
+
mat4 modelview = camera_inverse_matrix * world_matrix;
float roughness = 1.0;
+#define projection_matrix local_projection_matrix
#define world_transform world_matrix
{