static ColorCorrectionCurvesDef()
        {
            if (colorCurvesEffect == null)
            {
                colorCurvesEffect = Util.GetComponentVar <ColorCorrectionCurves, ColorCorrectionCurvesDef>(colorCurvesEffect);
            }

            mode        = ColorCorrectionMode.Simple;
            selectiveCc = false;
            saturation  = 1f;

            Keyframe[] keys = new Keyframe[2];
            keys[0] = new Keyframe(0f, 0f, 0f, 1f);
            keys[1] = new Keyframe(1f, 1f, 1f, 0f);

            redChannel   = new AnimationCurve(keys);
            greenChannel = new AnimationCurve(keys);
            blueChannel  = new AnimationCurve(keys);

            depthRedChannel   = new AnimationCurve(keys);
            depthGreenChannel = new AnimationCurve(keys);
            depthBlueChannel  = new AnimationCurve(keys);
            zCurve            = new AnimationCurve(keys);

            selectiveFromColor = Color.white;
            selectiveToColor   = Color.white;

            useDepthCorrection = false;
        }
        //

        static DepthOfFieldDef()
        {
            if (depthOfFieldEffect == null)
            {
                depthOfFieldEffect = Util.GetComponentVar <DepthOfFieldScatter, DepthOfFieldDef>(depthOfFieldEffect);
            }

            visualizeFocus = false;
            focalLength    = 10f;
            focalSize      = 0.05f;
            //focalTransform;
            aperture = 11.5f;

            blurType        = DepthOfFieldScatter.BlurType.DiscBlur;
            blurSampleCount = DepthOfFieldScatter.BlurSampleCount.High;

            maxBlurSize    = 2f;
            highResolution = false;

            nearBlur          = false;
            foregroundOverlap = 1f;

            dx11BokehScale     = 1.2f;
            dx11BokehIntensity = 2.5f;

            dx11BokehThreshhold = 0.5f;
            dx11SpawnHeuristic  = 0.0875f;

            focusedMaid = -1;
        }
예제 #3
0
        //

        static SunShaftsDef()
        {
            if (sunShaftsEffect == null)
            {
                sunShaftsEffect = Util.GetComponentVar <SunShafts, SunShaftsDef>(sunShaftsEffect);
            }

            useDepthTexture = false;
            resolution      = SunShaftsResolution.Normal;
            screenBlendMode = ShaftsScreenBlendMode.Screen;

            sunColor = Color.white;

            maxRadius            = 0.75f;
            radialBlurIterations = 2;

            sunShaftBlurRadius = 2.5f;
            sunShaftIntensity  = 1.15f;

            useSkyBoxAlpha = 0.75f;

            texSunColor = new Texture2D(1, 1);
            texSunColor.SetPixel(0, 0, Color.white);
            texSunColor.Apply();

            drag         = new DragManager();
            sunTransform = drag.goDrag.transform;
        }
예제 #4
0
        public KuwaharaDef()
        {
            if (kuwaharaEffect == null)
            {
                kuwaharaEffect = Util.GetComponentVar <Kuwahara, KuwaharaDef>(kuwaharaEffect);
            }

            radius = 3;
        }
        static DigitalGlitchDef()
        {
            if (digitalGlitchEffect == null)
            {
                digitalGlitchEffect = Util.GetComponentVar <DigitalGlitch, DigitalGlitchDef>(digitalGlitchEffect);
            }

            intensity = 0;
        }
예제 #6
0
        public BleachBypassDef()
        {
            if (bleachBypassEffect == null)
            {
                bleachBypassEffect = Util.GetComponentVar <BleachBypass, BleachBypassDef>(bleachBypassEffect);
            }

            amount = 1f;
        }
예제 #7
0
        public DoubleVisionDef()
        {
            if (doubleVisionEffect == null)
            {
                doubleVisionEffect = Util.GetComponentVar <DoubleVision, DoubleVisionDef>(doubleVisionEffect);
            }

            displace = new Vector2(0.7f, 0.0f);
            amount   = 1.0f;
        }
