コード例 #1
0
 public static void SetupMiniCRTPreset(RTTCRTEffect effect)
 {
     effect.blurSize                  = 0.8f;
     effect.blurStrength              = 0.8f;
     effect.bleedingSize              = 0.5f;
     effect.bleedingStrength          = 1.0f;
     effect.chromaticAberrationOffset = 2.5f;
     effect.RGBMaskIntensivity        = 0.8f;
     effect.RGBMaskStrength           = 0.8f;
     effect.RGBMaskBleeding           = 0.3f;
     effect.colorNoiseMode            = NoiseMode.Add;
     effect.colorNoiseStrength        = 0.25f;
     effect.whiteNoiseMode            = NoiseMode.Lighten;
     effect.whiteNoiseStrength        = 0.25f;
     effect.darkestLevel              = Color.black;
     effect.brightestLevel            = Color.Lerp(Color.black, Color.white, 225.0f / 255.0f);
     effect.darkestColor              = Color.Lerp(Color.black, Color.white, 35.0f / 255.0f);
     effect.brightestColor            = Color.white;
     effect.brightness                = 0.3f;
     effect.contrast                  = 0.3f;
     effect.saturation                = -0.1f;
     effect.interferenceWidth         = 25.0f;
     effect.interferenceSpeed         = 3.0f;
     effect.interferenceStrength      = 0.0f;
     effect.interferenceSplit         = 0.25f;
     effect.maskMode                  = MaskMode.Denser;
     effect.maskStrength              = 1.0f;
     effect.curvatureX                = 0.7f;
     effect.curvatureY                = 0.7f;
     effect.overscan                  = 0.0f;
     effect.vignetteSize              = 0.5f;
     effect.vignetteStrength          = 0.425f;
     effect.textureScaling            = TextureScalingMode.AdjustForHeight;
     effect.scalingPolicy             = TextureScalingPolicy.DownscaleOnly;
     effect.textureSize               = 768;
 }
コード例 #2
0
 public static void SetupYellowMonitorPreset(RTTCRTEffect effect)
 {
     effect.blurSize                  = 0.9f;
     effect.blurStrength              = 0.6f;
     effect.bleedingSize              = 0.85f;
     effect.bleedingStrength          = 0.75f;
     effect.chromaticAberrationOffset = 1.75f;
     effect.RGBMaskIntensivity        = 0.4f;
     effect.RGBMaskStrength           = 0.4f;
     effect.RGBMaskBleeding           = 0.1f;
     effect.colorNoiseMode            = NoiseMode.Multiply;
     effect.colorNoiseStrength        = 0.4f;
     effect.whiteNoiseMode            = NoiseMode.Darken;
     effect.whiteNoiseStrength        = 0.2f;
     effect.darkestLevel              = Color.Lerp(Color.black, Color.white, 10.0f / 255.0f);
     effect.brightestLevel            = Color.Lerp(Color.black, Color.white, 205.0f / 255.0f);
     effect.darkestColor              = new Color(30.0f / 255.0f, 30.0f / 255.0f, 0.0f);
     effect.brightestColor            = new Color(1.0f, 1.0f, 25.0f / 255.0f);
     effect.brightness                = 0.5f;
     effect.contrast                  = -0.1f;
     effect.saturation                = -1.0f;
     effect.interferenceWidth         = 300.0f;
     effect.interferenceSpeed         = 25.0f;
     effect.interferenceStrength      = 0.0035f;
     effect.interferenceSplit         = 0.0f;
     effect.maskMode                  = MaskMode.DenseScanline;
     effect.maskStrength              = 0.25f;
     effect.curvatureX                = 0.4f;
     effect.curvatureY                = 0.4f;
     effect.overscan                  = 0.0f;
     effect.vignetteSize              = 0.35f;
     effect.vignetteStrength          = 0.35f;
     effect.textureScaling            = TextureScalingMode.AdjustForHeight;
     effect.scalingPolicy             = TextureScalingPolicy.DownscaleOnly;
     effect.textureSize               = 768;
 }