Skip to content
Snippets Groups Projects
Commit 34deb1f5 authored by Mathias Paulin's avatar Mathias Paulin :speech_balloon:
Browse files

Remove debug messages

parent 163b358e
Branches
No related tags found
No related merge requests found
......@@ -463,8 +463,7 @@ void EnvMap::setupTexturesFromCube() {
if ( ( imgname.find( "posz" ) != imgname.npos ) ||
( imgname.find( "-Z-plux" ) != imgname.npos ) )
{
imgIdx = 5;
}
imgIdx = 5; }
// is it a -Z face ? --> goes to the +Z of cubemap, need to flip horizontally
if ( ( imgname.find( "negz" ) != imgname.npos ) ||
( imgname.find( "-Z-minux" ) != imgname.npos ) )
......@@ -474,11 +473,9 @@ void EnvMap::setupTexturesFromCube() {
int w;
int h;
stbi_set_flip_vertically_on_load( flipV );
auto loaded = stbi_loadf( imgname.c_str(), &w, &h, &n, 0 );
m_width = w;
m_height = h;
std::cerr << "copying " << m_width * m_height << " pixels of depth " << n << "."
<< std::endl;
auto loaded = stbi_loadf( imgname.c_str(), &w, &h, &n, 0 );
m_width = w;
m_height = h;
m_skyData[imgIdx] = new float[m_width * m_height * 4];
for ( int l = 0; l < m_height; ++l )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment