Set up Renderer base and shader compilation
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#version 430
|
||||
|
||||
uniform mat4 M;
|
||||
uniform mat4 V;
|
||||
uniform mat4 P;
|
||||
|
||||
uniform sampler2D texture0;
|
||||
|
||||
|
||||
in VertexData{
|
||||
vec3 VertexPosition;
|
||||
vec3 Normal;
|
||||
vec2 TextureCoordinate;
|
||||
} Input;
|
||||
|
||||
out vec4 fragmentColor;
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 texel = texture2D(texture0, Input.TextureCoordinate);
|
||||
fragmentColor = texel;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user