Sign in to follow this  

Why is a result different with output value in hlsl?

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

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

This topic is 1107 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this