refreshUniformsDistance method

dynamic refreshUniformsDistance(
  1. dynamic uniforms,
  2. dynamic material
)

Implementation

refreshUniformsDistance(uniforms, material) {
  uniforms["referencePosition"]["value"].copy(material.referencePosition);
  uniforms["nearDistance"]["value"] = material.nearDistance;
  uniforms["farDistance"]["value"] = material.farDistance;
}