fix typos

This commit is contained in:
Mylloon 2022-05-16 12:39:23 +02:00
parent 92a7d65b36
commit 8226600ad3
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
5 changed files with 3 additions and 6 deletions

View file

@ -14,8 +14,8 @@ const vec3 Ld = vec3(0., -.707, -.707);
void main() {
vec3 n = (transpose(inverse(modview)) * vec4(normal, 0.0)).xyz;
il = clamp(dot(n, -Ld), 0.0, 1.0);
vec3 n = (transpose(inverse(modview)) * vec4(normal, 0.)).xyz;
il = clamp(dot(n, -Ld), 0., 1.);
gl_Position = proj * view * modview * vec4(position, 1.);

View file

@ -9,6 +9,6 @@ layout (location = 2) in vec2 vsiTexCoord;
out vec2 vsoTexCoord;
void main(void) {
gl_Position = vec4(vsiPosition, 1.0);
gl_Position = vec4(vsiPosition, 1.);
vsoTexCoord = vec2(vsiTexCoord.s, vsiTexCoord.t);
}

View file

@ -4,7 +4,6 @@
void cube(int etat) {
static GLuint cube = 0, proc_id = 0;
static GLclampf rgb[3] = { 0 };
switch(etat) {

View file

@ -4,7 +4,6 @@
void cube2(int etat) {
static GLuint cube = 0, proc_id = 0;
static GLclampf rgb[3] = { 0 };
switch(etat) {

View file

@ -12,7 +12,6 @@ void fondu(void (*ancienne_anim)(int), void (*nouvelle_anim)(int), Uint32 temps_
quad = gl4dgGenQuadf();
glGetIntegerv(GL_VIEWPORT, viewport);
glGenTextures(2, ecran);
for(int i = 0; i < 2; ++i) {
glBindTexture(GL_TEXTURE_2D, ecran[i]);