plugin property

ViewModelNode plugin
latefinal

The plugin that draws the weapon over the finished scene.

Built once and registered with the renderer, rather than handed in with every frame: what draws is now a property of the renderer, not an argument to a call.

Implementation

late final ViewModelNode plugin = ViewModelNode(
  scene: _scene,
  camera: _camera,
);