new shader
This commit is contained in:
parent
00e14ab6ea
commit
8075eb3fd8
1 changed files with 13 additions and 0 deletions
13
shadersrc/mesh.vert
Normal file
13
shadersrc/mesh.vert
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#version 450
|
||||||
|
|
||||||
|
layout (location = 0) in vec3 vPosition;
|
||||||
|
layout (location = 1) in vec3 vNormal;
|
||||||
|
layout (location = 2) in vec3 vColor;
|
||||||
|
|
||||||
|
layout (location = 0) out vec3 outColor;
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
gl_Position = vec4(vPosition, 1.0f);
|
||||||
|
outColor = vColor;
|
||||||
|
}
|
Loading…
Reference in a new issue