PickingPass now publishes an event that others can listen to to get pickingdata.

This commit is contained in:
Tleety
2015-12-11 13:51:08 +01:00
parent 8c563a2d76
commit 725a8896ce
3 changed files with 20 additions and 13 deletions
+1 -11
View File
@@ -263,16 +263,6 @@ void Renderer::DrawScene(RenderQueueCollection& rq)
//m_PickingBuffer.Unbind();
//GLERROR("PickingPass Error");
//Publish pick event every frame with the pick data that can be picked by the event
Events::Picking pickEvent = Events::Picking(
&m_PickingBuffer,
&m_DepthBuffer,
m_Camera->ProjectionMatrix(),
m_Camera->ViewMatrix(),
m_Resolution,
&m_PickingColorsToEntity);
m_EventBroker->Publish(pickEvent);
void Renderer::DrawScreenQuad(GLuint textureToDraw)
{
@@ -384,7 +374,7 @@ void Renderer::InitializeSSBOs()
void Renderer::InitializeRenderPasses()
{
m_PickingPass = new PickingPass(this);
m_PickingPass = new PickingPass(this, m_EventBroker);
}
void Renderer::CalculateFrustum()