Entire project
This commit is contained in:
commit
292619749a
115 changed files with 2484 additions and 0 deletions
13
res/shaders/s2a/frag.gls
Normal file
13
res/shaders/s2a/frag.gls
Normal file
|
@ -0,0 +1,13 @@
|
|||
#version 330 core
|
||||
|
||||
uniform sampler2D sampler;
|
||||
|
||||
in vec2 texCoords;
|
||||
|
||||
out vec4 color;
|
||||
|
||||
void main() {
|
||||
color = texture(sampler, texCoords);
|
||||
if(color.a == 0)
|
||||
discard;
|
||||
}
|
15
res/shaders/s2a/vert.gls
Normal file
15
res/shaders/s2a/vert.gls
Normal file
|
@ -0,0 +1,15 @@
|
|||
#version 330 core
|
||||
|
||||
uniform mat4 mvp;
|
||||
|
||||
uniform vec2 animProps; // Loc 0 - Frame Width, Loc 1 - Offset
|
||||
|
||||
layout (location = 0) in vec3 vertices;
|
||||
layout (location = 1) in vec2 iTexCoords;
|
||||
|
||||
out vec2 texCoords;
|
||||
|
||||
void main() {
|
||||
texCoords = vec2(((iTexCoords.x * animProps.x) + animProps.y), iTexCoords.y);
|
||||
gl_Position = mvp * vec4(vertices, 1.0);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue