Repository navigation
fix(rtt): render subtrees attached into, or nested inside, RTT nodes - #983
Merged
wouterlucas merged 4 commits intoNov 20, 2026
Merged
Conversation
addChild called node.markChildrenWithRTT(this), which re-walked the new parent's existing children instead of the attached node's subtree. Nodes built off-tree and then attached under an RTT node kept parentHasRenderTexture=false on their descendants, so they were projected with the stage resolution instead of the framebuffer's and rendered outside the texture (e.g. text inside list items).
eXecutable
marked this pull request as draft
November 18, 2026 12:09
Children of an RTT node derived sceneGlobalTransform from the parent's globalTransform. When that parent is itself nested in another RTT, its globalTransform is reset to identity for framebuffer rendering, so its children were bounds-checked as if at scene origin and culled as OutOfBounds by any clipping ancestor.
eXecutable
marked this pull request as ready for review
November 18, 2026 12:12
eXecutable
marked this pull request as draft
November 18, 2026 12:13
bindRenderOp returned early when both the render op and its parent were RTT, skipping u_pixelRatio/u_resolution and all shader-specific uniforms. Shaded quads drawn from a nested RTT node into its parent RTT rendered blank.
- CoreNode.draw computed the scissor y inside a framebuffer from the drawn node's height instead of the clipping rect, so clipped content in an RTT was cut to the wrong strip. - renderRTTNodes cleared the framebuffer with the previous draw's scissor still enabled, leaving earlier frames in the texture (ghosting).
eXecutable
marked this pull request as ready for review
November 18, 2026 12:56
jfboeve
approved these changes
Nov 20, 2026
wouterlucas
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bugs on RTT: