History

Generating the SH from the cube map!

Sam Cake committed 11 years ago

Commit 65e83df1 parent 04d3f696 files · +17 −7Browse files

Showing the changes to libraries/render-utils/src/TextureCache.cpp (1 of 6 files). Show all

Unified · Split

libraries/render-utils/src/TextureCache.cpp+2−1
@@ -514,7 +514,8 @@ void NetworkTexture::setImage(const QImage& image, bool translucent, const QColo · 513 unmodified lines
514514
515515 if ((_width > 0) && (_height > 0)) {
516516
517− bool isLinearRGB = true; //(_type == NORMAL_TEXTURE) || (_type == EMISSIVE_TEXTURE);
517+ // bool isLinearRGB = true; //(_type == NORMAL_TEXTURE) || (_type == EMISSIVE_TEXTURE);
518+ bool isLinearRGB = !(_type == CUBE_TEXTURE); //(_type == NORMAL_TEXTURE) || (_type == EMISSIVE_TEXTURE);
518519
519520 gpu::Element formatGPU = gpu::Element(gpu::VEC3, gpu::UINT8, (isLinearRGB ? gpu::RGB : gpu::SRGB));
520521 gpu::Element formatMip = gpu::Element(gpu::VEC3, gpu::UINT8, (isLinearRGB ? gpu::RGB : gpu::SRGB));