diff options
author | clayjohn <claynjohn@gmail.com> | 2019-04-07 23:18:29 -0700 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2019-04-30 08:36:38 -0700 |
commit | e37d72369510e45a0895af88d47a7fdac93ceba9 (patch) | |
tree | d1a99768cdd489cf2d65df7219da201a883cb1a1 /drivers/gles2/shaders/scene.glsl | |
parent | f52c294a748e4bc4e561fb497480560aacda2d59 (diff) |
fixes bug when setting projection matrix
Diffstat (limited to 'drivers/gles2/shaders/scene.glsl')
-rw-r--r-- | drivers/gles2/shaders/scene.glsl | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |