Skip to content

Commit

Permalink
Samples: Lighting - reference materials by ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Sep 10, 2024
1 parent 53a6441 commit 79790ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Samples/Simple/include/Lighting.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,15 @@ class _OgreSampleClassExport Sample_Lighting : public SdkSample, public RenderOb
mLight1BBQueryArea = mSceneMgr->createBillboardSet(1);
mLight1BBQueryArea->setDefaultDimensions(10,10);
mLight1BBQueryArea->createBillboard(Vector3::ZERO);
mLight1BBQueryArea->setMaterialName("QueryArea");
mLight1BBQueryArea->setMaterial(matQueryArea);
mLight1BBQueryArea->setRenderQueueGroup(cPriorityQuery);
node->attachObject(mLight1BBQueryArea);

// Attach a billboard which will be used to get the visible area occupied by the light
mLight1BBQueryVisible = mSceneMgr->createBillboardSet(1);
mLight1BBQueryVisible->setDefaultDimensions(10,10);
mLight1BBQueryVisible->createBillboard(Vector3::ZERO);
mLight1BBQueryVisible->setMaterialName("QueryVisible");
mLight1BBQueryVisible->setMaterial(matQueryVisible);
mLight1BBQueryVisible->setRenderQueueGroup(cPriorityQuery);
node->attachObject(mLight1BBQueryVisible);
}
Expand Down Expand Up @@ -260,15 +260,15 @@ class _OgreSampleClassExport Sample_Lighting : public SdkSample, public RenderOb
mLight2BBQueryArea = mSceneMgr->createBillboardSet(1);
mLight2BBQueryArea->setDefaultDimensions(10,10);
mLight2BBQueryArea->createBillboard(Vector3::ZERO);
mLight2BBQueryArea->setMaterialName("QueryArea");
mLight2BBQueryArea->setMaterial(matQueryArea);
mLight2BBQueryArea->setRenderQueueGroup(cPriorityQuery);
node->attachObject(mLight2BBQueryArea);

// Attach a billboard which will be used to get the visible area occupied by the light
mLight2BBQueryVisible = mSceneMgr->createBillboardSet(1);
mLight2BBQueryVisible->setDefaultDimensions(10,10);
mLight2BBQueryVisible->createBillboard(Vector3::ZERO);
mLight2BBQueryVisible->setMaterialName("QueryVisible");
mLight2BBQueryVisible->setMaterial(matQueryVisible);
mLight2BBQueryVisible->setRenderQueueGroup(cPriorityQuery);
node->attachObject(mLight2BBQueryVisible);
}
Expand Down

0 comments on commit 79790ce

Please sign in to comment.