public static new void ModifyCompilationEnvironment(H1MaterialResource material, H1ShaderCompileHelper.H1ShaderCompilerEnvironment outEnvironment)
        {
            // set number of texture coordinate space
            outEnvironment.SetDefine("H1_NUM_TEXCOORD2D", 1);
            outEnvironment.SetDefine("H1_NUM_TEXCOORD3D", 0); // currently disable TEXCOORD3D

            if (material.DrawWithColor)                       // depending on material type enabling drawing with color
            {
                outEnvironment.SetDefine("H1_COLOR", 1);
            }
            else
            {
                outEnvironment.SetDefine("H1_COLOR", 0);
            }
        }
        public static new void ModifyCompilationEnvironment(H1MaterialResource material, H1ShaderCompileHelper.H1ShaderCompilerEnvironment outEnvironment)
        {
            // mark gpu skin vertex factory
            outEnvironment.SetDefine("H1_GPUVERTEXFACTORY", 1);

            // set number of texture coordinate space
            outEnvironment.SetDefine("H1_NUM_TEXCOORD2D", 1);

            if (material.DrawWithColor)
            {
                outEnvironment.SetDefine("H1_COLOR", 1);
            }
            else
            {
                outEnvironment.SetDefine("H1_COLOR", 0);
            }
        }