Entire project
This commit is contained in:
commit
cba41886e5
69 changed files with 3982 additions and 0 deletions
12
res/shaders/s2t/frag.gls
Normal file
12
res/shaders/s2t/frag.gls
Normal file
|
@ -0,0 +1,12 @@
|
|||
#version 330 core
|
||||
|
||||
uniform vec4 iColor = vec4(1, 1, 1, 1);
|
||||
uniform sampler2D sampler;
|
||||
|
||||
in vec2 texCoords;
|
||||
|
||||
out vec4 color;
|
||||
|
||||
void main() {
|
||||
color = texture(sampler, texCoords) * iColor;
|
||||
}
|
13
res/shaders/s2t/vert.gls
Normal file
13
res/shaders/s2t/vert.gls
Normal file
|
@ -0,0 +1,13 @@
|
|||
#version 330 core
|
||||
|
||||
uniform mat4 mvp;
|
||||
|
||||
layout (location = 0) in vec3 vertices;
|
||||
layout (location = 1) in vec2 itexCoords;
|
||||
|
||||
out vec2 texCoords;
|
||||
|
||||
void main() {
|
||||
texCoords = itexCoords;
|
||||
gl_Position = mvp * vec4(vertices, 1);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue