Merge pull request #24536 from nekomatata/android-gles3

GLES3 Fragment shader error fix for Android
This commit is contained in:
Rémi Verschelde 2018-12-21 22:25:03 +01:00 committed by GitHub
commit 404f394226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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));