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
14 lines
224 B
GLSL
14 lines
224 B
GLSL
vec4 F0(in vec4 l0);
|
|
|
|
vec4 F0(in vec4 l0) {
|
|
vec4 l1 = vec4(0);
|
|
for (float l2 = 0.0; l2 < 4.0; l2++) {
|
|
(l1).x = ((l1).x) + ((l2) * (1.0000000000e-02));
|
|
}
|
|
return l1;
|
|
}
|
|
|
|
void main(void) {
|
|
fragColor = F0(gl_FragCoord);
|
|
}
|