Z Fighting Code Sample

by Matt McClellan and Kipp Owens
Intel Corporation
Client Enabling Technology

Why Should I Care About This Code Sample?

This source code demonstrates how game developers can work around any Z fighting issue they may find. The sample source demonstrates several techniques for working around Z fighting issues in DirectX* 9.0.

Target Audience

Game developers
General interest developers

Sample Category

Complete project including source files, headers and executable.

Implementation Language


Operating Systems: Microsoft Windows* 2000 and Windows XP

Download Source Code

Whitepaper: Alternatives to Using Z-Bias to Fix Z-Fighting Issues

For more complete information about compiler optimizations, see our Optimization Notice.