render method
Recursively records Mesh draw operations for this node and all its children.
To display this node in a dart:ui
Canvas, add this node to a Scene and call Scene.render instead.
Implementation
void render(SceneEncoder encoder, Matrix4 parentWorldTransform) {
if (!visible) {
return;
}
if (_animationPlayer != null) {
_animationPlayer!.update();
}
final worldTransform = parentWorldTransform * localTransform;
if (mesh != null) {
mesh!.render(encoder, worldTransform, _skin?.getJointsTexture(),
_skin?.getTextureWidth() ?? 0);
}
for (var child in children) {
child.render(encoder, worldTransform);
}
}