we don't need matrix[] in fact (#98)

fix scale to avoid near face cull
This commit is contained in:
Kanglai Qian
2017-09-29 18:26:27 -05:00
committed by Perfare
parent df45fa9b8e
commit e19ecf4770
3 changed files with 49 additions and 54 deletions

View File

@ -164,6 +164,7 @@ void main()
in vec3 vertexPosition;
in vec3 normalDirection;
in vec4 vertexColor;
uniform mat4 modelMatrix;
uniform mat4 viewMatrix;
out vec3 normal;
@ -171,7 +172,7 @@ out vec4 color;
void main()
{
gl_Position = viewMatrix * vec4(vertexPosition, 1.0);
gl_Position = viewMatrix * modelMatrix * vec4(vertexPosition, 1.0);
normal = normalDirection;
color = vertexColor;
}</value>