Example #1
0
    // Token: 0x060060CA RID: 24778 RVA: 0x00315064 File Offset: 0x00313264
    public override void DFLOLMMCGID(Material LQMHKMOOHDB)
    {
        ChromaticAberrationModel.Settings settings = base.FIFNHCKNDQE.settings;
        Texture2D texture2D = settings.spectralTexture;

        if (texture2D == null)
        {
            if (this.EGMCHBMDJGJ == null)
            {
                this.EGMCHBMDJGJ = new Texture2D(3, 1, TextureFormat.RGB24, false)
                {
                    name       = "Chromatic Aberration Spectrum Lookup",
                    filterMode = FilterMode.Bilinear,
                    wrapMode   = TextureWrapMode.Clamp,
                    anisoLevel = 0,
                    hideFlags  = HideFlags.DontSave
                };
                Color[] pixels = new Color[]
                {
                    new Color(1f, 0f, 0f),
                    new Color(0f, 1f, 0f),
                    new Color(0f, 0f, 1f)
                };
                this.EGMCHBMDJGJ.SetPixels(pixels);
                this.EGMCHBMDJGJ.Apply();
            }
            texture2D = this.EGMCHBMDJGJ;
        }
        LQMHKMOOHDB.EnableKeyword("CHROMATIC_ABERRATION");
        LQMHKMOOHDB.SetFloat(QHPGHOFCBQD.HOGMEQILCBB.MPKLKNPELDI, settings.intensity * 0.03f);
        LQMHKMOOHDB.SetTexture(QHPGHOFCBQD.HOGMEQILCBB.FILNFGNMDEQ, texture2D);
    }
Example #2
0
    private IEnumerator CameraEffectsHit(PostProcessingBehaviour pp)
    {
        pp.profile.chromaticAberration.enabled = true;
        pp.profile.grain.enabled = true;
        ChromaticAberrationModel.Settings CASettings = new ChromaticAberrationModel.Settings();
        GrainModel.Settings GrainSettings            = new GrainModel.Settings();
        CASettings.intensity    = 0;
        GrainSettings.intensity = 0;
        GrainSettings.size      = 0;
        var time = .4f;

        while (time > .2f)
        {
            time -= Time.deltaTime;
            CASettings.intensity    += .1f;
            GrainSettings.intensity += .025f;
            GrainSettings.size      += .1f;
            pp.profile.chromaticAberration.settings = CASettings;
            pp.profile.grain.settings = GrainSettings;
            yield return(null);
        }

        while (time > 0f && time <= .2f)
        {
            time -= Time.deltaTime;
            CASettings.intensity    -= .15f;
            GrainSettings.intensity -= .025f;
            GrainSettings.size      -= .1f;
            pp.profile.chromaticAberration.settings = CASettings;
            pp.profile.grain.settings = GrainSettings;
            yield return(null);
        }
        pp.profile.chromaticAberration.enabled = false;
        pp.profile.grain.enabled = false;
    }
Example #3
0
    // Token: 0x060060D0 RID: 24784 RVA: 0x0031534C File Offset: 0x0031354C
    public void HKCEBPEMIEF(Material LQMHKMOOHDB)
    {
        ChromaticAberrationModel.Settings settings = base.FIFNHCKNDQE.HPEGEDJEFKF();
        Texture2D texture2D = settings.spectralTexture;

        if (texture2D == null)
        {
            if (this.EGMCHBMDJGJ == null)
            {
                this.EGMCHBMDJGJ = new Texture2D(8, 1, TextureFormat.ARGB32, false)
                {
                    name       = "The two moves have become one! It's a combined move!\r\n",
                    filterMode = FilterMode.Point,
                    wrapMode   = TextureWrapMode.Repeat,
                    anisoLevel = 1,
                    hideFlags  = (HideFlags.HideInHierarchy | HideFlags.DontSaveInEditor | HideFlags.NotEditable | HideFlags.DontUnloadUnusedAsset)
                };
                Color[] array = new Color[5];
                array[1] = new Color(956f, 1712f, 305f);
                array[1] = new Color(585f, 798f, 1114f);
                array[0] = new Color(1572f, 1554f, 458f);
                this.EGMCHBMDJGJ.SetPixels(array);
                this.EGMCHBMDJGJ.Apply();
            }
            texture2D = this.EGMCHBMDJGJ;
        }
        LQMHKMOOHDB.EnableKeyword("_");
        LQMHKMOOHDB.SetFloat(QHPGHOFCBQD.HOGMEQILCBB.MPKLKNPELDI, settings.intensity * 814f);
        LQMHKMOOHDB.SetTexture(QHPGHOFCBQD.HOGMEQILCBB.FILNFGNMDEQ, texture2D);
    }
