Hi, i have slightly confused with RenderTexture usage. It’s okay when i want to render the whole scene without any scale. But when i want to render some inner nodes or render with scale, i get some weird results.
For example,
-
if i want to render scene with size (600x600) into texture with size (300x300) how better to do it?
-
When should be used keepMatrixStack property?
-
How should be used virtual viewport property? Seems like i can do some offsets, but can’t apply it to 1 case
-
How should be rendered child nodes?
e.g. child has position (0,0) and anchor point (0.0)
it’s parent has position (0,50) and anchor point (0,0)
and when i render child - it will have offset (0,50) on the rendered texture (it’s position and positions of it’s child affected by it’s parent transform) even when i call directly to visit(renderer, Mat4::IDENTITY, true)
Thanks!