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