summaryrefslogtreecommitdiff
path: root/drivers/gles3/shaders
diff options
context:
space:
mode:
authorAyush Singla <ayushsingla2703@gmail.com>2022-11-18 16:24:56 +0530
committerAyush Singla <ayushsingla2703@gmail.com>2022-11-19 11:06:03 +0530
commit75ba0a7957b2981264b8db6e4912a73c1f4c3e38 (patch)
tree5531bbd344c9b0285e56fa4fe8e0c353b8d6b350 /drivers/gles3/shaders
parent879aac9db44c90000197ef02ae048c71f7500a2b (diff)
fixed incorrect mesh normals in shaders
Diffstat (limited to 'drivers/gles3/shaders')
-rw-r--r--drivers/gles3/shaders/scene.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/shaders/scene.glsl b/drivers/gles3/shaders/scene.glsl
index ed176c7829..57d2e22293 100644
--- a/drivers/gles3/shaders/scene.glsl
+++ b/drivers/gles3/shaders/scene.glsl
@@ -102,7 +102,7 @@ vec3 oct_to_vec3(vec2 e) {
vec3 v = vec3(e.xy, 1.0 - abs(e.x) - abs(e.y));
float t = max(-v.z, 0.0);
v.xy += t * -sign(v.xy);
- return v;
+ return normalize(v);
}
#ifdef USE_INSTANCING