push method

void push(
  1. Object3D object,
  2. BufferGeometry geometry,
  3. Material material,
  4. int groupOrder,
  5. double z,
  6. Map<String, dynamic>? group,
)

Implementation

void push(Object3D object, BufferGeometry geometry, Material material, int groupOrder, double z, Map<String, dynamic>? group) {
  final renderItem = getNextRenderItem(object, geometry, material, groupOrder, z, group);

  if (material.transmission > 0.0) {
    transmissive.add(renderItem);
  }
  else {
    if (material.transparent) {
      transparent.add(renderItem);
    }
    else {
      opaque.add(renderItem);
    }
  }
}