Added basic vertex and fragment shaders.
This commit is contained in:
parent
8c0ba20df5
commit
b49415dc68
10
RecrownedAthenaeum/Render/Shader/default.frag
Normal file
10
RecrownedAthenaeum/Render/Shader/default.frag
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
out vec4 outputColor;
|
||||||
|
|
||||||
|
in vec2 texCoord;
|
||||||
|
|
||||||
|
uniform sampler2D texture0;
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
outputColor = texture(texture0, texCoord);
|
||||||
|
}
|
7
RecrownedAthenaeum/Render/Shader/default.vert
Normal file
7
RecrownedAthenaeum/Render/Shader/default.vert
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#version 330 core
|
||||||
|
layout (location = 0) in vec3 aPosition;
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
gl_Position = vec4(aPosition, 1.0);
|
||||||
|
}
|
@ -10,5 +10,8 @@ namespace RecrownedAthenaeum.Types
|
|||||||
byte[] ColorData {
|
byte[] ColorData {
|
||||||
get;
|
get;
|
||||||
}
|
}
|
||||||
|
float[] vertices {
|
||||||
|
get;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user