diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-12-21 22:25:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-21 22:25:03 +0100 |
commit | 404f39422665375e62863c0247768759bb2cd0be (patch) | |
tree | 65268d81b4837cf90702d9e5a4f6934408e0fd1e | |
parent | a0d8bfb0d2ff50f4de7837767611688b962fd564 (diff) | |
parent | ab7759dbd1b4eb22864f70a3ecb80e786054ad87 (diff) |
Merge pull request #24536 from nekomatata/android-gles3
GLES3 Fragment shader error fix for Android
-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 ff273e4e9f..8b1f18ccbd 100644 --- a/drivers/gles3/shaders/scene.glsl +++ b/drivers/gles3/shaders/scene.glsl @@ -2028,7 +2028,7 @@ FRAGMENT_SHADER_CODE //apply fog if (fog_depth_enabled) { - float fog_far = fog_depth_end > 0 ? fog_depth_end : z_far; + float fog_far = fog_depth_end > 0.0 ? fog_depth_end : z_far; float fog_z = smoothstep(fog_depth_begin, fog_far, length(vertex)); |