Fog constructor

Fog(
  1. int color, [
  2. double? near,
  3. double? far
])

The color parameter is passed to the Color constructor to set the color property.

Implementation

Fog(int color, [double? near, double? far]) {
  name = 'Fog';
  this.color = Color.fromHex32(color);
  this.near = near ?? 1;
  this.far = far ?? 1000;
  isFog = true;
}