• Advertisement
Sign in to follow this  

Why is a result different with output value in hlsl?

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