예제 #1
0
 /// <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;
 }
예제 #2
0
 public static bool isPlus(this FOG_TYPE fogType)
 {
     return(fogType == FOG_TYPE.DesktopFogPlusWithSkyHaze || fogType == FOG_TYPE.MobileFogSimple);
 }
예제 #3
0
 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);
 }