From 5f1eed01a7083863dda27fafba4e6ffa0c112348 Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Sun, 16 Feb 2025 01:55:05 +0100 Subject: [PATCH] Samples: ShaderSystem - drop directional light flare --- Samples/ShaderSystem/include/ShaderSystem.h | 1 - Samples/ShaderSystem/src/ShaderSystem.cpp | 13 ------------- 2 files changed, 14 deletions(-) diff --git a/Samples/ShaderSystem/include/ShaderSystem.h b/Samples/ShaderSystem/include/ShaderSystem.h index a53c1e1768d..f4da693ba20 100644 --- a/Samples/ShaderSystem/include/ShaderSystem.h +++ b/Samples/ShaderSystem/include/ShaderSystem.h @@ -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 mLotsOfModelsEntities; // todo - doc std::vector mLotsOfModelsNodes; // todo - doc diff --git a/Samples/ShaderSystem/src/ShaderSystem.cpp b/Samples/ShaderSystem/src/ShaderSystem.cpp index b72b2e4dfc9..e7a0fd29b5a 100644 --- a/Samples/ShaderSystem/src/ShaderSystem.cpp +++ b/Samples/ShaderSystem/src/ShaderSystem.cpp @@ -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; @@ -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); } @@ -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); }