Skip to content

Commit

Permalink
chore: remove color lerping with reflectioncolor
Browse files Browse the repository at this point in the history
This is for testing only as it removes any averaging of color with
reflectioncolor. This is meant solely to make it easy to see the
SSR effect. This will be reverted in a future commit.
  • Loading branch information
alandtse committed Sep 6, 2024
1 parent cb29a3f commit 80acf0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/Shaders/Water.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -608,9 +608,9 @@ float3 GetWaterSpecularColor(PS_INPUT input, float3 normal, float3 viewDirection
}
# endif

float3 finalReflectionColor = lerp(reflectionColor, finalSsrReflectionColor, ssrFraction);
float3 finalReflectionColor = lerp(finalSsrReflectionColor, finalSsrReflectionColor, ssrFraction);

return lerp(ReflectionColor.xyz, finalReflectionColor, VarAmounts.y);
return lerp(finalReflectionColor.xyz, finalReflectionColor, VarAmounts.y);
}
return ReflectionColor.xyz * VarAmounts.y;
}
Expand Down

0 comments on commit 80acf0f

Please sign in to comment.