improve famira death animation

This commit is contained in:
Haze Weathers 2024-02-29 00:19:54 -05:00
parent ded320d2dc
commit 12d6adaf94
2 changed files with 96 additions and 1 deletions

View file

@ -118,6 +118,7 @@ float snoise(vec3 v) {
void fragment() {
vec4 tex_color = texture(TEXTURE, UV);
tex_color *= COLOR;
tex_color.rgb = pow(tex_color.rgb, vec3(1.0 / (gamma + sin(fract(TIME * floor(flash_rate)) * TAU) * flash_intensity)));
tex_color.rgb = mix(tex_color.rgb, background_color.rgb, background_color.a);
// tex_color.rgb = pow(tex_color.rgb, vec3(0.5 + sin(TIME * 20.0) * 0.1));