Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The output from the pixel shader in Direct3D is four floats, normalized 0-1 for each channel (RGBA). But what happens if these floats haven't been normalized correctly and are above 1?

share|improve this question
up vote 1 down vote accepted

If you're target surface is a floating point variety (HDR rendering for example) then it just outputs the color; during later processing your tone mapper decides how to move this full range down to 0..1 for display. If the surface is a typical RGB display it gets saturated (forced to a range 0..1).

In any case, it's a very easy test to do to see how it looks in real life =)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.