예제 #8
0
        public RGBSplitDef()
        {
            if (rGBSplitEffect == null)
            {
                rGBSplitEffect = Util.GetComponentVar <RGBSplit, RGBSplitDef>(rGBSplitEffect);
            }

            amount = 0f;
            angle  = 0f;
        }
        static MotionBlurDef()
        {
            if (motionBlurEffect == null)
            {
                motionBlurEffect = Util.GetComponentVar <MotionBlur, MotionBlurDef>(motionBlurEffect);
            }

            extraBlur  = false;
            blurAmount = 0.8f;
        }
        public WhiteBalanceDef()
        {
            if (whiteBalanceEffect == null)
            {
                whiteBalanceEffect = Util.GetComponentVar <WhiteBalance, WhiteBalanceDef>(whiteBalanceEffect);
            }

            white = new Color(0.5f, 0.5f, 0.5f);
            mode  = WhiteBalance.BalanceMode.Complex;
        }
        static FisheyeDef()
        {
            if (fisheyeEffect == null)
            {
                fisheyeEffect = Util.GetComponentVar <Fisheye, FisheyeDef>(fisheyeEffect);
            }

            strengthX = 0.05f;
            strengthY = 0.05f;
        }
        static ChannelSwapDef()
        {
            if (channelSwapEffect == null)
            {
                channelSwapEffect = Util.GetComponentVar <ChannelSwapper, ChannelSwapDef>(channelSwapEffect);
            }

            redSource   = ChannelSwapper.Channel.Red;
            greenSource = ChannelSwapper.Channel.Green;
            blueSource  = ChannelSwapper.Channel.Blue;
        }
        static LetterboxDef()
        {
            if (letterboxEffect == null)
            {
                letterboxEffect = Util.GetComponentVar <Letterbox, LetterboxDef>(letterboxEffect);
            }

            aspectWidth  = 21f;
            aspectHeight = 9f;
            fillColor    = Color.black;
        }
 public static void Setup()
 {
     try
     {
         globalFogEffect = Util.GetComponentVar <GlobalFog, GlobalFogDef>(globalFogEffect);
     }
     catch (Exception e) {
         Debug.Log("Can't set fog!");
         Debug.LogError(e);
     }
 }
        static ContrastDef()
        {
            if (contrastEffect == null)
            {
                contrastEffect = Util.GetComponentVar <ContrastEnhance, ContrastDef>(contrastEffect);
            }

            intensity  = 0.5f;
            threshhold = 0f;
            blurSpread = 1f;
        }
        static CreaseDef()
        {
            if (creaseEffect == null)
            {
                creaseEffect = Util.GetComponentVar <Crease, CreaseDef>(creaseEffect);
            }

            intensity = 0.5f;
            softness  = 1;
            spread    = 1f;
        }
        static TechnicolorDef()
        {
            if (technicolorEffect == null)
            {
                technicolorEffect = Util.GetComponentVar <Technicolor, TechnicolorDef>(technicolorEffect);
            }

            exposure = 4f;
            balance  = new Vector3(0.25f, 0.25f, 0.25f);
            amount   = 0.5f;
        }
        public BrightnessContrastGammaDef()
        {
            if (brightnessContrastGammaEffect == null)
            {
                brightnessContrastGammaEffect = Util.GetComponentVar <BrightnessContrastGamma, BrightnessContrastGammaDef>(brightnessContrastGammaEffect);
            }

            brightness    = 0f;
            contrast      = 0f;
            contrastCoeff = new Vector3(0.5f, 0.5f, 0.5f);
            gamma         = 1f;
        }
예제 #19
0
        static AnalogGlitchDef()
        {
            if (analogGlitchEffect == null)
            {
                analogGlitchEffect = Util.GetComponentVar <AnalogGlitch, AnalogGlitchDef>(analogGlitchEffect);
            }

            scanLineJitter  = 0.0f;
            verticalJump    = 0.0f;
            horizontalShake = 0.0f;
            colorDrift      = 0.0f;
        }
예제 #20
0
        public WaveDistortionDef()
        {
            if (waveDistortionEffect == null)
            {
                waveDistortionEffect = Util.GetComponentVar <WaveDistortion, WaveDistortionDef>(waveDistortionEffect);
            }

            amplitude   = 0.6f;
            waves       = 5f;
            colorGlitch = 0.35f;
            phase       = 0.35f;
        }
