refreshUniformsPoints method
void
refreshUniformsPoints()
Implementation
void refreshUniformsPoints(Map<String, dynamic> uniforms, Material material, double pixelRatio, double height) {
uniforms["diffuse"]["value"].setFrom(material.color);
uniforms["opacity"]["value"] = material.opacity;
uniforms["size"]["value"] = material.size! * pixelRatio;
uniforms["scale"]["value"] = height * 0.5;
if (material.map != null) {
uniforms["map"]["value"] = material.map;
refreshTransformUniform( material.map, uniforms['uvTransform'] );
}
if (material.alphaMap != null) {
uniforms["alphaMap"]["value"] = material.alphaMap;
refreshTransformUniform( material.alphaMap!, uniforms['alphaMapTransform'] );
}
if (material.alphaTest > 0) {
uniforms["alphaTest"]["value"] = material.alphaTest;
}
}