7layout(set = 0, binding = 1, std140) uniform SpriteExtended {
13 vec4 custom_uniforms[16];
18#define iResolution ext.u0.zw
19#define time_f ext.u2.y
22layout(location = 0) in vec2 tc;
23layout(set = 0, binding = 0) uniform sampler2D samp;
34 float wave = sin(uv.x * 0.05 +
time_f * 2.0) * 0.05;
36 vec4 texColor = texture(samp, shiftedUV /
iResolution);
46 float wave = sin(uv.y * 0.05 +
time_f * 2.0) * 0.05;
48 vec4 texColor = texture(samp, shiftedUV /
iResolution);
56 float time_t = mod(
time_f, 10);
layout(set=0, binding=1, std140) uniform SpriteExtended
void main(void)
Executes the fragment shader entry point.
vec3 wave(ivec2 p, ivec2 size)
Evaluates wave for this shader effect.
vec4 snake2()
Evaluates snake2 for this shader effect.
vec4 snake1()
Evaluates snake1 for this shader effect.