Canvas: Change the node mask of the ODGauge camera
Since the Canvas cameras are no longer in the scene graph, we no longer need to explicitly make them render only in the Classic pipeline's far camera.
This commit is contained in:
parent
e76b684c20
commit
a97e148a94
@ -210,8 +210,7 @@ namespace canvas
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void ODGauge::setRender(bool render)
|
void ODGauge::setRender(bool render)
|
||||||
{
|
{
|
||||||
// Only the far camera should trigger this texture to be rendered.
|
camera->setNodeMask(render ? 0xffffffff : 0);
|
||||||
camera->setNodeMask(render ? simgear::BACKGROUND_BIT : 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user