forked from team-sg/hero-mark-2
improve famira death animation
This commit is contained in:
parent
ded320d2dc
commit
12d6adaf94
2 changed files with 96 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue