Corrected some missed bits in the template, and a check in the forward-lit probes

This commit is contained in:
Areloch 2018-10-10 01:52:19 -05:00
parent 57f8549abe
commit aad37bc0f5
3 changed files with 46 additions and 27 deletions

View file

@ -345,6 +345,9 @@ void ProbeManager::_update4ProbeConsts( const SceneData &sgData,
if (!probe)
continue;
if (!probe->mIsEnabled)
continue;
// The light positions and spot directions are
// in SoA order to make optimal use of the GPU.
const Point3F &probePos = probe->getPosition();