push method

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

Implementation

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

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