Example #4
0
    void Update()
    {
        cutoffPos += Time.fixedDeltaTime / transitionTime;
        cutoffPos  = (cutoffPos > 1f) ? 1f : cutoffPos;
        cutoff     = Mathf.Lerp(prevCutoff, targetCutoff, cutoffPos);
//		transitionMaterial.SetFloat ("_Cutoff", cutoff);

        // chromatic aberration update
        if (filters)
        {
            chromaAmount = Mathf.MoveTowards(chromaAmount, 0, Time.deltaTime * 0.01f);
            ChromaticAberrationModel.Settings g = filters.profile.chromaticAberration.settings;
            g.intensity = chromaAmount;
            filters.profile.chromaticAberration.settings = g;
        }

        if (shakeTime > 0f)
        {
            shakeTime -= Time.deltaTime;
            transform.localPosition = originalPos + new Vector3(Random.Range(-shakeAmount, shakeAmount), Random.Range(-shakeAmount, shakeAmount), 0);
        }
        else
        {
            transform.localPosition = originalPos;
        }

        cam.orthographicSize = Mathf.Clamp(cam.orthographicSize + zoomDir, 5, 10);
    }
Example #5
0
    //This method will be called every frame while the damage visual effect is active
    void ProcessDamageEffect()
    {
        //Record the ellapsed time and calculate the percentage of the effect that is complete
        elapsedTime += Time.deltaTime;
        float percentage = elapsedTime / damageEffectDuration;

        //Grab the current vignette settings...
        VignetteModel.Settings vignette = profile.vignette.settings;
        //...Lerp the color value...
        vignette.color = Color.Lerp(damageProfile.vignette.settings.color, Color.white, percentage);
        //...and then apply the Lerped changes
        profile.vignette.settings = vignette;

        //Grab the current aberration settings...
        ChromaticAberrationModel.Settings chroma = profile.chromaticAberration.settings;
        //...Lerp the intensity...
        chroma.intensity = Mathf.Lerp(damageProfile.chromaticAberration.settings.intensity, 0f, percentage);
        //... and then apply the Lerped changes
        profile.chromaticAberration.settings = chroma;

        //If the time has reached 100% stop the effect
        if (percentage >= 1f)
        {
            StopDamageEffect();
        }
    }
Example #6
0
    // Token: 0x060060B4 RID: 24756 RVA: 0x00314488 File Offset: 0x00312688
    public void GECNLHMHNCN(Material LQMHKMOOHDB)
    {
        ChromaticAberrationModel.Settings settings = base.FIFNHCKNDQE.CCIPOGGHFLN();
        Texture2D texture2D = settings.spectralTexture;

        if (texture2D == null)
        {
            if (this.EGMCHBMDJGJ == null)
            {
                this.EGMCHBMDJGJ = new Texture2D(8, 0, TextureFormat.Alpha8, true)
                {
                    name       = "p1",
                    filterMode = FilterMode.Point,
                    wrapMode   = TextureWrapMode.Repeat,
                    anisoLevel = 1,
                    hideFlags  = (HideFlags.HideInInspector | HideFlags.DontSaveInEditor | HideFlags.DontSaveInBuild | HideFlags.DontUnloadUnusedAsset)
                };
                Color[] array = new Color[4];
                array[0] = new Color(935f, 704f, 804f);
                array[0] = new Color(1373f, 188f, 1262f);
                array[1] = new Color(129f, 202f, 1888f);
                this.EGMCHBMDJGJ.SetPixels(array);
                this.EGMCHBMDJGJ.Apply();
            }
            texture2D = this.EGMCHBMDJGJ;
        }
        LQMHKMOOHDB.EnableKeyword("[00EE07]");
        LQMHKMOOHDB.SetFloat(QHPGHOFCBQD.HOGMEQILCBB.MPKLKNPELDI, settings.intensity * 1138f);
        LQMHKMOOHDB.SetTexture(QHPGHOFCBQD.HOGMEQILCBB.FILNFGNMDEQ, texture2D);
    }
