Ejemplo n.º 1
0
        public override void ModifyMaterial(Material newMaterial, Graphic graphic)
        {
            var connector = BaseConnector.FindConnector(graphic);

            newMaterial.shader = connector.FindShader("UIHsvModifier");
            paramTex.RegisterMaterial(newMaterial);
        }
Ejemplo n.º 2
0
        public override void ModifyMaterial(Material newMaterial, Graphic graphic)
        {
            var connector = BaseConnector.FindConnector(graphic);

            newMaterial.shader = connector.FindShader("UIEffect");
            SetShaderVariants(newMaterial, m_EffectMode, m_ColorMode, m_BlurMode,
                              m_AdvancedBlur ? BlurEx.Ex : BlurEx.None);

            paramTex.RegisterMaterial(newMaterial);
        }