protected override void Start() { base.Start(); PrepShader(); oldVibrancy = vibrancy; oldBrightness = brightness; oldFlatten = flatten; source = source ?? FindObjectOfType <TranslucentImageSource>(); material.SetTexture("_BlurTex", source.BlurredScreen); }
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 }