mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
fix guishapeedpreview not displaying IBL
note this *does* require a baked skylight in the main scene todo: track down why a similar protocol does not operate for guimaterialpreview and guiobjectview
This commit is contained in:
parent
25a3c3325f
commit
de87d2f6ad
6 changed files with 24 additions and 0 deletions
|
|
@ -37,6 +37,8 @@
|
|||
|
||||
#include "T3D/assets/ShapeAsset.h"
|
||||
#include "T3D/assets/ShapeAnimationAsset.h"
|
||||
#include "renderInstance/renderProbeMgr.h"
|
||||
#include "T3D/lighting/skylight.h"
|
||||
|
||||
#ifdef TORQUE_COLLADA
|
||||
#include "collision/optimizedPolyList.h"
|
||||
|
|
@ -1409,6 +1411,8 @@ void GuiShapeEdPreview::renderWorld(const RectI &updateRect)
|
|||
FogData savedFogData = gClientSceneGraph->getFogData();
|
||||
gClientSceneGraph->setFogData( FogData() ); // no fog in preview window
|
||||
|
||||
if (Skylight::smSkylightProbe.isValid())
|
||||
PROBEMGR->submitProbe(Skylight::smSkylightProbe->getProbeInfo());
|
||||
SceneRenderState state
|
||||
(
|
||||
gClientSceneGraph,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue