Skip to content

Commit

Permalink
Merge pull request #24536 from nekomatata/android-gles3
Browse files Browse the repository at this point in the history
GLES3 Fragment shader error fix for Android
  • Loading branch information
akien-mga authored Dec 21, 2018
2 parents a0d8bfb + ab7759d commit 404f394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gles3/shaders/scene.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 404f394

Please sign in to comment.