blob: 04c7b5f6020c8f06c8fe43d473694e9c36d15ea4 [file] [log] [blame]
@ctype mat4 rive::Mat4
@vs vs
uniform vs_params {
mat4 mvp;
};
in vec2 pos;
in vec2 texcoord0;
out vec2 uv;
void main() {
gl_Position = mvp * vec4(pos.x, pos.y, 0.0, 1.0);
uv = texcoord0;
}
@end
@fs fs
uniform sampler2D tex;
in vec2 uv;
out vec4 frag_color;
void main() {
frag_color = texture(tex, uv);
}
@end
@program rive_tess vs fs