示例#1
0
        internal static void Initialize()
        {
            Material         = Material.Find(DefaultIds.material);
            MaterialEquirect = Material.Find(DefaultIds.materialEquirect);
            MaterialFont     = Material.Find(DefaultIds.materialFont);
            MaterialHand     = Material.Find(DefaultIds.materialHand);
            MaterialUI       = Material.Find(DefaultIds.materialUI);

            Tex      = Tex.Find(DefaultIds.tex);
            TexBlack = Tex.Find(DefaultIds.texBlack);
            TexGray  = Tex.Find(DefaultIds.texGray);
            TexFlat  = Tex.Find(DefaultIds.texFlat);
            TexRough = Tex.Find(DefaultIds.texRough);
            Cubemap  = Tex.Find(DefaultIds.cubemap);

            MeshQuad   = Mesh.Find(DefaultIds.meshQuad);
            MeshCube   = Mesh.Find(DefaultIds.meshCube);
            MeshSphere = Mesh.Find(DefaultIds.meshSphere);

            Shader         = Shader.Find(DefaultIds.shader);
            ShaderPbr      = Shader.Find(DefaultIds.shaderPbr);
            ShaderUnlit    = Shader.Find(DefaultIds.shaderUnlit);
            ShaderFont     = Shader.Find(DefaultIds.shaderFont);
            ShaderEquirect = Shader.Find(DefaultIds.shaderEquirect);
            ShaderUI       = Shader.Find(DefaultIds.shaderUI);

            SoundClick   = Sound.Find(DefaultIds.soundClick);
            SoundUnclick = Sound.Find(DefaultIds.soundUnclick);
        }