Example #1
0
        void LoadSosoShader(TagFileName tfn)
        {
            TagSoso shdr = new TagSoso();

            try
            {
                shdr.LoadTagBuffer(tfn);
                shdr.LoadTagData();
                //shdr.Load(tfn);
                shdr.LoadTextures(ref m_TextureManager, this.MaxTextureStages);
            }
            catch (Exception e)
            {
                Trace.WriteLine("Senv Shader Load failed: " + tfn.RelativePath + "(" + e.Message + ")");
                shdr.EnableDefaultShading();
            }

            m_LookupTable[LookupCount].index = (short)m_SosoArray.Count;
            m_SosoArray.Add(shdr);
        }