Steven Walker
02-27-2006, 07:56 AM
Hi Everyone,
I'm trying to understand something very basic... I have a simple shader that just renders a ramp. I can easily make this ramp go along any axis in object space by just using gl_Vertex as an input value. But the ramp doesn't automatically fit the object size. Is there a value or matrix I can use to normalize the gl_Vertex values from 0 to 1, relative to the bounding region of the object?
Thanks!
Walker
I'm trying to understand something very basic... I have a simple shader that just renders a ramp. I can easily make this ramp go along any axis in object space by just using gl_Vertex as an input value. But the ramp doesn't automatically fit the object size. Is there a value or matrix I can use to normalize the gl_Vertex values from 0 to 1, relative to the bounding region of the object?
Thanks!
Walker