public void ReplaceOriginalShader(MaterialEffectInfo info) { GOEEntityMaterial matComponent = GOEEntityComponent.Add <GOEEntityMaterial>(this); matComponent.ReplaceShader(info); matComponent.ChangeSharedMaterials(); }
public string CurShaderName() { GOEEntityMaterial matComponent = GetComponent <GOEEntityMaterial>(); if (matComponent == null) { return("GOE"); } return(matComponent.CurShaderName); }
public bool IsOriginalShader() { GOEEntityMaterial matComponent = GetComponent <GOEEntityMaterial>(); if (matComponent == null) { return(true); } return(matComponent.IsOriginalshader); }
protected override void DestoryObject() { GOEEntityMaterial matComponent = GetComponent <GOEEntityMaterial>(); if (matComponent != null) { matComponent.OriginalShader(); matComponent.ClearEffect(); DelComponent(matComponent); } base.DestoryObject(); }
public void StopShader(string name, bool destory) { GOEEntityMaterial matComponent = GOEEntityComponent.Add <GOEEntityMaterial>(this); matComponent.StopShader(name, destory); }
public void OriginalShader() { GOEEntityMaterial matComponent = GOEEntityComponent.Add <GOEEntityMaterial>(this); matComponent.OriginalShader(); }
public void UpdateSharedMaterials(string[] repalceShaderName) { GOEEntityMaterial matComponent = GOEEntityComponent.Add <GOEEntityMaterial>(this); matComponent.UpdateSharedMaterials(repalceShaderName); }
public void ReplaceShader(MaterialEffectInfo info) { GOEEntityMaterial matComponent = GOEEntityComponent.Add <GOEEntityMaterial>(this); matComponent.ReplaceShader(info); }
public void SetColor(string name, Color color, string nodeName = "") { GOEEntityMaterial matComponent = GOEEntityComponent.Add <GOEEntityMaterial>(this); matComponent.SetColor(name, color, nodeName); }