First player sprite iterations

This commit is contained in:
Gnarwhal 2024-08-07 05:02:53 +00:00
commit 68c7c8cbf3
Signed by: Gnarwhal
GPG key ID: 0989A73D8C421174
37 changed files with 3093 additions and 0 deletions

1370
res/img/player/player.ai Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 KiB

19
res/shaders/s2b/frag.gls Normal file
View file

@ -0,0 +1,19 @@
#version 330 core
uniform sampler2D layer0;
uniform sampler2D layer1;
uniform float offset0 = 1;
uniform float offset1 = 1;
in vec2 texCoords;
out vec4 color;
void main() {
vec4 color0 = texture(layer0, texCoords + vec2(0, offset0));
vec4 color1 = texture(layer1, texCoords + vec2(0, offset1));
color = mix(color0, color1, 1 - color0.a);
if (color.a == 0)
discard;
}

13
res/shaders/s2b/vert.gls Normal file
View 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);
}

9
res/shaders/s2c/frag.gls Normal file
View file

@ -0,0 +1,9 @@
#version 330 core
uniform vec4 iColor = vec4(0, 0.6, 0.9, 1);
out vec4 color;
void main() {
color = iColor;
}

9
res/shaders/s2c/vert.gls Normal file
View file

@ -0,0 +1,9 @@
#version 330 core
uniform mat4 mvp;
layout (location = 0) in vec3 vertices;
void main() {
gl_Position = mvp * vec4(vertices, 1);
}

13
res/shaders/s2t/frag.gls Normal file
View 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;
}

13
res/shaders/s2t/vert.gls Normal file
View 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);
}