Setting ViewportTexture as a texture for a Light2D node doesn't work.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Svampen

When i try setting a ViewportTexture as texture for a Light2D node it doesn’t work and the editor output gets flooded with “core/math/math_2d.cpp:366 - Condition ’ det == 0 ’ is true.” errors. So i’m guessing that when i do it some determinant is 0 that isn’t supposed to be 0.

Any ideas as to why i’m getting these errors?

Using the ViewportTexture for a sprite instead works just fine.

Edit: Apparantly it’s an open issue on github