7layout(set = 0, binding = 1, std140) uniform SpriteExtended {
13 vec4 custom_uniforms[16];
17#define iResolution ext.u0.zw
18#define time_f ext.u2.y
21layout(location = 0) in vec2 tc;
22layout(set = 0, binding = 0) uniform sampler2D samp;
32 return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);
42 return abs(mod(t, 2.0 * maxT) - maxT);
55 float amplitude = maxAmplitude * intervalFactor;
58 return uv + vec2(tremorX, tremorY);
67 float maxAmplitude = 0.02;
70 vec4 texColor = texture(samp, fract(uv));
float rand(vec2 co)
Evaluates rand for this shader effect.
layout(set=0, binding=1, std140) uniform SpriteExtended
void main(void)
Executes the fragment shader entry point.
float pingPong(float x, float length)
Evaluates pingPong for this shader effect.
vec2 tremorEffect(vec2 uv, float frequency, float amplitude)
Evaluates tremorEffect for this shader effect.