Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
e46f4100
Commit
e46f4100
authored
Nov 04, 2013
by
Sebastian Eichelbaum
Browse files
[DOC]
parent
7136b5d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
src/core/graphicsEngine/offscreen/WGEOffscreenRenderNode.cpp
src/core/graphicsEngine/offscreen/WGEOffscreenRenderNode.cpp
+12
-1
No files found.
src/core/graphicsEngine/offscreen/WGEOffscreenRenderNode.cpp
View file @
e46f4100
...
...
@@ -73,6 +73,12 @@ osg::ref_ptr< WGEOffscreenRenderPass > WGEOffscreenRenderNode::addGeometryRender
osg
::
ref_ptr
<
WGEOffscreenRenderPass
>
pass
=
addRenderPass
<
WGEOffscreenRenderPass
>
(
name
);
pass
->
addChild
(
node
);
// add proxy to ensure proper clipping/culling even when the node changes its size in the shader. The programmer of the node has to take
// care, that the getBounds methods of the node returns the right size (use a ComputeBoundingSpereCallback or overwrite computeBounds in
// your node)
//
// It is important to add this proxy into the goup as the passes disable near/far recalculation. They inherit the near/far planes from the
// camera of this group node. To ensure that OSG sets it properly, we use these proxies.
insert
(
wge
::
generateDynamicCullProxy
(
node
)
);
return
pass
;
...
...
@@ -87,7 +93,12 @@ osg::ref_ptr< WGEOffscreenRenderPass > WGEOffscreenRenderNode::addGeometryRender
pass
->
addChild
(
node
);
shader
->
apply
(
pass
);
insert
(
wge
::
generateDynamicCullProxy
(
node
)
);
// add proxy to ensure proper clipping/culling even when the node changes its size in the shader. The programmer of the node has to take
// care, that the getBounds methods of the node returns the right size (use a ComputeBoundingSpereCallback or overwrite computeBounds in
// your node)
//
// It is important to add this proxy into the goup as the passes disable near/far recalculation. They inherit the near/far planes from the
// camera of this group node. To ensure that OSG sets it properly, we use these proxies. insert( wge::generateDynamicCullProxy( node ) );
return
pass
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment