unshift method

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

Implementation

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

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