Signed colour values and clamping
"Robin Charlton" <[email protected]> Mon, 10 Apr 2006 06:54:25 -0800
| Newsgroups | gmane.games.devel.opengl |
|---|---|
| Organization | Fat City Network Services, San Diego, California |
| Message-ID | <[email protected]> |
I'd like to use signed vertex colour values in the range -0.5 to 0.5 with an additive texture stage to create high-lights and low-lights. Unfortunately it seems that the colour values are clamped in the range 0 to 1 before input to the register-combiner. The documentation says Neither floating-point nor signed integer values are clamped to the range [0,1] before updating the current color. However, color components are clamped to this range before they are interpolated or written into a color buffer. Is what I'm seeing consistent with the docs and expected behavour? Thanks __________________________________________________________ Robin E. Charlton [email protected]