Example #1
0
        /// <summary>
        ///     Loads a single image texture into the skybox this will probably always result in visibale seams.
        /// </summary>
        /// <param name="program"></param>
        /// <returns></returns>
        public static ObjGroupSkyBox GetNewSkyBoxTypeT(ShaderProgram program, string aFilePath)
        {
            BoxIndex[] anBoxIndix = BoxIndex.GetTypeT();

            Dictionary <RenderObjects.BoxSides, Bitmap> tempBmpList =
//                RenderObjects.GetBoxTextures(@".\SkyBoxes\Above_The_Sea.jpg", 3, 4, anBoxIndix);
//                RenderObjects.GetBoxTextures(@".\SkyBoxes\2226.jpg", 3, 4, anBoxIndix);
//            RenderObjects.GetBoxTextures(@".\SkyBoxes\interstellar_large.jpg", 3, 4, anBoxIndix);
//            RenderObjects.GetBoxTextures(@".\SkyBoxes\grimmnight_large.jpg", 3, 4, anBoxIndix);
                RenderObjects.GetBoxTextures(aFilePath, 3, 4, anBoxIndix);

            ObjGroupSkyBox tempObjGroupSkyBox = GetTexturedBox3(program, tempBmpList);

            return(tempObjGroupSkyBox);
        }