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);
45 return uv + vec2(tremorX, tremorY);
54 float amplitude = 0.01 + 0.01 * sin(
time_f * 3.0);
56 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.
vec2 tremorEffect(vec2 uv, float frequency, float amplitude)
Evaluates tremorEffect for this shader effect.