Fog constructor
Implementation
Fog(color, num? near, num? far) {
isFog = true;
name = '';
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.near = near ?? 1;
this.far = far ?? 1000;
}