Skip to content

Commit

Permalink
Fixed GL shader compatibility (enables webgl) (#1948)
Browse files Browse the repository at this point in the history
Co-authored-by: Semphris <semphris@protonmail.com>
  • Loading branch information
Semphriss and Semphris authored Dec 15, 2021
1 parent f91b256 commit a9baeb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/shader/shader100.frag
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void main(void)
else
{
vec4 pixel = texture2D(displacement_texture, texcoord_var.st + (displacement_animate * game_time));
vec2 displacement = (pixel.rg - vec2(0.5f, 0.5f)) * 255.0f;
vec2 displacement = (pixel.rg - vec2(0.5, 0.5)) * 255.0;
float alpha = pixel.a;

vec2 uv = (fragcoord2uv * (gl_FragCoord.xyw + vec3(displacement.xy * alpha, 0))).xy;
Expand Down

0 comments on commit a9baeb9

Please sign in to comment.