Newer
Older
DungeonShooting / DungeonShooting_Godot / resource / material / Blend.gdshader
@小李xl 小李xl on 10 May 2023 291 bytes 添加敌人死亡特效
  1. shader_type canvas_item;
  2.  
  3. uniform vec4 blend : source_color = vec4(1.0, 1.0, 1.0, 1.0);
  4. uniform float schedule = 1.0;
  5.  
  6. void fragment() {
  7. vec4 textureColor = texture(TEXTURE, UV);
  8. vec4 col = mix(textureColor, blend, schedule);
  9. COLOR = mix(vec4(0.0, 0.0, 0.0, 0.0), col, textureColor.a);
  10. }