21 const LPoint3 &v2,
const LPoint3 &v3) {
24 _vertices.push_back(v0);
25 _vertices.push_back(v1);
26 _vertices.push_back(v2);
27 _vertices.push_back(v3);
34 INLINE
size_t OccluderNode::
35 get_num_vertices()
const {
36 return _vertices.size();
44 nassertr(n < _vertices.size(), LPoint3::zero());
53 nassertv(n < _vertices.size());
61 _double_sided = value;
77 _min_coverage = value;
void set_vertices(const LPoint3 &v0, const LPoint3 &v1, const LPoint3 &v2, const LPoint3 &v3)
Replaces the four vertices of the occluder polygon.
get_vertex
Returns the nth vertex of the occluder polygon.
set_min_coverage
Minimum screen coverage needed before occluder used.
is_double_sided
Is this occluder double-sided.
get_min_coverage
Returns the minimum screen coverage.
set_double_sided
If true, the back-face will also be used to occlude.
set_vertex
Sets the nth vertex of the occluder polygon.