Add void arg

This commit is contained in:
Mylloon 2022-05-17 17:10:41 +02:00
parent 97fdcd163e
commit ceeb9bada2
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
4 changed files with 4 additions and 4 deletions

View file

@ -7,6 +7,6 @@ out vec4 maSortie;
in float il;
void main() {
void main(void) {
maSortie = il * vsoColor;
}

View file

@ -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.);

View file

@ -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;

View file

@ -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);
}