Example #7
0
    // Token: 0x060060B6 RID: 24758 RVA: 0x003145FC File Offset: 0x003127FC
    public void JQKGGNBEMJB(Material LQMHKMOOHDB)
    {
        ChromaticAberrationModel.Settings settings = base.FIFNHCKNDQE.HHMGHNLGCQF();
        Texture2D texture2D = settings.spectralTexture;

        if (texture2D == null)
        {
            if (this.EGMCHBMDJGJ == null)
            {
                this.EGMCHBMDJGJ = new Texture2D(0, 0, TextureFormat.Alpha8, true)
                {
                    name       = "+",
                    filterMode = FilterMode.Bilinear,
                    wrapMode   = TextureWrapMode.Clamp,
                    anisoLevel = 1,
                    hideFlags  = (HideFlags)(-123)
                };
                Color[] array = new Color[6];
                array[1] = new Color(1411f, 563f, 80f);
                array[0] = new Color(773f, 1120f, 768f);
                array[5] = new Color(682f, 152f, 177f);
                this.EGMCHBMDJGJ.SetPixels(array);
                this.EGMCHBMDJGJ.Apply();
            }
            texture2D = this.EGMCHBMDJGJ;
        }
        LQMHKMOOHDB.EnableKeyword("Purchasing");
        LQMHKMOOHDB.SetFloat(QHPGHOFCBQD.HOGMEQILCBB.MPKLKNPELDI, settings.intensity * 1347f);
        LQMHKMOOHDB.SetTexture(QHPGHOFCBQD.HOGMEQILCBB.FILNFGNMDEQ, texture2D);
    }
Example #8
0
    protected override void Update()
    {
        if (health <= 0)
        {
            StartCoroutine(deathSequence());
        }

        if (colliding)
        {
            health -= 1;
            StartCoroutine(hitSequence());
            if (health == 1)
            {
                body.GetComponent <AudioSource>().clip = Resources.Load("Sounds/ShipHit2Alt") as AudioClip;
            }
            if (health == 0)
            {
                body.GetComponent <AudioSource>().clip = Resources.Load("Sounds/ShipHitFinal") as AudioClip;
            }
            body.GetComponent <AudioSource>().Play();
            ChromaticAberrationModel.Settings c = new ChromaticAberrationModel.Settings();
            c.intensity = 2;
            Camera.main.GetComponent <PostProcessingBehaviour>().profile.chromaticAberration.settings = c;
        }
    }
Example #9
0
    // Token: 0x060060D6 RID: 24790 RVA: 0x00315550 File Offset: 0x00313750
    public void NMPJNHIPNND(Material LQMHKMOOHDB)
    {
        ChromaticAberrationModel.Settings settings = base.FIFNHCKNDQE.DCPMJDLDNMM();
        Texture2D texture2D = settings.spectralTexture;

        if (texture2D == null)
        {
            if (this.EGMCHBMDJGJ == null)
            {
                this.EGMCHBMDJGJ = new Texture2D(6, 1, TextureFormat.RGB24, true)
                {
                    name       = "Fluffy",
                    filterMode = FilterMode.Point,
                    wrapMode   = TextureWrapMode.Clamp,
                    anisoLevel = 0,
                    hideFlags  = ~(HideFlags.HideInHierarchy | HideFlags.HideInInspector | HideFlags.DontUnloadUnusedAsset)
                };
                Color[] array = new Color[3];
                array[1] = new Color(326f, 1288f, 32f);
                array[1] = new Color(696f, 1495f, 1036f);
                array[3] = new Color(560f, 1413f, 448f);
                this.EGMCHBMDJGJ.SetPixels(array);
                this.EGMCHBMDJGJ.Apply();
            }
            texture2D = this.EGMCHBMDJGJ;
        }
        LQMHKMOOHDB.EnableKeyword(" ");
        LQMHKMOOHDB.SetFloat(QHPGHOFCBQD.HOGMEQILCBB.MPKLKNPELDI, settings.intensity * 1783f);
        LQMHKMOOHDB.SetTexture(QHPGHOFCBQD.HOGMEQILCBB.FILNFGNMDEQ, texture2D);
    }
