mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +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
|
|
@ -59,6 +59,8 @@ extern bool gEditingMission;
|
|||
extern ColorI gCanvasClearColor;
|
||||
bool Skylight::smRenderSkylights = true;
|
||||
|
||||
SimObjectPtr<Skylight> Skylight::smSkylightProbe = nullptr;
|
||||
|
||||
IMPLEMENT_CO_NETOBJECT_V1(Skylight);
|
||||
|
||||
ConsoleDocClass(Skylight,
|
||||
|
|
@ -117,6 +119,8 @@ bool Skylight::onAdd()
|
|||
if (!Parent::onAdd())
|
||||
return false;
|
||||
|
||||
if (isClientObject())
|
||||
smSkylightProbe = this;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue