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) out vec4 color;
22layout(set = 0, binding = 0) uniform sampler2D samp;
35 mat3 rotationMatrix = mat3(
40 0.701, -0.587, -0.114,
41 -0.299, 0.413, -0.114,
48 return vec4(rotationMatrix * color.rgb, color.a);
56 vec4 sampledColor = texture(samp, uv);
59 color = adjustedColor;
layout(set=0, binding=1, std140) uniform SpriteExtended
void main(void)
Executes the fragment shader entry point.
vec4 adjustHue(vec4 color, float angle)
Evaluates adjustHue for this shader effect.
float W(vec2 p)
Evaluates W for this shader effect.
vec3 hueShift(vec3 col, float hue)
Evaluates hueShift for this shader effect.