mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
*** empty log message ***
This commit is contained in:
parent
50d8cb9244
commit
c60ab78e2e
@ -10,8 +10,9 @@
|
|||||||
#define SOURCES \
|
#define SOURCES \
|
||||||
appTraverser.I appTraverser.cxx appTraverser.h \
|
appTraverser.I appTraverser.cxx appTraverser.h \
|
||||||
config_sgraphutil.cxx config_sgraphutil.h directRenderTraverser.I \
|
config_sgraphutil.cxx config_sgraphutil.h directRenderTraverser.I \
|
||||||
directRenderTraverser.cxx directRenderTraverser.h get_rel_pos.I \
|
directRenderTraverser.cxx directRenderTraverser.h \
|
||||||
get_rel_pos.cxx get_rel_pos.h sceneGraphAnalyzer.cxx \
|
frustumCullTraverser.I frustumCullTraverser.h \
|
||||||
|
get_rel_pos.I get_rel_pos.cxx get_rel_pos.h sceneGraphAnalyzer.cxx \
|
||||||
sceneGraphAnalyzer.h sceneGraphReducer.I sceneGraphReducer.cxx \
|
sceneGraphAnalyzer.h sceneGraphReducer.I sceneGraphReducer.cxx \
|
||||||
sceneGraphReducer.h
|
sceneGraphReducer.h
|
||||||
|
|
||||||
|
@ -3,13 +3,6 @@
|
|||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "frustumCullTraverser.h"
|
|
||||||
#include "config_sgraphutil.h"
|
|
||||||
|
|
||||||
#include <notify.h>
|
|
||||||
#include <nodeTransitionWrapper.h>
|
|
||||||
#include <transformTransition.h>
|
|
||||||
#include <wrt.h>
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: FrustumCullTraverser::Constructor
|
// Function: FrustumCullTraverser::Constructor
|
||||||
@ -148,7 +141,16 @@ traverse(NodeRelation *arc, AttributeWrapper render_state,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (carry_on &&
|
if (carry_on) {
|
||||||
|
if (arc->has_transition(BillboardTransition::get_class_type())) {
|
||||||
|
// We can't reliably cull within a billboard, because the
|
||||||
|
// geometry might get rotated out of its bounding volume.
|
||||||
|
// So once we get within a billboard, we consider it all
|
||||||
|
// visible.
|
||||||
|
all_in = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!all_in &&
|
||||||
arc->has_transition(TransformTransition::get_class_type())) {
|
arc->has_transition(TransformTransition::get_class_type())) {
|
||||||
// Now apply the transform associated with this arc. We do
|
// Now apply the transform associated with this arc. We do
|
||||||
// this after the bounding volume test, because the bounding
|
// this after the bounding volume test, because the bounding
|
||||||
@ -179,6 +181,7 @@ traverse(NodeRelation *arc, AttributeWrapper render_state,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (carry_on) {
|
if (carry_on) {
|
||||||
// Now give the visitor a chance to veto this arc.
|
// Now give the visitor a chance to veto this arc.
|
||||||
|
@ -14,6 +14,13 @@
|
|||||||
#include <geometricBoundingVolume.h>
|
#include <geometricBoundingVolume.h>
|
||||||
#include <graphicsStateGuardian.h>
|
#include <graphicsStateGuardian.h>
|
||||||
#include <arcChain.h>
|
#include <arcChain.h>
|
||||||
|
#include <nodeTransitionWrapper.h>
|
||||||
|
#include <transformTransition.h>
|
||||||
|
#include <billboardTransition.h>
|
||||||
|
#include <wrt.h>
|
||||||
|
|
||||||
|
#include "config_sgraphutil.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user