mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +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
|
|
@ -33,6 +33,8 @@
|
|||
#include "core/resourceManager.h"
|
||||
#include "scene/sceneManager.h"
|
||||
#include "scene/sceneRenderState.h"
|
||||
#include "renderInstance/renderProbeMgr.h"
|
||||
#include "T3D/lighting/skylight.h"
|
||||
|
||||
// GuiMaterialPreview
|
||||
GuiMaterialPreview::GuiMaterialPreview()
|
||||
|
|
@ -372,6 +374,9 @@ void GuiMaterialPreview::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());
|
||||
|
||||
RenderPassManager* renderPass = gClientSceneGraph->getDefaultRenderPass();
|
||||
SceneRenderState state
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue