mirror of
https://github.com/godotengine/godot.git
synced 2024-12-27 11:24:59 +08:00
Merge pull request #23238 from dlasalle/specular_fog
Fix gles3 shader to actually multiply specular light by rev_amount for fog calculations.
This commit is contained in:
commit
ee858d0d85
@ -2053,7 +2053,7 @@ FRAGMENT_SHADER_CODE
|
||||
|
||||
emission = emission * rev_amount + fog_color * fog_amount;
|
||||
ambient_light *= rev_amount;
|
||||
specular_light *rev_amount;
|
||||
specular_light *= rev_amount;
|
||||
diffuse_light *= rev_amount;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user