mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-27 10:33:50 +00:00
Re-implements the dynamic cubemap mode option for reflection probes
This commit is contained in:
parent
c2bbab774a
commit
5289fdf7f1
5 changed files with 115 additions and 14 deletions
|
|
@ -161,6 +161,14 @@ void Skylight::prepRenderImage(SceneRenderState *state)
|
|||
|
||||
mProbeInfo->setPosition(camPos);
|
||||
|
||||
if (mReflectionModeType == DynamicCubemap && mRefreshRateMS < (Platform::getRealMilliseconds() - mDynamicLastBakeMS))
|
||||
{
|
||||
//bake();
|
||||
mDynamicLastBakeMS = Platform::getRealMilliseconds();
|
||||
|
||||
processDynamicCubemap();
|
||||
}
|
||||
|
||||
//Submit our probe to actually do the probe action
|
||||
// Get a handy pointer to our RenderPassmanager
|
||||
//RenderPassManager *renderPass = state->getRenderPass();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue