mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Utilizes old method to clean up tree items in GuiTreeViewCtrl to resolve guiEditor crashes
Updates probeManager to correctly utilize skylight idx to infer if a skylight is active, and set the SKYLIGHT_ONLY macro correctly, resolving erroneous behavior Cleaned up some of the guiEditor initialization script to remove redundancy Cleaned up tools modules loading script to remove redundancy
This commit is contained in:
parent
9db95f4fb2
commit
ff4c2d59fc
6 changed files with 155 additions and 167 deletions
|
|
@ -748,8 +748,10 @@ void RenderProbeMgr::render( SceneRenderState *state )
|
|||
String useDebugContrib = Con::getVariable("$Probes::showProbeContrib", "0");
|
||||
mProbeArrayEffect->setShaderMacro("DEBUGVIZ_CONTRIB", useDebugContrib);
|
||||
|
||||
if(mHasSkylight && mEffectiveProbeCount == 0)
|
||||
if(mSkylightCubemapIdx != -1 && mEffectiveProbeCount == 0)
|
||||
mProbeArrayEffect->setShaderMacro("SKYLIGHT_ONLY", "1");
|
||||
else
|
||||
mProbeArrayEffect->setShaderMacro("SKYLIGHT_ONLY", "0");
|
||||
|
||||
mProbeArrayEffect->setTexture(3, mBRDFTexture);
|
||||
mProbeArrayEffect->setCubemapArrayTexture(4, mPrefilterArray);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue