Skip to content

Commit

Permalink
Merge pull request #261 from pissdemon/patch-1
Browse files Browse the repository at this point in the history
Fix ethereal.swsl not compiling in Compatibility Mode
  • Loading branch information
FoxxoTrystan authored Oct 16, 2024
2 parents 8d07fec + 06481ff commit 36d3baf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Resources/Textures/Shaders/ethereal.swsl
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ void fragment() {
// visualize distortion via:
// COLOR = vec4(w,w,w,1.0);

w *= (3.0 + 1 * 2.0);
w *= 5.0;

highp vec4 background = zTextureSpec(SCREEN_TEXTURE, ( FRAGCOORD.xy + vec2(w) ) * SCREEN_PIXEL_SIZE );
highp vec3 hsvBg = rgb2hsv(background.rgb);
hsvBg.x *= -1;
hsvBg.x *= -1.0;
background.rgb = hsv2rgb(hsvBg);

color.xyz = mix(background.xyz, color.xyz, 0.75);



COLOR = color;
}
}

0 comments on commit 36d3baf

Please sign in to comment.