examples: switch to GLSL 1.30 to support Intel graphics
This commit is contained in:
parent
ce381dec2a
commit
76a70a787b
11 changed files with 17 additions and 17 deletions
|
@ -1,4 +1,4 @@
|
||||||
#version 330
|
#version 130
|
||||||
|
|
||||||
out vec4 fragColor;
|
out vec4 fragColor;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#version 330
|
#version 130
|
||||||
|
|
||||||
out vec4 fragColor;
|
out vec4 fragColor;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#version 330
|
#version 130
|
||||||
|
|
||||||
out vec4 fragColor;
|
out vec4 fragColor;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#version 330
|
#version 130
|
||||||
|
|
||||||
out vec4 fragColor;
|
out vec4 fragColor;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#version 330
|
#version 130
|
||||||
|
|
||||||
out vec4 fragColor;
|
out vec4 fragColor;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#version 330
|
#version 130
|
||||||
|
|
||||||
out vec4 fragColor;
|
out vec4 fragColor;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#version 330
|
#version 130
|
||||||
|
|
||||||
out vec4 fragColor;
|
out vec4 fragColor;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#version 330
|
#version 130
|
||||||
|
|
||||||
out vec4 fragColor;
|
out vec4 fragColor;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#version 330
|
#version 130
|
||||||
|
|
||||||
out vec4 fragColor;
|
out vec4 fragColor;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#version 330
|
#version 130
|
||||||
|
|
||||||
out vec4 fragColor;
|
out vec4 fragColor;
|
||||||
|
|
||||||
|
@ -56,13 +56,13 @@ void main(void) {
|
||||||
float k = param1;
|
float k = param1;
|
||||||
|
|
||||||
for (int i = 0; i < n; i++) {
|
for (int i = 0; i < n; i++) {
|
||||||
mat3 t = scale(0.3 + 0.02 * param2)
|
mat3 t = scale(1 + 0.03 * param2)
|
||||||
* rot(-PI/2*(k*i/n + time/1500))
|
* rot(-2*PI*i/n)
|
||||||
* trans(0.5, 0.0)
|
* trans(-0.5, 0.0)
|
||||||
* rot(2*PI*i/n)
|
* rot(PI/2*(k*i/n + time/1500))
|
||||||
* scale(1 / (1 + 0.03 * param2));
|
* scale(1 / (0.3 + 0.02 * param2));
|
||||||
|
|
||||||
float c = square(p * inverse(t));
|
float c = square(p * t);
|
||||||
scene = abs(scene - c);
|
scene = abs(scene - c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#version 330
|
#version 130
|
||||||
|
|
||||||
out vec4 fragColor;
|
out vec4 fragColor;
|
||||||
|
|
||||||
|
|
Reference in a new issue