move shaders to separate directory
This commit is contained in:
8
shader/instancing_fragment.glsl
Normal file
8
shader/instancing_fragment.glsl
Normal file
@ -0,0 +1,8 @@
|
||||
#version 330
|
||||
|
||||
uniform vec4 colDiffuse;
|
||||
out vec4 finalColor;
|
||||
|
||||
void main() {
|
||||
finalColor = colDiffuse;
|
||||
}
|
||||
13
shader/instancing_vertex.glsl
Normal file
13
shader/instancing_vertex.glsl
Normal file
@ -0,0 +1,13 @@
|
||||
#version 330
|
||||
|
||||
in vec3 vertexPosition;
|
||||
in vec2 vertexTexCoord;
|
||||
in vec3 vertexNormal;
|
||||
in vec4 vertexColor;
|
||||
in mat4 instanceTransform;
|
||||
|
||||
uniform mat4 mvp;
|
||||
|
||||
void main() {
|
||||
gl_Position = mvp * instanceTransform * vec4(vertexPosition, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user