コード例 #1
0
        protected override void Start()
        {
            base.Start();

            PrepShader();

            oldVibrancy   = vibrancy;
            oldBrightness = brightness;
            oldFlatten    = flatten;

            source = source ?? FindObjectOfType <TranslucentImageSource>();
            material.SetTexture("_BlurTex", source.BlurredScreen);
        }
コード例 #2
0
        protected override void Start()
        {
            base.Start();

            PrepShader();

            oldVibrancy   = vibrancy;
            oldBrightness = brightness;
            oldFlatten    = flatten;

            source = source ? source : FindObjectOfType <TranslucentImageSource>();
            material.SetTexture(_blurTexPropId, source.BlurredScreen);


#if UNITY_5_6_OR_NEWER
            canvas.additionalShaderChannels |= AdditionalCanvasShaderChannels.TexCoord1;
#endif
        }