Example #10
0
    public void SetInitialPostProcess(PostProcessType pType, float value)
    {
        switch (pType)
        {
        case PostProcessType.vignette:
            VignetteModel.Settings confv = profile.vignette.settings;
            confv.intensity           = value;
            profile.vignette.settings = confv;
            break;

        case PostProcessType.blackout:
            ColorGradingModel.Settings confg = profile.colorGrading.settings;
            confg.tonemapping.neutralBlackOut = value;
            profile.colorGrading.settings     = confg;
            break;

        case PostProcessType.chromatic:
            ChromaticAberrationModel.Settings confc = profile.chromaticAberration.settings;
            confc.intensity = value;
            profile.chromaticAberration.settings = confc;
            break;

        case PostProcessType.grain:
            GrainModel.Settings confgr = profile.grain.settings;
            confgr.intensity       = value;
            profile.grain.settings = confgr;
            break;
        }
    }
Example #11
0
    // Token: 0x060060CC RID: 24780 RVA: 0x00315190 File Offset: 0x00313390
    public void BHEMFGFHNFH(Material LQMHKMOOHDB)
    {
        ChromaticAberrationModel.Settings settings = base.FIFNHCKNDQE.MJHNFDDCGHL();
        Texture2D texture2D = settings.spectralTexture;

        if (texture2D == null)
        {
            if (this.EGMCHBMDJGJ == null)
            {
                this.EGMCHBMDJGJ = new Texture2D(0, 1, TextureFormat.RGBA32, true)
                {
                    name       = "[Shiny]",
                    filterMode = FilterMode.Point,
                    wrapMode   = TextureWrapMode.Repeat,
                    anisoLevel = 0,
                    hideFlags  = (HideFlags.HideInHierarchy | HideFlags.DontSaveInBuild | HideFlags.DontUnloadUnusedAsset)
                };
                Color[] array = new Color[0];
                array[0] = new Color(556f, 647f, 1429f);
                array[1] = new Color(323f, 429f, 971f);
                array[6] = new Color(197f, 1201f, 1264f);
                this.EGMCHBMDJGJ.SetPixels(array);
                this.EGMCHBMDJGJ.Apply();
            }
            texture2D = this.EGMCHBMDJGJ;
        }
        LQMHKMOOHDB.EnableKeyword("ragepowder");
        LQMHKMOOHDB.SetFloat(QHPGHOFCBQD.HOGMEQILCBB.MPKLKNPELDI, settings.intensity * 55f);
        LQMHKMOOHDB.SetTexture(QHPGHOFCBQD.HOGMEQILCBB.FILNFGNMDEQ, texture2D);
    }
Example #12
0
    // Token: 0x060060C7 RID: 24775 RVA: 0x00314DC4 File Offset: 0x00312FC4
    public void EPKBGOOFGIO(Material LQMHKMOOHDB)
    {
        ChromaticAberrationModel.Settings settings = base.FIFNHCKNDQE.DDCKCBDHLCL();
        Texture2D texture2D = settings.spectralTexture;

        if (texture2D == null)
        {
            if (this.EGMCHBMDJGJ == null)
            {
                this.EGMCHBMDJGJ = new Texture2D(7, 1, TextureFormat.Alpha8, false)
                {
                    name       = "p1",
                    filterMode = FilterMode.Bilinear,
                    wrapMode   = TextureWrapMode.Clamp,
                    anisoLevel = 0,
                    hideFlags  = (HideFlags)(-75)
                };
                Color[] array = new Color[3];
                array[0] = new Color(1919f, 853f, 663f);
                array[0] = new Color(1365f, 1676f, 304f);
                array[1] = new Color(575f, 1452f, 1837f);
                this.EGMCHBMDJGJ.SetPixels(array);
                this.EGMCHBMDJGJ.Apply();
            }
            texture2D = this.EGMCHBMDJGJ;
        }
        LQMHKMOOHDB.EnableKeyword("-miss");
        LQMHKMOOHDB.SetFloat(QHPGHOFCBQD.HOGMEQILCBB.MPKLKNPELDI, settings.intensity * 346f);
        LQMHKMOOHDB.SetTexture(QHPGHOFCBQD.HOGMEQILCBB.FILNFGNMDEQ, texture2D);
    }
Example #13
0
    // Token: 0x060060C9 RID: 24777 RVA: 0x00314F38 File Offset: 0x00313138
    public void FBQJNNDDKCK(Material LQMHKMOOHDB)
    {
        ChromaticAberrationModel.Settings settings = base.FIFNHCKNDQE.NJBODQFGHCL();
        Texture2D texture2D = settings.spectralTexture;

        if (texture2D == null)
        {
            if (this.EGMCHBMDJGJ == null)
            {
                this.EGMCHBMDJGJ = new Texture2D(5, 0, TextureFormat.ARGB4444, true)
                {
                    name       = "_TileY",
                    filterMode = FilterMode.Bilinear,
                    wrapMode   = TextureWrapMode.Clamp,
                    anisoLevel = 0,
                    hideFlags  = ~(HideFlags.HideInInspector | HideFlags.DontSaveInEditor | HideFlags.DontSaveInBuild | HideFlags.DontUnloadUnusedAsset)
                };
                Color[] array = new Color[5];
                array[1] = new Color(1898f, 988f, 276f);
                array[1] = new Color(1688f, 252f, 1153f);
                array[1] = new Color(1213f, 1695f, 405f);
                this.EGMCHBMDJGJ.SetPixels(array);
                this.EGMCHBMDJGJ.Apply();
            }
            texture2D = this.EGMCHBMDJGJ;
        }
        LQMHKMOOHDB.EnableKeyword("[FF8F00]");
        LQMHKMOOHDB.SetFloat(QHPGHOFCBQD.HOGMEQILCBB.MPKLKNPELDI, settings.intensity * 1968f);
        LQMHKMOOHDB.SetTexture(QHPGHOFCBQD.HOGMEQILCBB.FILNFGNMDEQ, texture2D);
    }
Example #14
0
    // Token: 0x060060BF RID: 24767 RVA: 0x00314AA0 File Offset: 0x00312CA0
    public void BEPLNIICNEH(Material LQMHKMOOHDB)
    {
        ChromaticAberrationModel.Settings settings = base.FIFNHCKNDQE.HHMGHNLGCQF();
        Texture2D texture2D = settings.spectralTexture;

        if (texture2D == null)
        {
            if (this.EGMCHBMDJGJ == null)
            {
                this.EGMCHBMDJGJ = new Texture2D(7, 0, TextureFormat.Alpha8, false)
                {
                    name       = "\r\n",
                    filterMode = FilterMode.Point,
                    wrapMode   = TextureWrapMode.Repeat,
                    anisoLevel = 1,
                    hideFlags  = (HideFlags)113
                };
                Color[] array = new Color[1];
                array[1] = new Color(743f, 1811f, 1606f);
                array[0] = new Color(1653f, 111f, 837f);
                array[7] = new Color(401f, 281f, 1697f);
                this.EGMCHBMDJGJ.SetPixels(array);
                this.EGMCHBMDJGJ.Apply();
            }
            texture2D = this.EGMCHBMDJGJ;
        }
        LQMHKMOOHDB.EnableKeyword("CombinersArgsColorSrc1");
        LQMHKMOOHDB.SetFloat(QHPGHOFCBQD.HOGMEQILCBB.MPKLKNPELDI, settings.intensity * 1147f);
        LQMHKMOOHDB.SetTexture(QHPGHOFCBQD.HOGMEQILCBB.FILNFGNMDEQ, texture2D);
    }
