Skip to content

Commit

Permalink
shader adjustsment
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnklit committed Jan 27, 2021
1 parent aa91163 commit 7da8a18
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion addons/waterways/shaders/river.shader
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ void fragment() {
vec3 alb_mix = mix(albedo_color_near.rgb, albedo_color_far.rgb, alb_t);
ALBEDO = mix(alb_mix, foam_color.rgb, combined_foam);
// TODO - Go over to using texelfetch to get the texture to avoid edge artifacts
EMISSION += textureLod(SCREEN_TEXTURE, ref_ofs, ROUGHNESS * water_depth2 * 2.0).rgb * ref_amount;
EMISSION += textureLod(SCREEN_TEXTURE, ref_ofs, ROUGHNESS * water_depth2).rgb * ref_amount;

ALBEDO *= 1.0 - ref_amount;
ALPHA = 1.0;
Expand Down
38 changes: 19 additions & 19 deletions test_assets/TestScene.tscn

Large diffs are not rendered by default.

0 comments on commit 7da8a18

Please sign in to comment.