Project as is
This commit is contained in:
commit
085ca8b7ee
15 changed files with 744 additions and 0 deletions
11
res/shaders/frag.fs
Executable file
11
res/shaders/frag.fs
Executable file
|
@ -0,0 +1,11 @@
|
|||
#version 330
|
||||
|
||||
uniform sampler2D sampler;
|
||||
|
||||
in vec2 tex;
|
||||
|
||||
layout (location = 0) out vec4 color;
|
||||
|
||||
void main() {
|
||||
color = texture(sampler, tex);
|
||||
}
|
14
res/shaders/vert.vs
Executable file
14
res/shaders/vert.vs
Executable file
|
@ -0,0 +1,14 @@
|
|||
# version 330
|
||||
|
||||
uniform mat4 pr_matrix;
|
||||
uniform mat4 vw_matrix;
|
||||
|
||||
in vec3 verts;
|
||||
in vec2 texts;
|
||||
|
||||
out vec2 tex;
|
||||
|
||||
void main() {
|
||||
tex = texts;
|
||||
gl_Position = pr_matrix * vw_matrix * vec4(verts, 1.0);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue