/// <summary> /// Replaces profile settings with current fog configuration /// </summary> public void Save(DynamicFog fog) { effectType = fog.effectType; enableDithering = fog.enableDithering; ditherStrength = fog.ditherStrength; alpha = fog.alpha; noiseStrength = fog.noiseStrength; noiseScale = fog.noiseScale; distance = fog.distance; distanceFallOff = fog.distanceFallOff; maxDistance = fog.maxDistance; maxDistanceFallOff = fog.maxDistanceFallOff; height = fog.height; maxHeight = fog.maxHeight; heightFallOff = fog.heightFallOff; baselineHeight = fog.baselineHeight; clipUnderBaseline = fog.clipUnderBaseline; turbulence = fog.turbulence; speed = fog.speed; windDirection = fog.windDirection; color = fog.color; color2 = fog.color2; skyHaze = fog.skyHaze; skySpeed = fog.skySpeed; skyNoiseStrength = fog.skyNoiseStrength; skyAlpha = fog.skyAlpha; useXZDistance = fog.useXZDistance; scattering = fog.scattering; scatteringColor = fog.scatteringColor; }
public static bool isPlus(this FOG_TYPE fogType) { return(fogType == FOG_TYPE.DesktopFogPlusWithSkyHaze || fogType == FOG_TYPE.MobileFogSimple); }
public static bool isPlus(this FOG_TYPE fogType) { return(fogType == FOG_TYPE.DesktopFogPlusWithSkyHaze || fogType == FOG_TYPE.MobileFogSimple || fogType == FOG_TYPE.MobileFogBasic || fogType == FOG_TYPE.MobileFogOrthogonal || fogType == FOG_TYPE.DesktopFogPlusOrthogonal); }