mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-27 04:08:53 +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
20 lines
199 B
GLSL
20 lines
199 B
GLSL
void F2(void);
|
|
void F3(void);
|
|
vec4 F5(in vec4 l0);
|
|
|
|
void F2(void) {
|
|
}
|
|
|
|
void F3(void) {
|
|
F2();
|
|
}
|
|
|
|
vec4 F5(in vec4 l0) {
|
|
F3();
|
|
return vec4(0.0);
|
|
}
|
|
|
|
void main(void) {
|
|
fragColor = F5(gl_FragCoord);
|
|
}
|