Skip to content

Commit

Permalink
Reduced the intensity of the ECM effect. Less is more.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherCommander committed Nov 25, 2024
1 parent ecfa355 commit 81cc49c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Resources/Shaders/oolite-final-hdr.fragment
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ vec3 CRTBadSignal(sampler2D inImage, vec2 inCoords)
const float s = 50.0; // noise intensity
float x = (floor(uv.x * 300.0)) + (floor(uv.y * 300.0)) * (t * 0.1);
vec4 dtv = vec4(mod((mod(x, 2.0) + 1.0) * (mod(x, 0.0) + 0.0), 0.01) - 0.005) * s;
vec3 col = clamp(vec3(0.1, 0.1, 0.1) + dtv.xyz / fx, vec3(0.0), vec3(1.0));
vec3 col = clamp(vec3(0.1, 0.1, 0.1) + dtv.xyz / fx, vec3(0.0), vec3(0.1));

col.xyz += texture(inImage,uv).xyz;

Expand Down
2 changes: 1 addition & 1 deletion Resources/Shaders/oolite-final.fragment
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ vec3 CRTBadSignal(sampler2D inImage, vec2 inCoords)
const float s = 50.0; // noise intensity
float x = (floor(uv.x * 300.0)) + (floor(uv.y * 300.0 )) * (t * 0.1);
vec4 dtv = vec4(mod((mod(x, 2.0) + 1.0) * (mod(x, 0.0) + 0.0), 0.01) - 0.005) * s;
vec3 col = clamp(vec3(0.1, 0.1, 0.1) + dtv.xyz / fx, vec3(0.0), vec3(1.0));
vec3 col = clamp(vec3(0.1, 0.1, 0.1) + dtv.xyz / fx, vec3(0.0), vec3(0.1));

col.xyz += texture(inImage,uv).xyz;

Expand Down

0 comments on commit 81cc49c

Please sign in to comment.