Skip to content

Instantly share code, notes, and snippets.

@Vicance1
Vicance1 / ElectricArcLine.gd
Created May 26, 2026 04:13
Godot 4 程序化着色器电弧 / Procedural Shader Arc — 十三无言 (ShisanWuyan)
## ElectricArcLine.gd — Godot 4 Procedural Shader Arc
## © 2026 十三无言 (ShisanWuyan), MIT License
##
## Spawns a directional electric arc between two points in a parent node's
## local coordinate space. No external textures required — gradient and
## noise are generated procedurally at runtime.
##
## Depends on (CC0, download separately):
## https://godotshaders.com/shader/2d-electric-arc-plasma-effect/
## Save as: res://Assets/Shaders/electric_arc.gdshader