Depth Material


 

Depth Material control how to produce the depth map.

When the console variable r_scene set to 2, the scene turn into depth rendering. For every 3d object, first try to use it's depth material for depth rendering; if no depth material, then use the default depth material. You can see the sample shader for depth rendering in the 'effect\include\depthpass.fx'.