Added basic vertex and fragment shaders.

This commit is contained in:
Harrison Deng 2019-12-28 00:13:16 -06:00
parent 8c0ba20df5
commit b49415dc68
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,10 @@
out vec4 outputColor;
in vec2 texCoord;
uniform sampler2D texture0;
void main()
{
outputColor = texture(texture0, texCoord);
}

View File

@ -0,0 +1,7 @@
#version 330 core
layout (location = 0) in vec3 aPosition;
void main()
{
gl_Position = vec4(aPosition, 1.0);
}

View File

@ -10,5 +10,8 @@ namespace RecrownedAthenaeum.Types
byte[] ColorData { byte[] ColorData {
get; get;
} }
float[] vertices {
get;
}
} }
} }