mirror of
https://github.com/Kugelschieber/go-game.git
synced 2026-01-18 14:50:28 +00:00
Rendering now works! Added shaders for reference.
This commit is contained in:
13
shader/basic3D.vs
Normal file
13
shader/basic3D.vs
Normal file
@@ -0,0 +1,13 @@
|
||||
#version 130
|
||||
|
||||
uniform mat4 pv, m;
|
||||
|
||||
in vec3 vertex;
|
||||
in vec2 texCoord;
|
||||
|
||||
out vec2 tc;
|
||||
|
||||
void main(){
|
||||
tc = texCoord;
|
||||
gl_Position = pv*m*vec4(vertex, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user