mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Fixed fragment shader compilation error on android (S0001: Cannot compare 'float' with 'int')
This commit is contained in:
parent
a0d8bfb0d2
commit
ab7759dbd1
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user