FogExp2 constructor

FogExp2(
  1. dynamic color,
  2. dynamic density
)

Implementation

FogExp2(color, density) {
  name = '';
  isFogExp2 = true;

  if (color is int) {
    this.color = Color(0, 0, 0).setHex(color);
  } else if (color is Color) {
    this.color = color;
  } else {
    throw (" Fog color type: ${color.runtimeType} is not support ... ");
  }

  this.density = (density != null) ? density : 0.00025;
}