refreshUniformsDistance method

void refreshUniformsDistance(
  1. Map<String, dynamic> uniforms,
  2. MeshDistanceMaterial material
)

Implementation

void refreshUniformsDistance(Map<String, dynamic> uniforms, MeshDistanceMaterial material) {
  uniforms["referencePosition"]["value"].setFrom(material.referencePosition);
  uniforms["nearDistance"]["value"] = material.nearDistance;
  uniforms["farDistance"]["value"] = material.farDistance;
}