User-agent: Mozilla Thunderbird 0.9 (Macintosh/20041103)
Are pixel buffers under CGL really limited to only GL_RGB and GL_RGBA?
The documentation current states:
"||internalFormat||
A constant that specifies the new Pbuffer’s internal color format,
which must be either |GL_RGB| or |GL_RGBA|."
Is this still the case? Is possible to create a single channel pbuffer
(instead of only a 3 or 4 channel pbuffer)?
I basically want to render the depth buffer to a pbuffer so I can use it
in a subsequent pass without having to manually copy the depth to a
texture. One way I can think of doing it is allocating a single channel
float pbuffer and then using a fragment program to output the pixels
depth as the fragment color. Is there a better way to do this?
thanks!
-j
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden