Implement sonic blast rendering effect.

This commit is contained in:
Paul Chote
2025-03-28 16:26:27 +00:00
committed by Gustas Kažukauskas
parent 3111d06fcf
commit 5da2f1ba8a
6 changed files with 186 additions and 13 deletions

View File

@@ -0,0 +1,18 @@
#version {VERSION}
#ifdef GL_ES
precision mediump float;
#endif
uniform sampler2D WorldTexture;
uniform float Scale;
in vec2 vTexCoord;
out vec4 fragColor;
void main()
{
if (dot(vTexCoord, vTexCoord) >= 1.0)
discard;
fragColor = texelFetch(WorldTexture, ivec2(gl_FragCoord.xy + Scale * vTexCoord), 0);
}