instantreality 1.0

Component:
Shape
Status:
fully implemented
Structure type:
concrete
Standard:
Avalon

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
SFBool enableDepthTest SFBool inputOutput TRUE Whether the depth test should be enabled or not.
SFString 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".
SFBool readOnly SFBool inputOutput FALSE Whether the depth buffer is enabled for writing or not.
SFFloat zNearRange SFFloat inputOutput -1 [0, 1] The near value for the depth range. Ignored if less than 0, defaults to -1.
SFFloat zFarRange SFFloat inputOutput -1 [0, 1] The far value for the depth range. Ignored if less than 0, defaults to -1.
MFString 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
SFNode metadata SFNode inputOutput MetadataObject container for payload metadata inside MetadataSet element