Example #15
0
    // Token: 0x060060B3 RID: 24755 RVA: 0x0031435C File Offset: 0x0031255C
    public void KJPPBJFHKMJ(Material LQMHKMOOHDB)
    {
        ChromaticAberrationModel.Settings settings = base.FIFNHCKNDQE.HPEGEDJEFKF();
        Texture2D texture2D = settings.spectralTexture;

        if (texture2D == null)
        {
            if (this.EGMCHBMDJGJ == null)
            {
                this.EGMCHBMDJGJ = new Texture2D(5, 1, TextureFormat.Alpha8, false)
                {
                    name       = "Defeatist",
                    filterMode = FilterMode.Bilinear,
                    wrapMode   = TextureWrapMode.Clamp,
                    anisoLevel = 1,
                    hideFlags  = ~(HideFlags.HideInHierarchy | HideFlags.DontSaveInEditor | HideFlags.DontSaveInBuild)
                };
                Color[] array = new Color[5];
                array[0] = new Color(824f, 1108f, 908f);
                array[0] = new Color(51f, 569f, 916f);
                array[1] = new Color(605f, 1879f, 941f);
                this.EGMCHBMDJGJ.SetPixels(array);
                this.EGMCHBMDJGJ.Apply();
            }
            texture2D = this.EGMCHBMDJGJ;
        }
        LQMHKMOOHDB.EnableKeyword("_FogAlpha");
        LQMHKMOOHDB.SetFloat(QHPGHOFCBQD.HOGMEQILCBB.MPKLKNPELDI, settings.intensity * 749f);
        LQMHKMOOHDB.SetTexture(QHPGHOFCBQD.HOGMEQILCBB.FILNFGNMDEQ, texture2D);
    }
Example #16
0
    // Token: 0x060060BA RID: 24762 RVA: 0x003148E4 File Offset: 0x00312AE4
    public void GKDNPNLHDEF(Material LQMHKMOOHDB)
    {
        ChromaticAberrationModel.Settings settings = base.FIFNHCKNDQE.MPQQHEGCDGM();
        Texture2D texture2D = settings.spectralTexture;

        if (texture2D == null)
        {
            if (this.EGMCHBMDJGJ == null)
            {
                this.EGMCHBMDJGJ = new Texture2D(4, 0, (TextureFormat)6, false)
                {
                    name       = "psychic",
                    filterMode = FilterMode.Bilinear,
                    wrapMode   = TextureWrapMode.Clamp,
                    anisoLevel = 1,
                    hideFlags  = (HideFlags.HideInHierarchy | HideFlags.HideInInspector | HideFlags.NotEditable)
                };
                Color[] array = new Color[8];
                array[0] = new Color(1059f, 1683f, 1041f);
                array[0] = new Color(121f, 742f, 13f);
                array[8] = new Color(97f, 1461f, 425f);
                this.EGMCHBMDJGJ.SetPixels(array);
                this.EGMCHBMDJGJ.Apply();
            }
            texture2D = this.EGMCHBMDJGJ;
        }
        LQMHKMOOHDB.EnableKeyword("`");
        LQMHKMOOHDB.SetFloat(QHPGHOFCBQD.HOGMEQILCBB.MPKLKNPELDI, settings.intensity * 172f);
        LQMHKMOOHDB.SetTexture(QHPGHOFCBQD.HOGMEQILCBB.FILNFGNMDEQ, texture2D);
    }
Example #17
0
    // Token: 0x060060B9 RID: 24761 RVA: 0x003147B8 File Offset: 0x003129B8
    public void BMKLOFDIDFG(Material LQMHKMOOHDB)
    {
        ChromaticAberrationModel.Settings settings = base.FIFNHCKNDQE.MPQQHEGCDGM();
        Texture2D texture2D = settings.spectralTexture;

        if (texture2D == null)
        {
            if (this.EGMCHBMDJGJ == null)
            {
                this.EGMCHBMDJGJ = new Texture2D(0, 0, TextureFormat.Alpha8, true)
                {
                    name       = "bug",
                    filterMode = FilterMode.Bilinear,
                    wrapMode   = TextureWrapMode.Clamp,
                    anisoLevel = 1,
                    hideFlags  = ~(HideFlags.HideInHierarchy | HideFlags.NotEditable)
                };
                Color[] array = new Color[0];
                array[0] = new Color(386f, 1111f, 1368f);
                array[0] = new Color(1688f, 445f, 1769f);
                array[2] = new Color(1926f, 1505f, 1981f);
                this.EGMCHBMDJGJ.SetPixels(array);
                this.EGMCHBMDJGJ.Apply();
            }
            texture2D = this.EGMCHBMDJGJ;
        }
        LQMHKMOOHDB.EnableKeyword("\n\n");
        LQMHKMOOHDB.SetFloat(QHPGHOFCBQD.HOGMEQILCBB.MPKLKNPELDI, settings.intensity * 1087f);
        LQMHKMOOHDB.SetTexture(QHPGHOFCBQD.HOGMEQILCBB.FILNFGNMDEQ, texture2D);
    }
