Skip to content

Commit

Permalink
Traktor: Sign fix in OceanLight shader.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed May 30, 2024
1 parent 195f907 commit 35454a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/Source/System/Terrain/Ocean/Shaders/Wave/OceanLight.xdi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<text>
<![CDATA[
const float _HeightModifier = 2.0f;
const float _WavePeakScatterStrength = 1.0f;
const float _WavePeakScatterStrength = 0.25f;
const float _ScatterStrength = 1.0f;
const float _ScatterShadowStrength = 0.5f;
const float _BubbleDensity = 1.0f;
Expand All @@ -19,8 +19,8 @@ vec3 ComputeOceanScattering(float heightDisplacement, vec3 viewDirection, vec3 v
const float H = max(0.0f, heightDisplacement) * _HeightModifier;
const float k1 = _WavePeakScatterStrength * H * pow(DotClamped(-viewLightDirection, -viewDirection), 4.0f) * pow(0.5f - 0.5f * dot(-viewLightDirection, viewNormal), 3.0f);
const float k2 = _ScatterStrength * pow(DotClamped(viewDirection, viewNormal), 2.0f);
const float k1 = _WavePeakScatterStrength * H * pow(DotClamped(-viewLightDirection, -viewDirection), 4.0f) * pow(0.5f - 0.5f * dot(-viewLightDirection, viewNormal), 2.0f);
const float k2 = _ScatterStrength * pow(DotClamped(-viewDirection, viewNormal), 2.0f);
const float k3 = _ScatterShadowStrength * NdotL;
const float k4 = _BubbleDensity;
Expand Down

0 comments on commit 35454a4

Please sign in to comment.