Depth Bias
|
| |
| |

|
Figure 1 - Simple depth-biased mesh with wireframe overlay
|
| This sample application demonstrates the use of depth
bias to eliminate z-fighting when overlaying a wireframe
version of an object over the solid version. In this case, the
object is drawn twice: first solid and then using the wireframe
fill mode. The solid pass is "pushed out" in z while
the wireframe is drawn unbiased. The user can play with
the new D3DRS_SLOPESCALEDEPTHBIAS
and D3DRS_DEPTHBIAS
render states with the arrow keys to experiment with different settings.
|
| |
- DepthBias Controls
-
- Up/Down Arrows - Adjust D3DRS_SLOPESCALEDEPTHBIAS (set to 1 by
default)
- Left/Right Arrows - Adjust D3DRS_DEPTHBIAS (set to 0 by default)
- [F2] - Prompts user to select a new rendering device or display mode
- Alt+[ENTER] - Toggles between fullscreen and windowed modes
-
[SPACE] - Pauses animation
- [ENTER] - Restarts animation
- [ESC] - Quit
|
| |
- Requirements
-
- Download
-
|