
What this component contains
ATTRIBUTION.mdLICENSEREADME.mdcomponent.jsondemo.tscninspect_shader.pylaser_beam_2d.gdshadermaterial.trespreview.pngtest_package.pyverification/native.json
How it works
- Shader type
- canvas_item
- Parameters
- core_color (vec4 = 1, 0.95, 0.95, 1), beam_color (vec4 = 1, 0.15, 0.3, 1), core_width (float = 0.04), glow_width (float = 0.18), flicker (float = 0.3), pulse_speed (float = 3), pulse_spacing (float = 0.2), flare_size (float = 0.18) and 1 more
- Use it on
- A ColorRect stretched along the beam (rotate it to aim).
- Result
- A red laser with a white core crossing the rectangle, flared at the left and sparkling at the right.
- Renderers
- compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
- Placement
- res://baltor/godot_shaders/laser_beam_2d/
Recorded checks
godot 4.7.2.stable.official.ed1daf0bf
contract_staticengine_runengine_log_cleanshader_in_scenecapture_writtenrender_not_uniformshader_changes_pixels
Limits to consider
Stretching the rectangle stretches the glow; adjust widths to its aspect. The beam is straight.