Jump to content
  • Advertisement
Sign in to follow this  
pnt1614

Why is a result different with output value in hlsl?

This topic is 1445 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

I am trying to debug but there is a problem with output value. The problem is the result I got is different with output value. For instance, the output value is float4(0.75, 0.5, 0, 1), so the result must be (191, 128, 0, 1), but the result is (225, 188, 0, 1). Is there anybody experienced this problem? Please help me.

Share this post


Link to post
Share on other sites
Advertisement

Thank unbird. You are right. The problem is caused by gamma-correction. The solution is just disable gamma-correction before creating the device (DXUTSetIsInGammaCorrectMode( false )).

Edited by steven166

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!