mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-25 00:26:17 +00:00
Fix typo
This commit is contained in:
parent
8e9c69a566
commit
c36b7dfd0c
1 changed files with 2 additions and 6 deletions
|
@ -385,12 +385,10 @@ bool CMeshVPWindTree::begin(IDriver *driver, CScene *scene, CMeshBaseInstance *m
|
||||||
// Activate the good VertexProgram
|
// Activate the good VertexProgram
|
||||||
//===============
|
//===============
|
||||||
|
|
||||||
// Update nb vp lights
|
|
||||||
renderTrav->prepareVPLightSetup();
|
|
||||||
|
|
||||||
// Get how many pointLights are setuped now.
|
// Get how many pointLights are setuped now.
|
||||||
nlassert(scene != NULL);
|
nlassert(scene != NULL);
|
||||||
CRenderTrav *renderTrav= &scene->getRenderTrav();
|
CRenderTrav *renderTrav= &scene->getRenderTrav();
|
||||||
|
renderTrav->prepareVPLightSetup();
|
||||||
sint numPls= renderTrav->getNumVPLights()-1;
|
sint numPls= renderTrav->getNumVPLights()-1;
|
||||||
clamp(numPls, 0, CRenderTrav::MaxVPLight-1);
|
clamp(numPls, 0, CRenderTrav::MaxVPLight-1);
|
||||||
|
|
||||||
|
@ -512,12 +510,10 @@ void CMeshVPWindTree::beginMBRMesh(IDriver *driver, CScene *scene)
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
void CMeshVPWindTree::beginMBRInstance(IDriver *driver, CScene *scene, CMeshBaseInstance *mbi, const NLMISC::CMatrix &invertedModelMat)
|
void CMeshVPWindTree::beginMBRInstance(IDriver *driver, CScene *scene, CMeshBaseInstance *mbi, const NLMISC::CMatrix &invertedModelMat)
|
||||||
{
|
{
|
||||||
// Update nb vp lights
|
|
||||||
renderTrav->prepareVPLightSetup();
|
|
||||||
|
|
||||||
// Get how many pointLights are setuped now.
|
// Get how many pointLights are setuped now.
|
||||||
nlassert(scene != NULL);
|
nlassert(scene != NULL);
|
||||||
CRenderTrav *renderTrav= &scene->getRenderTrav();
|
CRenderTrav *renderTrav= &scene->getRenderTrav();
|
||||||
|
renderTrav->prepareVPLightSetup();
|
||||||
sint numPls= renderTrav->getNumVPLights()-1;
|
sint numPls= renderTrav->getNumVPLights()-1;
|
||||||
clamp(numPls, 0, CRenderTrav::MaxVPLight-1);
|
clamp(numPls, 0, CRenderTrav::MaxVPLight-1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue