killing is a messy business

This commit is contained in:
Haze Weathers 2023-09-21 18:04:15 -04:00
parent 19465f37ca
commit a40347a52f
6 changed files with 39 additions and 1 deletions

View file

@ -23,7 +23,10 @@ bool is_border(sampler2D tex, vec2 uv, vec2 pixel_size) {
void fragment() {
vec4 color = texture(TEXTURE, UV);
if (color.a == 0.0 && is_border(TEXTURE, UV, TEXTURE_PIXEL_SIZE)) {
// fucked up lighting change to make blood work perfectly
if (AT_LIGHT_PASS) {
COLOR = vec4(1.0, 1.0, 1.0, color.a);
} else if (color.a == 0.0 && is_border(TEXTURE, UV, TEXTURE_PIXEL_SIZE)) {
COLOR = border_color;
} else {
COLOR = texture(palette, color.rg );