Click or drag to resize
SoOffscreenRenderAreaSetClearDepth Method

Defines the depth value used when the depth buffer is cleared.

Namespace: OIV.Inventor
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public virtual void SetClearDepth(
	float depth
)

Parameters

depth
Type: SystemSingle

value used to clear the depth buffer. Value is clamped to the range [0,1].

Implements

SiRenderAreaSetClearDepth(Single)
Remarks

The default value is 1. This is the value used to clear the depth buffer when OIV.Inventor.SoOffscreenRenderArea.RenderToFile(System.String, OIV.Inventor.SoOffscreenRenderArea.OutputFormats) or OIV.Inventor.SoOffscreenRenderArea.RenderToBuffer(OIV.Inventor.Devices.SoBufferObject, OIV.Inventor.SoOffscreenRenderArea.OutputFormats) are called with OIV.Inventor.SoOffscreenRenderArea.SetClearPolicy(OIV.Inventor.ViewerComponents.SiRenderArea.ClearPolicies) method set to DEPTHBUFFER or COLORBUFFER_AND_DEPTHBUFFER . See also setClearPolicy.

See Also