Review standard lighting sample -WIP-
It's broken.
This commit is contained in:
parent
7d81e673ed
commit
f9e4faff09
2 changed files with 12 additions and 16 deletions
|
@ -1,14 +1,14 @@
|
|||
#version 330
|
||||
|
||||
in vec3 vertexPosition;
|
||||
in vec3 vertexNormal;
|
||||
in vec2 vertexTexCoord;
|
||||
in vec3 vertexNormal;
|
||||
in vec4 vertexColor;
|
||||
|
||||
out vec3 fragPosition;
|
||||
out vec2 fragTexCoord;
|
||||
out vec4 fragColor;
|
||||
out vec3 fragNormal;
|
||||
out vec4 fragColor;
|
||||
|
||||
uniform mat4 mvp;
|
||||
|
||||
|
@ -16,8 +16,8 @@ void main()
|
|||
{
|
||||
fragPosition = vertexPosition;
|
||||
fragTexCoord = vertexTexCoord;
|
||||
fragColor = vertexColor;
|
||||
fragNormal = vertexNormal;
|
||||
|
||||
fragColor = vertexColor;
|
||||
|
||||
gl_Position = mvp*vec4(vertexPosition, 1.0);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue