Fog constructor
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;
}