Ejemplo n.º 1
0
        public void ReplaceOriginalShader(MaterialEffectInfo info)
        {
            GOEEntityMaterial matComponent = GOEEntityComponent.Add <GOEEntityMaterial>(this);

            matComponent.ReplaceShader(info);
            matComponent.ChangeSharedMaterials();
        }
Ejemplo n.º 2
0
        public string CurShaderName()
        {
            GOEEntityMaterial matComponent = GetComponent <GOEEntityMaterial>();

            if (matComponent == null)
            {
                return("GOE");
            }
            return(matComponent.CurShaderName);
        }
Ejemplo n.º 3
0
        public bool IsOriginalShader()
        {
            GOEEntityMaterial matComponent = GetComponent <GOEEntityMaterial>();

            if (matComponent == null)
            {
                return(true);
            }
            return(matComponent.IsOriginalshader);
        }
Ejemplo n.º 4
0
        protected override void DestoryObject()
        {
            GOEEntityMaterial matComponent = GetComponent <GOEEntityMaterial>();

            if (matComponent != null)
            {
                matComponent.OriginalShader();
                matComponent.ClearEffect();
                DelComponent(matComponent);
            }
            base.DestoryObject();
        }
Ejemplo n.º 5
0
        public void StopShader(string name, bool destory)
        {
            GOEEntityMaterial matComponent = GOEEntityComponent.Add <GOEEntityMaterial>(this);

            matComponent.StopShader(name, destory);
        }
Ejemplo n.º 6
0
        public void OriginalShader()
        {
            GOEEntityMaterial matComponent = GOEEntityComponent.Add <GOEEntityMaterial>(this);

            matComponent.OriginalShader();
        }
Ejemplo n.º 7
0
        public void UpdateSharedMaterials(string[] repalceShaderName)
        {
            GOEEntityMaterial matComponent = GOEEntityComponent.Add <GOEEntityMaterial>(this);

            matComponent.UpdateSharedMaterials(repalceShaderName);
        }
Ejemplo n.º 8
0
        public void ReplaceShader(MaterialEffectInfo info)
        {
            GOEEntityMaterial matComponent = GOEEntityComponent.Add <GOEEntityMaterial>(this);

            matComponent.ReplaceShader(info);
        }
Ejemplo n.º 9
0
        public void SetColor(string name, Color color, string nodeName = "")
        {
            GOEEntityMaterial matComponent = GOEEntityComponent.Add <GOEEntityMaterial>(this);

            matComponent.SetColor(name, color, nodeName);
        }