renderObjects method

void renderObjects(
  1. List<RenderItem> renderList,
  2. Object3D scene,
  3. Camera camera
)

Implementation

void renderObjects(
    List<RenderItem> renderList, Object3D scene, Camera camera) {
  final overrideMaterial = scene is Scene ? scene.overrideMaterial : null;

  for (int i = 0, l = renderList.length; i < l; i++) {
    final renderItem = renderList[i];

    final object = renderItem.object!;
    final geometry = renderItem.geometry!;
    final material = overrideMaterial ?? renderItem.material!;
    final group = renderItem.group;

    if (object.layers.test(camera.layers)) {
      renderObject(object, scene, camera, geometry, material, group);
    }
  }
}