View Full Version : color clambing

03-24-2001, 11:49 PM
after the vertexprogram and before the registercombiners the colors are clambed to 0-1 ( primarycolor/COL0, secondarycolor/COL1 )

now, are they clambed per vertex before the rastericer, or per pixel after the rastericer?

why i ask?
when its after the rastericer clambed per pixel then we can do perpixelattentuation without any use of a texture, else not

Don't Disturb
03-25-2001, 03:31 AM
per pixel before rasterization.

[This message has been edited by Don't Disturb (edited 03-25-2001).]

03-25-2001, 03:57 AM
hm.. cant be like that, before rasterication we dont have yet something perpixel http://www.opengl.org/discussion_boards/ubb/smile.gif you mean then pervertex, right?

03-25-2001, 09:18 AM
They are clamped before the combiners, but you can use the expand normal mapping of the combiner inputs, to get something between -1 and 1.