diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-11-25 12:32:02 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-11-25 12:32:41 -0300 |
commit | 9738ebcda047fd9b4ddf71a0da5d682ade1a2666 (patch) | |
tree | a7b5703d635fef7bf2b70933b4f0f7a512691213 /drivers/gles3/shaders | |
parent | e1cf789593ce344726f43e087e5746802454c208 (diff) |
-Fixed height fog (was broken)
-Make sure materials are named in OBJ importer, so they can be saved outside as resources.
Diffstat (limited to 'drivers/gles3/shaders')
-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 9880663143..a3792371af 100644 --- a/drivers/gles3/shaders/scene.glsl +++ b/drivers/gles3/shaders/scene.glsl @@ -2048,7 +2048,7 @@ FRAGMENT_SHADER_CODE if (fog_height_enabled) { float y = (camera_matrix * vec4(vertex,1.0)).y; - fog_amount = max(fog_amount,pow(1.0-smoothstep(fog_height_min,fog_height_max,y),fog_height_curve)); + fog_amount = max(fog_amount,pow(smoothstep(fog_height_min,fog_height_max,y),fog_height_curve)); } float rev_amount = 1.0 - fog_amount; |