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/basic2D.vs
Normal file
13
shader/basic2D.vs
Normal file
@@ -0,0 +1,13 @@
|
||||
#version 130
|
||||
|
||||
uniform mat3 o, m;
|
||||
|
||||
in vec2 vertex;
|
||||
in vec2 texCoord;
|
||||
|
||||
out vec2 tc;
|
||||
|
||||
void main(){
|
||||
tc = texCoord;
|
||||
gl_Position = vec4(o*m*vec3(vertex, 1.0), 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user