shouldCull method

  1. @override
bool shouldCull(
  1. CameraComponent3D camera
)

Implementation

@override
bool shouldCull(CameraComponent3D camera) {
  // TODO(luan): this actually does not work because of animations
  // it might end up culling something that is actually visible
  return camera.frustum.intersectsWithAabb3(aabb);
}