Exemplo n.º 1
0
 public void SetupStates(int shader_index)
 {
     if (shader_index >= 0)
     {
         // TEST CODE: Enable scrolling texture on transparant chicago shaders.
         if (m_LookupTable[shader_index].type == ShaderType.Schi)
         {
             TagSchi s = (TagSchi)m_SchiArray[m_LookupTable[shader_index].index];
             s.UpdateShaderAnimation();
         }
         else if (m_LookupTable[shader_index].type == ShaderType.Scex)
         {
             TagScex s = (TagScex)m_ScexArray[m_LookupTable[shader_index].index];
             s.UpdateShaderAnimation();
         }
         else if (m_LookupTable[shader_index].type == ShaderType.Swat)
         {
             TagSwat s = (TagSwat)m_SwatArray[m_LookupTable[shader_index].index];
             s.UpdateShaderAnimation();
         }
     }
 }