Closed as not planned
Description
Godot version
v4.1.dev.custom_build [c1128e9]
System information
Windows 11, Nvidia 3070, any renderer
Issue description
I want to use a ViewportTexture as a PointLight2D's texture, so I can create dynamic lights, but in most scenarios, the texture won't show at all.
Scenario 1: immediately after ViewportTexture added as PointLight2D texture (works fine in editor)
Scenario 2: project reloaded (light texture disappears)
Scenario 3: in-game (no light texture shown)
Steps to reproduce
- Create a SubViewport with anything in it (e.g. a simple Sprite2D)
- Create a PointLight2D
- Add a ViewportTexture (referencing the SubViewport created in step 1) as the PointLight2D's texture
- Try running the game (nothing shows for the light)
- (optional) try adding an identical ViewportTexture as a texture on another node (e.g. Sprite2D) - it works fine.