Skip to main content
gamedev.net
🔒 Locked

d3d10 alpha testing

Started by Quat Aug 13, 2007 at 12:09 PM 1 replies 1.5k views
Original Post
Quat
Quat
Am I supposed to use the clip() function to simulate alpha testing? I have it working with that, but I just want to make sure that is the "right" way to implement it.
-----Quat
wyrzy
wyrzy
That's correct, you can use clip() or discard for alpha testing in d3d10 to work how alpha testing did in d3d9.

EDIT:
Its potentionally more efficient this way, as alpha testing early in your shader can allow you to skip the rest of a possibly large shader.
Zipster
Zipster
There is no more fixed-function pipeline in DX10, so everything that used to be done automatically for you before (such as alpha testing) now needs to be done by your shaders. Check out the FixedFuncEMU sample in the SDK to get an idea of what else needs to be emulated.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.