Added Unpickable component, which skips the entity in the PickingPass

This commit is contained in:
viktorljung
2016-03-10 16:29:13 +01:00
parent 777f382772
commit b3ea26779a
6 changed files with 28 additions and 1 deletions
+5
View File
@@ -76,6 +76,11 @@ void PickingPass::Draw(RenderScene& scene)
auto modelJob = std::dynamic_pointer_cast<ModelJob>(job);
if (modelJob) {
if(modelJob->NotPickable) {
continue;
}
int pickColor[2] = { m_ColorCounter[0], m_ColorCounter[1] };
PickingInfo pickInfo;