DEPTH_*

 

Tag: DEPTH_*

Parent tag: pass

Tags:

  • DEPTH_CLAMPING (read/write) – BOOL default: false
  • DEPTH_CLEAR (read/write) – BOOL default: true
  • DEPTH_CLEAR_VALUE (read/write) – FLOAT default: 1.000000
  • DEPTH_ENABLE (read/write) – BOOL default: true
  • DEPTH_FUNC (read/write) – ENUM {LESS NEVER ALWAYS LEQUAL EQUAL GEQUAL GREATER NOT_EQUAL } default: LESS
  • DEPTH_MASK (read/write) – BOOL default: true

These tags have the same functionality as their OpenGL counterpart (see this page for more information).

Example:

<pass class="default" name="depth_features" >
	<scenes>
		<scene name="Ground" />
	</scenes>
	<DEPTH_CLEAR value=false />
	<DEPTH_MASK value=false />
	<camera name="MainCamera" />
	<viewport name="MainViewport" />
	<lights>
		<light name="Sun" />
	</lights>
	<materialMaps>
		<map fromMaterial="ground" toLibrary="Stencil" toMaterial="simpleTextured2" />
	</materialMaps>
</pass>