forked from AuroraMiddleware/gtk
28b490f14f
The GL renderer should build the GLSL shaders using GskShaderBuilder. This allows us to separate the common parts into separate files, and assemble them as necessary, instead of shipping one big shader per type of GL API (GL3, GL legacy, and GLES).
7 lines
118 B
GLSL
7 lines
118 B
GLSL
void main() {
|
|
gl_Position = mvp * vec4(position, 0.0, 1.0);
|
|
|
|
// Flip the sampling
|
|
vUv = vec2(uv.x, 1 - uv.y);
|
|
}
|