FogExp2 constructor
FogExp2(
- dynamic color,
- dynamic density
Implementation
FogExp2(color, density) {
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.density = (density != null) ? density : 0.00025;
}