diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-20 11:35:52 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-20 11:35:52 +0100 |
commit | 3a43d446563e547f523bbd73936137744e51bd4d (patch) | |
tree | 0ad1a10789ef7406ed2ddbad8b1c7276b46ccb11 /drivers/gles3/shaders | |
parent | 5b235e2e5ef7905913cee74c58482e906681523e (diff) | |
parent | 75ba0a7957b2981264b8db6e4912a73c1f4c3e38 (diff) |
Merge pull request #68830 from Ayush-singla27/issuebranch
fixed incorrect mesh normals in shaders
Diffstat (limited to 'drivers/gles3/shaders')
-rw-r--r-- | drivers/gles3/shaders/scene.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/shaders/scene.glsl b/drivers/gles3/shaders/scene.glsl index f14ed24965..01135a9bbd 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 |