diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2018-12-21 20:31:10 +0100 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2018-12-21 20:31:10 +0100 |
commit | ab7759dbd1b4eb22864f70a3ecb80e786054ad87 (patch) | |
tree | 65268d81b4837cf90702d9e5a4f6934408e0fd1e /drivers/gles3/shaders/scene.glsl | |
parent | a0d8bfb0d2ff50f4de7837767611688b962fd564 (diff) |
Fixed fragment shader compilation error on android (S0001: Cannot compare 'float' with 'int')
Diffstat (limited to 'drivers/gles3/shaders/scene.glsl')
-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)); |