mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
Asad's suggested changes to avoid white
line in upper and left edges of each DisplayRegion
This commit is contained in:
parent
76672051c6
commit
e881c28f75
@ -93,7 +93,9 @@ traverse(const NodePath &root, bool python_cull_control) {
|
||||
|
||||
// This local_frustum is in camera space
|
||||
PortalClipper portal_viewer(local_frustum, _scene_setup);
|
||||
portal_viewer.draw_camera_frustum();
|
||||
if (allow_portal_cull || python_cull_control) {
|
||||
portal_viewer.draw_camera_frustum();
|
||||
}
|
||||
|
||||
if (allow_portal_cull || python_cull_control) {
|
||||
// for each portal draw its frustum
|
||||
@ -134,8 +136,7 @@ traverse(const NodePath &root, bool python_cull_control) {
|
||||
my_data._render_transform = my_data._render_transform->compose(transform);
|
||||
traverse(my_data);
|
||||
pgraph_cat.debug() << "finished portal culling\n";
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
CullTraverserData data(root, get_render_transform(),
|
||||
TransformState::make_identity(),
|
||||
_initial_state, _view_frustum,
|
||||
|
Loading…
x
Reference in New Issue
Block a user