Skip to content

Commit

Permalink
Samples: ShaderSystem - drop directional light flare
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Feb 16, 2025
1 parent 4b88570 commit 5f1eed0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion Samples/ShaderSystem/include/ShaderSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ class _OgreSampleClassExport Sample_ShaderSystem : public SdkSample
RTShader::SubRenderState* mInstancedViewportsSubRenderState;// todo - doc
bool mInstancedViewportsEnable; // todo - doc
InfiniteFrustum mInfiniteFrustum; // todo - doc
BillboardSet* mBbsFlare; // todo - doc
bool mAddedLotsOfModels; // todo - doc
std::vector<Entity *> mLotsOfModelsEntities; // todo - doc
std::vector<SceneNode *> mLotsOfModelsNodes; // todo - doc
Expand Down
13 changes: 0 additions & 13 deletions Samples/ShaderSystem/src/ShaderSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ Sample_ShaderSystem::Sample_ShaderSystem() :
mInstancedViewportsEnable = false;
mInstancedViewportsSubRenderState = NULL;
mInstancedViewportsFactory = NULL;
mBbsFlare = NULL;
mAddedLotsOfModels = false;
mNumberOfModelsAdded = 0;
mCurrentBlendMode = NUM_BLEND_MODES - 1;
Expand Down Expand Up @@ -667,14 +666,6 @@ void Sample_ShaderSystem::createDirectionalLight()
// create pivot node
mDirectionalLightNode = mSceneMgr->getRootSceneNode()->createChildSceneNode();
mDirectionalLightNode->setDirection(dir);

// Create billboard set.
mBbsFlare = mSceneMgr->createBillboardSet();
mBbsFlare->setMaterialName("Examples/Flare3");
mBbsFlare->createBillboard(-dir * 500.0)->setColour(light->getDiffuseColour());
mBbsFlare->setCastShadows(false);

mDirectionalLightNode->attachObject(mBbsFlare);
mDirectionalLightNode->attachObject(light);
}

Expand Down Expand Up @@ -781,14 +772,10 @@ void Sample_ShaderSystem::updateInstancedViewports(bool enabled)
if (mInstancedViewportsEnable)
{
mCamera->setCullingFrustum(&mInfiniteFrustum);

// having problems with bb...
mDirectionalLightNode->detachObject(mBbsFlare);
}
else
{
mCamera->setCullingFrustum(NULL);
mDirectionalLightNode->attachObject(mBbsFlare);
}


Expand Down

0 comments on commit 5f1eed0

Please sign in to comment.