Started on platforms. Updated player movement.
This commit is contained in:
parent
68c7c8cbf3
commit
a0cc4ac0be
24 changed files with 1035 additions and 717 deletions
13
res/shaders/s2e/frag.gls
Normal file
13
res/shaders/s2e/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;
|
||||
}
|
14
res/shaders/s2e/vert.gls
Normal file
14
res/shaders/s2e/vert.gls
Normal file
|
@ -0,0 +1,14 @@
|
|||
#version 330 core
|
||||
|
||||
uniform vec4 subtexture = vec4(0, 0, 1, 1);
|
||||
uniform mat4 mvp;
|
||||
|
||||
layout (location = 0) in vec3 vertices;
|
||||
layout (location = 1) in vec2 itexCoords;
|
||||
|
||||
out vec2 texCoords;
|
||||
|
||||
void main() {
|
||||
texCoords = itexCoords * subtexture.zw + subtexture.xy;
|
||||
gl_Position = mvp * vec4(vertices, 1);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue