Exemplo n.º 1
0
 public static void SwitchShader(Material[] m_materials, bool transparent, ShaderManager.ShaderType shaderType)
 {
     if (shaderType == ShaderManager.ShaderType.None)
     {
         return;
     }
     if (!transparent)
     {
         if (shaderType == ShaderManager.ShaderType.TextureMult)
         {
             ShaderEffectUtils.SetShader(m_materials, "MatCap/Vertex/Textured Multiply(NoTransparent)");
         }
     }
     else if (shaderType == ShaderManager.ShaderType.TextureMult)
     {
         ShaderEffectUtils.SetShader(m_materials, "MatCap/Vertex/Textured Multiply");
     }
 }