lightning-js / renderer

Lightning 3 Renderer
Apache License 2.0
57 stars 23 forks source link

RTT & Clipping is not working #452

Closed wouterlucas closed 3 days ago

wouterlucas commented 5 days ago

The moment you turn on clipping on a rtt: true node the node disappears.

This is because the new update logic from parent -> children provides the original clipping rectangle, however since the children are part of render to texture the clipping rectangle does not apply as its clipped already as part of the RTT creation.

In the previous implementation children of RTT where given an invalid clipping rectangle to avoid incorrect clipping in Render texture coordinates.