Skip to content
Snippets Groups Projects
Commit d3b4c4ae authored by David Parks's avatar David Parks
Browse files

SL-18190 Don't generate mips for irradiance maps because they're never sampled.

parent a5233ed7
No related branches found
No related tags found
No related merge requests found
...@@ -534,8 +534,9 @@ void LLReflectionMapManager::updateProbeFace(LLReflectionMap* probe, U32 face) ...@@ -534,8 +534,9 @@ void LLReflectionMapManager::updateProbeFace(LLReflectionMap* probe, U32 face)
} }
} }
for (int i = start_mip; i < mMipChain.size(); ++i) //for (int i = start_mip; i < mMipChain.size(); ++i)
{ {
int i = start_mip;
LL_PROFILE_GPU_ZONE("probe irradiance gen"); LL_PROFILE_GPU_ZONE("probe irradiance gen");
glViewport(0, 0, mMipChain[i].getWidth(), mMipChain[i].getHeight()); glViewport(0, 0, mMipChain[i].getWidth(), mMipChain[i].getHeight());
for (int cf = 0; cf < 6; ++cf) for (int cf = 0; cf < 6; ++cf)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment