This commit is contained in:
bkaradzic 2013-09-08 23:14:34 -07:00
parent 983f1e6f9a
commit cacff49d99
2 changed files with 2 additions and 9 deletions

View file

@ -338,7 +338,7 @@ int _main_(int /*_argc*/, char** /*_argv*/)
bgfx::destroyFragmentShader(fsh); bgfx::destroyFragmentShader(fsh);
// Load diffuse texture. // Load diffuse texture.
mem = loadTexture("texture_compression_ptc22.pvr"); //fieldstone-rgba.dds"); mem = loadTexture("fieldstone-rgba.dds");
bgfx::TextureHandle textureColor = bgfx::createTexture(mem); bgfx::TextureHandle textureColor = bgfx::createTexture(mem);
// Load normal texture. // Load normal texture.

View file

@ -233,13 +233,6 @@ int _main_(int /*_argc*/, char** /*_argv*/)
, BGFX_TEXTURE_MIN_POINT|BGFX_TEXTURE_MAG_POINT|BGFX_TEXTURE_MIP_POINT , BGFX_TEXTURE_MIN_POINT|BGFX_TEXTURE_MAG_POINT|BGFX_TEXTURE_MIP_POINT
); );
updateTextureCubeRectBgra8(textureCube, 0, 0, 0, textureSide, textureSide, 0xff, 0, 0);
updateTextureCubeRectBgra8(textureCube, 1, 0, 0, textureSide, textureSide, 0xff, 0, 0);
updateTextureCubeRectBgra8(textureCube, 2, 0, 0, textureSide, textureSide, 0xff, 0, 0);
updateTextureCubeRectBgra8(textureCube, 3, 0, 0, textureSide, textureSide, 0xff, 0, 0);
updateTextureCubeRectBgra8(textureCube, 4, 0, 0, textureSide, textureSide, 0xff, 0, 0);
updateTextureCubeRectBgra8(textureCube, 5, 0, 0, textureSide, textureSide, 0xff, 0, 0);
uint8_t rr = rand()%255; uint8_t rr = rand()%255;
uint8_t gg = rand()%255; uint8_t gg = rand()%255;
uint8_t bb = rand()%255; uint8_t bb = rand()%255;
@ -291,7 +284,7 @@ int _main_(int /*_argc*/, char** /*_argv*/)
++hit; ++hit;
const Pack2D& rect = face.m_rect; const Pack2D& rect = face.m_rect;
updateTextureCubeRectBgra8(textureCube, face.m_side, rect.m_x, rect.m_y, rect.m_width, rect.m_height, 0, 0xff, 0); updateTextureCubeRectBgra8(textureCube, face.m_side, rect.m_x, rect.m_y, rect.m_width, rect.m_height, rr, gg, bb);
rr = rand()%255; rr = rand()%255;
gg = rand()%255; gg = rand()%255;