Platform collision works

This commit is contained in:
Gnarwhal 2024-08-07 05:02:56 +00:00
parent a0cc4ac0be
commit 24c7a78ae6
Signed by: Gnarwhal
GPG key ID: 0989A73D8C421174
14 changed files with 1003 additions and 833 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Before After
Before After

View file

@ -1,13 +1,18 @@
#version 330 core
uniform sampler2D sampler;
uniform vec3 iColor;
uniform float time;
in vec2 texCoords;
out vec4 color;
void main() {
color = texture(sampler, texCoords);
if (color.a == 0)
vec4 sample = texture(sampler, texCoords);
float x = sample.r + time;
color = vec4(iColor * mod(floor(x), 2) * (-x + 2), sample.a);
if (color.a == 0) {
discard;
}
}