Jump to content
  • Advertisement
Sign in to follow this  
NiGoea

question about z-pass

This topic is 3213 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi, since I'm using a z-pre pass just to fill the device zbuffer, is it possible to speed up the shader avoiding it to write the COLOR0 value ?

Share this post


Link to post
Share on other sites
Advertisement
Thank you, I'm trying to use SetRenderState(D3DRS_COLORWRITEENABLE ...

But the shader compiler doesn't allow me to use a pixel shader that doesn't write COLOR0.
How do I resolve this ?

Share this post


Link to post
Share on other sites
Don't worry about it. Just write black. As long as color writes are disabled, you'll get the Z prepass speed-up.

Share this post


Link to post
Share on other sites
Quote:
Original post by Sneftel
Don't worry about it. Just write black. As long as color writes are disabled, you'll get the Z prepass speed-up.


Great !
Thank you ;)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!