Initial commit
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,33 @@
|
||||
#type vertex
|
||||
#version 330 core
|
||||
layout (location=0) in vec3 aPos;
|
||||
layout (location=1) in vec4 aColor;
|
||||
layout (location=2) in vec2 aTexCoords;
|
||||
|
||||
uniform mat4 uProjection;
|
||||
uniform mat4 uView;
|
||||
|
||||
out vec4 fColor;
|
||||
out vec2 fTexCoords;
|
||||
|
||||
void main()
|
||||
{
|
||||
fColor = aColor;
|
||||
fTexCoords = aTexCoords;
|
||||
gl_Position = uProjection * uView * vec4(aPos, 1.0);
|
||||
}
|
||||
|
||||
#type fragment
|
||||
#version 330 core
|
||||
|
||||
uniform sampler2D TEX_SAMPLER;
|
||||
|
||||
in vec4 fColor;
|
||||
in vec2 fTexCoords;
|
||||
|
||||
out vec4 color;
|
||||
|
||||
void main()
|
||||
{
|
||||
color = texture(TEX_SAMPLER, fTexCoords);
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 55 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 420 B |
BIN
Java/LWJGLEngine/target/test-classes/de/craftix/test/Main.class
Normal file
BIN
Java/LWJGLEngine/target/test-classes/de/craftix/test/Main.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user