using Godot; using System; /// /// https://github.com/godotengine/godot/issues/75868#issuecomment-1524362054 THANK YOU!!! /// [Tool] public partial class PointLight2DWorkaround : PointLight2D { [Export] public Viewport LightViewport; public override void _Process(double delta) { base._Process(delta); Texture = null; Texture = LightViewport.GetTexture(); } }