コード例 #1
0
        void LoadScexShader(TagFileName tfn)
        {
            TagScex shdr = new TagScex();

            try
            {
                shdr.Load(tfn);
                shdr.LoadTextures(this.MaxTextureStages);
            }
            catch (Exception e)
            {
                Trace.WriteLine("Scex Shader Load failed: " + tfn.RelativePath + "(" + e.Message + ")");
                shdr.EnableDefaultShading();
            }

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