From e37d72369510e45a0895af88d47a7fdac93ceba9 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Sun, 7 Apr 2019 23:18:29 -0700 Subject: fixes bug when setting projection matrix --- drivers/gles2/shaders/scene.glsl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/gles2/shaders') diff --git a/drivers/gles2/shaders/scene.glsl b/drivers/gles2/shaders/scene.glsl index 5d21c679ba..222dcd25cb 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 { -- cgit v1.2.3