What this component contains
ATTRIBUTION.mdLICENSEREADME.mdcomponent.jsondemo.tscninspect_shader.pymaterial.trespreview.pngsprite_hit_flash.gdshadertest_package.pyverification/native.json
How it works
- Shader type
- canvas_item
- Parameters
- flash_color (vec4 = 1, 1, 1, 1), flash_amount (float = 0), mode (int = 0), auto_blink (bool = no), blink_rate (float = 12), blink_duty (float = 0.5)
- Use it on
- A Sprite2D (or other textured CanvasItem) with transparent space around its shape, assigned to the node as usual.
- Result
- The sprite tinted strongly toward red as on a damage frame.
- Renderers
- compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
- Placement
- res://baltor/godot_shaders/sprite_hit_flash/
Recorded checks
godot 4.7.2.stable.official.ed1daf0bf
contract_staticengine_runengine_log_cleanshader_in_scenecapture_writtenrender_not_uniformshader_changes_pixels
Limits to consider
One flash colour at a time. Driving `flash_amount` per instance needs separate materials (or instance uniforms in your own variant).