예제 #21
0
        public ChannelMixerDef()
        {
            if (channelMixerEffect == null)
            {
                channelMixerEffect = Util.GetComponentVar <ChannelMixer, ChannelMixerDef>(channelMixerEffect);
            }

            red      = new Vector3(100f, 0f, 0f);
            green    = new Vector3(0f, 100f, 0f);
            blue     = new Vector3(0f, 0f, 100f);
            constant = new Vector3(0f, 0f, 0f);
        }
        static BlurDef()
        {
            if (blurEffect == null)
            {
                blurEffect = Util.GetComponentVar <Blur, BlurDef>(blurEffect);
            }

            //blurType = Blur.BlurType.StandardGauss;
            downsample     = 1;
            blurSize       = 3f;
            blurIterations = 2;
        }
        static HueFocusDef()
        {
            if (hueFocusEffect == null)
            {
                hueFocusEffect = Util.GetComponentVar <HueFocus, HueFocusDef>(hueFocusEffect);
            }

            hue    = 0f;
            range  = 30f;
            boost  = 0.5f;
            amount = 1f;
        }
예제 #24
0
 public static void Setup()
 {
     try
     {
         bloomEffect = Util.GetComponentVar <Bloom, BloomDef>(bloomEffect);
         BackUp();
     }
     catch (Exception e) {
         Debug.Log("Can't set bloom!");
         Debug.Log(e);
     }
 }
        public IsolineDef()
        {
            if (isolineEffect == null)
            {
                isolineEffect = Util.GetComponentVar <Isoline, IsolineDef>(isolineEffect);
            }

            dood            = 0f;
            lightType       = Light.LightType.Directional;
            isWorking       = false;
            backgroundColor = new Color(1, 1, 1);
        }
예제 #26
0
        public PixelateDef()
        {
            if (pixelateEffect == null)
            {
                pixelateEffect = Util.GetComponentVar <Pixelate, PixelateDef>(pixelateEffect);
            }

            scale          = 80.0f;
            automaticRatio = true;
            ratio          = 1.0f;
            mode           = Pixelate.SizeMode.ResolutionIndependent;
        }
        static LensDistortionBlurDef()
        {
            if (lensDistortionBlurEffect == null)
            {
                lensDistortionBlurEffect = Util.GetComponentVar <LensDistortionBlur, LensDistortionBlurDef>(lensDistortionBlurEffect);
            }

            quality         = LensDistortionBlur.QualityPreset.Medium;
            samples         = 10;
            distortion      = 0.2f;
            cubicDistortion = 0.6f;
            scale           = 0.8f;
        }
        public ShadowsMidtonesHighlightsDef()
        {
            if (shadowsMidtonesHighlightsEffect == null)
            {
                shadowsMidtonesHighlightsEffect = Util.GetComponentVar <ShadowsMidtonesHighlights, ShadowsMidtonesHighlightsDef>(shadowsMidtonesHighlightsEffect);
            }

            mode       = ShadowsMidtonesHighlights.ColorMode.LiftGammaGain;
            shadows    = new Color(1f, 1f, 1f, 0.5f);
            midtones   = new Color(1f, 1f, 1f, 0.5f);
            highlights = new Color(1f, 1f, 1f, 0.5f);
            amount     = 1f;
        }
        static TiltShiftHdrDef()
        {
            if (tiltShiftHdrEffect == null)
            {
                tiltShiftHdrEffect = Util.GetComponentVar <TiltShiftHdr, TiltShiftHdrDef>(tiltShiftHdrEffect);
            }

            mode        = TiltShiftHdr.TiltShiftMode.TiltShiftMode;
            quality     = TiltShiftHdr.TiltShiftQuality.Normal;
            blurArea    = 1f;
            maxBlurSize = 5f;
            downsample  = 0;
        }
        static SSAODef()
        {
            if (ssaoEffect == null)
            {
                ssaoEffect = Util.GetComponentVar <AmbientObscurance, SSAODef>(ssaoEffect);
            }

            intensity          = 0.5f;
            radius             = 0.2f;
            blurIterations     = 1;
            blurFilterDistance = 1.25f;
            downsample         = 0;
        }