You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure supporting animated textures in PointLight2Ds is a good idea. In 4.0 2D lighting is done in a single pass which means that all light textures have to be copied to an atlas. Supporting animated textures would require either:
updating the atlas every single frame by blitting the animated texture to it or,
copying every frame of the animated texture into the atlas and then animating the rect of the PointLight2D.
Both options will be harmful for performance. I think number 2 may not be terrible, but I guess it depends on how big the AnimatedTexture is and how many frames it contains.
Godot version
Godot Engine v4.0.beta3.official.01ae26d31
System information
Xubuntu 22.04, Vulkan API 1.2.0 - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce GTX 1060 6GB
Issue description
If I use a AnimatedTexture resource for a PointLight2D it only shows the first frame of the animation.
The same AnimatedTexture on a Sprite2D works.
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: