diff --git a/panda/src/pgraph/pandaNode.I b/panda/src/pgraph/pandaNode.I index 27d4e5a6c3..6aff034f06 100644 --- a/panda/src/pgraph/pandaNode.I +++ b/panda/src/pgraph/pandaNode.I @@ -470,6 +470,17 @@ get_overall_bit() { return _overall_bit; } +//////////////////////////////////////////////////////////////////// +// Function: PandaNode::get_all_camera_mask +// Access: Published, Static +// Description: Returns a DrawMask that is appropriate for rendering +// to all cameras. +//////////////////////////////////////////////////////////////////// +INLINE DrawMask PandaNode:: +get_all_camera_mask() { + return ~_overall_bit; +} + //////////////////////////////////////////////////////////////////// // Function: PandaNode::is_overall_hidden // Access: Published, Static diff --git a/panda/src/pgraph/pandaNode.h b/panda/src/pgraph/pandaNode.h index 2d98bd77bf..84b53cfb8d 100644 --- a/panda/src/pgraph/pandaNode.h +++ b/panda/src/pgraph/pandaNode.h @@ -200,6 +200,7 @@ PUBLISHED: void list_tags(ostream &out, const string &separator = "\n") const; INLINE static DrawMask get_overall_bit(); + INLINE static DrawMask get_all_camera_mask(); INLINE bool is_overall_hidden() const; INLINE void set_overall_hidden(bool overall_hidden);