mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-14 15:07:26 +01:00
00e45affe9
'texelFetch' requires OpenGLSL 1.30, which requires OpenGL 3.0+. macOS might not support OpenGL 3.0 and 3.1, so adopt 3.2. Updates #1431
14 lines
239 B
GLSL
14 lines
239 B
GLSL
uniform vec2 U0;
|
|
in vec2 V0;
|
|
in vec4 V1;
|
|
|
|
vec4 F0(in vec4 l0, in vec2 l1, in vec4 l2);
|
|
|
|
vec4 F0(in vec4 l0, in vec2 l1, in vec4 l2) {
|
|
return vec4((l0).x, (l1).y, (l2).z, 1.0);
|
|
}
|
|
|
|
void main(void) {
|
|
fragColor = F0(gl_FragCoord, V0, V1);
|
|
}
|