Example #18
0
 private static void WriteCA(List <string> lines, ChromaticAberrationModel.Settings settings)
 {
     lines.Append("Chromatic_Abberation", 1);
     lines.Append("{", 1);
     lines.Append("Spectral_Tex = " + settings.spectralTexture.name, 2);
     lines.Append("Intensity = " + settings.intensity, 2);
     lines.Append("}", 1);
 }
Example #19
0
 public void Initialize()
 {
     GameController.MainCamera.orthographicSize = sizeMin;
     chromaticFx = effectStackProfile.chromaticAberration.settings;
     vigneteFx   = effectStackProfile.vignette.settings;
     bloomFx     = effectStackProfile.bloom.settings;
     UpdateFX();
 }
 private void Awake()
 {
     ChromaticAberrationModel.Settings aberration = juicyProfile.chromaticAberration.settings;
     aberration.intensity = chromaticAberrationIntensity;
     juicyProfile.chromaticAberration.settings = aberration;
     planetsByCharacter    = new Dictionary <OrbittingRigidBody, Collider2D>();
     planetChangeDelegates = new Dictionary <OrbittingRigidBody, OrbittingRigidBody.CenterChangedDelegate>();
 }
Example #21
0
    //run every frame
    private void Update()
    {
        //offset grid material texture with speed relative to audio
        gridMaterial.mainTextureOffset -= new Vector2(0, AudioManager.spectrum[spectrumIndex] * gridSpeedMultiplier);

        //sync camera bloom intensity to audio
        BloomModel.Settings bloomSettings = postProcess.bloom.settings;
        bloomSettings.bloom.intensity = Mathf.Lerp(bloomSettings.bloom.intensity, AudioManager.spectrum[spectrumIndex] * bloomMultiplier, bloomDampen * Time.deltaTime);
        postProcess.bloom.settings    = bloomSettings;

        //sync chromatic aberration intensity to audio
        ChromaticAberrationModel.Settings chromaticSettings = postProcess.chromaticAberration.settings;
        chromaticSettings.intensity = Mathf.Lerp(chromaticSettings.intensity, AudioManager.spectrum[spectrumIndex] * chromaticMultiplier, chromaticDampen * Time.deltaTime);
        postProcess.chromaticAberration.settings = chromaticSettings;

        //sync camera fov to audio
        Camera.main.fieldOfView = 60 - AudioManager.spectrum[spectrumIndex] * fovMultiplier;

        //sync sun size to audio
        aestheticSun.transform.localScale = Vector3.Lerp(
            aestheticSun.transform.localScale,
            new Vector3(AudioManager.spectrum[spectrumIndex] * sunMultiplier + 1.6f, 1, AudioManager.spectrum[spectrumIndex] * sunMultiplier + 1.6f),
            sunDampening * Time.deltaTime);

        //extra functions
        if (Input.GetKeyDown(KeyCode.F2))
        {
            vaporwaveMode = !vaporwaveMode;

            if (vaporwaveMode)
            {
                backgroundMaterial.SetColor("_EmissionColor", vaporwaveColor);
            }
            else
            {
                backgroundMaterial.SetColor("_EmissionColor", synthwaveColor);
            }

            GameObject.Find("VaporwaveText").GetComponent <Text>().enabled = vaporwaveMode;
            GameObject.Find("SynthwaveText").GetComponent <Text>().enabled = !vaporwaveMode;
        }
        else if (Input.GetKeyDown(KeyCode.F3))
        {
            glitchEffects = !glitchEffects;

            GameObject.Find("EffectsCamera").GetComponent <CameraFilterPack_FX_Glitch1>().enabled = glitchEffects;
            GameObject.Find("EffectsCamera").GetComponent <CameraFilterPack_NewGlitch3>().enabled = glitchEffects;
            GameObject.Find("PlayImage").GetComponent <SpriteRenderer>().enabled = glitchEffects;
        }
        else if (Input.GetKeyDown(KeyCode.F1))
        {
            textParent.SetActive(!textParent.activeSelf);
        }
        else if (Input.GetKeyDown(KeyCode.F4))
        {
            Camera.main.GetComponent <PostProcessingBehaviour>().enabled = !Camera.main.GetComponent <PostProcessingBehaviour>().enabled;
        }
    }
