refreshFogUniforms method
Implementation
void refreshFogUniforms(Map uniforms, FogBase fog) {
uniforms["fogColor"]["value"].setFrom(fog.color);
if (fog.isFog) {
uniforms["fogNear"]["value"] = fog.near;
uniforms["fogFar"]["value"] = fog.far;
}
else if (fog.isFogExp2) {
uniforms["fogDensity"]["value"] = fog.density;
}
}