mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Merge pull request #1425 from Azaezel/alpha41/forwardFix
fix forward cubemip
This commit is contained in:
commit
5436429e05
1 changed files with 1 additions and 1 deletions
|
|
@ -1324,7 +1324,7 @@ void ProcessedShaderMaterial::setSceneInfo(SceneRenderState * state, const Scene
|
||||||
if (sgData.cubemap)
|
if (sgData.cubemap)
|
||||||
shaderConsts->setSafe(handles->mCubeMipsSC, (F32)sgData.cubemap->getMipMapLevels());
|
shaderConsts->setSafe(handles->mCubeMipsSC, (F32)sgData.cubemap->getMipMapLevels());
|
||||||
else
|
else
|
||||||
shaderConsts->setSafe(handles->mCubeMipsSC, 1.0f);
|
shaderConsts->setSafe(handles->mCubeMipsSC, (F32)getBinLog2(PROBEMGR->getProbeTexSize()));
|
||||||
|
|
||||||
shaderConsts->setSafe(handles->mVisiblitySC, sgData.visibility);
|
shaderConsts->setSafe(handles->mVisiblitySC, sgData.visibility);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue