fix typos
This commit is contained in:
parent
92a7d65b36
commit
8226600ad3
5 changed files with 3 additions and 6 deletions
|
@ -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.);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
void cube(int etat) {
|
||||
static GLuint cube = 0, proc_id = 0;
|
||||
|
||||
static GLclampf rgb[3] = { 0 };
|
||||
|
||||
switch(etat) {
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
void cube2(int etat) {
|
||||
static GLuint cube = 0, proc_id = 0;
|
||||
|
||||
static GLclampf rgb[3] = { 0 };
|
||||
|
||||
switch(etat) {
|
||||
|
|
|
@ -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]);
|
||||
|
|
Reference in a new issue