using Godot; using System; [Tool] public partial class PointLight2DWorkaround : PointLight2D { [Export] public Viewport LightViewport; public override void _Process(double delta) { base._Process(delta); Texture = null; Texture = LightViewport.GetTexture(); } }