Commit e46f4100 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[DOC]

parent 7136b5d3
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment