Skip to content

Commit 7da8a18

Browse files
committed
shader adjustsment
1 parent aa91163 commit 7da8a18

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

addons/waterways/shaders/river.shader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ void fragment() {
221221
vec3 alb_mix = mix(albedo_color_near.rgb, albedo_color_far.rgb, alb_t);
222222
ALBEDO = mix(alb_mix, foam_color.rgb, combined_foam);
223223
// TODO - Go over to using texelfetch to get the texture to avoid edge artifacts
224-
EMISSION += textureLod(SCREEN_TEXTURE, ref_ofs, ROUGHNESS * water_depth2 * 2.0).rgb * ref_amount;
224+
EMISSION += textureLod(SCREEN_TEXTURE, ref_ofs, ROUGHNESS * water_depth2).rgb * ref_amount;
225225

226226
ALBEDO *= 1.0 - ref_amount;
227227
ALPHA = 1.0;

test_assets/TestScene.tscn

Lines changed: 19 additions & 19 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)