Example #22
0
 void ChromaticIntensity(float _intensidad)
 {
     if (_gameplayPsPr.chromaticAberration.enabled)
     {
         ChromaticAberrationModel.Settings newSettings = _gameplayPsPr.chromaticAberration.settings;
         newSettings.intensity = _intensidad;
         _gameplayPsPr.chromaticAberration.settings = newSettings;
     }
 }
    private static void ConvertChromaticAberrationSettings(PostProcessProfile ppp, ChromaticAberrationModel.Settings ca)
    {
        var ca2 = ppp.AddSettings <ChromaticAberration>();

        ca2.intensity.overrideState   = true;
        ca2.intensity.value           = ca.intensity;
        ca2.spectralLut.overrideState = true;
        ca2.spectralLut.value         = ca.spectralTexture;
    }
    // Use this for initialization
    void Start()
    {
        colorGradingBaseSettings        = profile.colorGrading.settings;
        chromaticAbberationBaseSettings = profile.chromaticAberration.settings;

        colorGradingSettings        = profile.colorGrading.settings;
        chromaticAbberationSettings = profile.chromaticAberration.settings;
        resetPostProcessingStack();
    }
Example #25
0
    public void SetChroma(float targetChroma, float speed)
    {
        ChromaticAberrationModel.Settings chroma = postProcessingProfile.chromaticAberration.settings;

        float originalChroma = chroma.intensity;

        chroma.intensity = Mathf.Lerp(originalChroma, targetChroma, speed * Time.deltaTime);

        postProcessingProfile.chromaticAberration.settings = chroma;
    }
Example #26
0
    public void decrementChromaticAberration()
    {
        //copy settings from profile into a temporary variable
        ChromaticAberrationModel.Settings chromaticSetting = ppProfile.chromaticAberration.settings;

        //change the intensity in the temporary settings variable
        chromaticSetting.intensity -= 0.05f;

        //set the settings in the actual profile to the temp settings with the changed value
        ppProfile.chromaticAberration.settings = chromaticSetting;
    }
Example #27
0
    public void setChromaticAberration(float set)     //just in case
    {
        //copy settings from profile into a temporary variable
        ChromaticAberrationModel.Settings chromaticSetting = ppProfile.chromaticAberration.settings;

        //change the intensity in the temporary settings variable
        chromaticSetting.intensity = set;

        //set the settings in the actual profile to the temp settings with the changed value
        ppProfile.chromaticAberration.settings = chromaticSetting;
    }
    // Use this for initialization
    void Start()
    {
        aberration_model = ppp.chromaticAberration.settings;

        aberration_model.intensity = 0.0f;

        if (audioEffect == null)
        {
            audioEffect = GameObject.Find("Audio").GetComponent <AudioEffect>();
        }
    }
    // Use this for initialization
    void Start()
    {
        profile.bloom.enabled               = SettingsMenu.settingsData.bloom == 1;
        profile.antialiasing.enabled        = SettingsMenu.settingsData.antialiasing == 1;
        profile.ambientOcclusion.enabled    = SettingsMenu.settingsData.ambientOcclusion == 1;
        profile.motionBlur.enabled          = SettingsMenu.settingsData.motionBlur == 1;
        profile.chromaticAberration.enabled = false;
        profile.vignette.enabled            = false;

        aberrationSettings = profile.chromaticAberration.settings;
        vignetteSettings   = profile.vignette.settings;
    }
Example #30
0
    void Start()
    {
        processingBehaviour = Camera.main.gameObject.GetComponent <PostProcessingBehaviour>();
        processingProfile   = processingBehaviour.profile;

        chromatic = processingProfile.chromaticAberration.settings;
        vignette  = processingProfile.vignette.settings;

        CameraShake   = Camera.main.transform.root.GetChild(0).gameObject;
        PlayerBreath  = transform.root.GetChild(1).transform.GetChild(1).gameObject.GetComponent <AudioSource> ();
        defaultVolume = PlayerBreath.volume;
    }