mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-14 15:07:26 +01:00
853c1f2b92
Some built-in functions like dFdx is not available in a vertex shader, then a function that calls such built-in function should not be in a vertex shader. Closes #1701
30 lines
254 B
GLSL
30 lines
254 B
GLSL
attribute vec2 A0;
|
|
|
|
void F0(void);
|
|
void F1(void);
|
|
void F2(void);
|
|
void F3(void);
|
|
|
|
void F0(void) {
|
|
F1();
|
|
F2();
|
|
}
|
|
|
|
void F1(void) {
|
|
F2();
|
|
F3();
|
|
}
|
|
|
|
void F2(void) {
|
|
}
|
|
|
|
void F3(void) {
|
|
F2();
|
|
}
|
|
|
|
void main(void) {
|
|
F0();
|
|
gl_Position = vec4(0.0);
|
|
return;
|
|
}
|