encode method

void encode(
  1. Matrix4 worldTransform,
  2. Geometry geometry,
  3. Material material
)

Implementation

void encode(Matrix4 worldTransform, Geometry geometry, Material material) {
  if (material.isOpaque()) {
    _encode(worldTransform, geometry, material);
    return;
  }
  _translucentRecords
      .add(_TranslucentRecord(worldTransform, geometry, material));
}