Advertisement
actuallykron

Godot 4 - Flash Shader

Mar 20th, 2024 (edited)
567
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Godot GLSL 0.28 KB | Source Code | 0 0
  1. shader_type canvas_item;
  2.  
  3. uniform vec4 flash_color : source_color;
  4. uniform float flash_value : hint_range(0.0, 1.0, 0.1) = 0;
  5.  
  6. void fragment() {
  7.     vec4 texture_color = texture(TEXTURE, UV);
  8.     COLOR = mix(texture_color, flash_color, flash_value);
  9.     COLOR.a = texture_color.a;
  10. }
Tags: Godot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement