Advertisement Jump to content
Sign in to follow this  

Pixel Shader Color Value Range...

This topic is 4373 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 finding that any color register passed from my vertex shader to my pixel shader is reduced to a value between 1 and 0 with a precision granularity of 0 to 256 values only (ie: a value of 1 / 512 or 1 / 1024 and so on is rounded to a value of 1 / 256). Is there a way to increase the precision of the color registers as they are passed? TIA, Devin [edit] the reduction in significance of the color value seems to go away when I switch from ps2.0 to ps3.0. I would like to use 2.0 though. Is there any work around?

Share this post

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

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!