diff --git a/shaders/cube.fs b/shaders/cube.fs index bcd6668..ca77746 100644 --- a/shaders/cube.fs +++ b/shaders/cube.fs @@ -7,6 +7,6 @@ out vec4 maSortie; in float il; -void main() { +void main(void) { maSortie = il * vsoColor; } diff --git a/shaders/cube.vs b/shaders/cube.vs index 69cd577..b87b251 100644 --- a/shaders/cube.vs +++ b/shaders/cube.vs @@ -16,7 +16,7 @@ out float il; const vec3 Ld = vec3(0., -.7, -.7); -void main() { +void main(void) { vec3 n = (transpose(inverse(modview)) * vec4(normal, 0.)).xyz; il = clamp(dot(n, -Ld), 0., 1.); diff --git a/shaders/voronoi.fs b/shaders/voronoi.fs index 9fba659..9ffbd7d 100644 --- a/shaders/voronoi.fs +++ b/shaders/voronoi.fs @@ -10,7 +10,7 @@ uniform sampler2D tex; in vec2 vsoTexCoord; out vec4 fragColor; -void main() { +void main(void) { float dmin = distance(vsoTexCoord, coords[0]); int imin = 0; diff --git a/shaders/voronoi.vs b/shaders/voronoi.vs index ad55821..dd46aa8 100644 --- a/shaders/voronoi.vs +++ b/shaders/voronoi.vs @@ -8,7 +8,7 @@ layout(location = 2) in vec2 texCoord; out vec2 vsoTexCoord; -void main() { +void main(void) { gl_Position = vec4(position, 1.); vsoTexCoord = vec2(texCoord.x, 1 - texCoord.y); }