Merge pull request #1425 from Azaezel/alpha41/forwardFix

fix forward cubemip
This commit is contained in:
Brian Roberts 2025-03-25 14:28:01 -05:00 committed by GitHub
commit 5436429e05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1324,7 +1324,7 @@ void ProcessedShaderMaterial::setSceneInfo(SceneRenderState * state, const Scene
if (sgData.cubemap)
shaderConsts->setSafe(handles->mCubeMipsSC, (F32)sgData.cubemap->getMipMapLevels());
else
shaderConsts->setSafe(handles->mCubeMipsSC, 1.0f);
shaderConsts->setSafe(handles->mCubeMipsSC, (F32)getBinLog2(PROBEMGR->getProbeTexSize()));
shaderConsts->setSafe(handles->mVisiblitySC, sgData.visibility);