public class SoDepthBuffer extends SoNode
It can also be used to clear the depth buffer by setting the clearBuffer
field to true.
Limitations:
SoDepthBuffer
sets the OpenGL depth buffer test function to LESS. (Meaning that only fragments with a depth value strictly less than the current depth buffer value will be rendered.) This is NOT the same as the Open Inventor default. SoGradientBackground
, will not work correctly with the depth buffer test function set to LESS.
File format/default:
DepthBuffer {
test | true |
write | true |
function | LESS |
range | (0.0,1.0) |
clearBuffer | false |
Action behavior:
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoDepthBuffer.DepthWriteFunctions
Depth function mode as defined by OpenGL.
|
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFBool |
clearBuffer
If true, the depth buffer is cleared when the node is traversed.
|
SoSFEnum<SoDepthBuffer.DepthWriteFunctions> |
function
Depth comparison function to use (glDepthFunc).
|
SoSFVec2f |
range
Value range for the depth buffer (glDepthRange).
|
SoSFBool |
test
Enable depth buffer testing (glEnable).
|
SoSFBool |
write
Enable depth buffer writing (glDepthMask).
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoDepthBuffer()
Constructor.
|
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public final SoSFBool test
Note that disabling depth testing will prevent the depth buffer from being updated even if depth buffer writing is set to true.
public final SoSFBool write
public final SoSFEnum<SoDepthBuffer.DepthWriteFunctions> function
public final SoSFVec2f range
public final SoSFBool clearBuffer
SoViewportClipping
node. Default is false.
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com