Description: A waving flag using vector art stored in an 8x4 texture.
8x4 Texture Description:
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
B
B
C
C
D
D
F
F
E
E
G
G
D
D
F
F
A: Landscape: 8x2 - 4 qudratic bezier curves end to end
B: Castle: 2x1 - 4 linear bezier curves end to end (r1->r2, g1->g2, b1->b2, a1->a2), mirrored on x axis.
C: Castle doors: 2x1 - 1 4th order bezier curve encoded in RGBA (combines 4 linear curves to one 4th order). mirrored on x axis.
D: Sun frame 1-4: 2x2 - 4 quadratic curves (1 in each color channel). Repeated 8 times, rendered polar. Each curve (color channel) is a keyframe in the animation
E: Sun Green Gradient: 2x1 - 1 4th order bezier curve encoded in RGBA (combine 4 linear curves to one 4th order). controls green color over distance from edge of sun.
F: Sky Gradient: 2x2 - 1 Quadratic Bezier curve per color channel. RGB = sky color gradient. A = unused.
G: Castle Color: 2x1 - 1 4th order bezier curve encoded in RGBA (combines 4 linear curves to one 4th order). Controls greyscale color of castle over height.
8x4 Texture Data (JSON):Vertex Shader Source (GLSL):Fragment Shader Source (GLSL):Back to Index