DepthMode
The depth mode contains the parameters that are specific for depth control, like the value used for depth buffer comparisons.
Inheritance
Code
XML encoding
<DepthMode enableDepthTest='TRUE' depthFunc='none' readOnly='FALSE' zNearRange='-1' zFarRange='-1' logFeature='' />
Classic encoding
DepthMode { enableDepthTest TRUE depthFunc "none" readOnly FALSE zNearRange -1 zFarRange -1 logFeature [""] }
Interface
Filter: X3D only | Avalon only | All
id | Name | DataType | PartType | Default | ValueType | Description |
---|---|---|---|---|---|---|
enableDepthTest | SFBool | inputOutput | TRUE | Whether the depth test should be enabled or not. | ||
depthFunc | SFString | inputOutput | none | [NONE, NEVER, LESS, EQUAL, LEQUAL, GREATER, NOTEQUAL, GEQUAL, ALWAYS] | The depth function to use. If "none", it's not changed, the default is "lequal". | |
readOnly | SFBool | inputOutput | FALSE | Whether the depth buffer is enabled for writing or not. | ||
zNearRange | SFFloat | inputOutput | -1 | [0, 1] | The near value for the depth range. Ignored if less than 0, defaults to -1. | |
zFarRange | SFFloat | inputOutput | -1 | [0, 1] | The far value for the depth range. Ignored if less than 0, defaults to -1. | |
logFeature | MFString | inputOutput | state, child, parent, route, eventIn, eventOut | controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything |