GLSL and frame buffer reads??
I did some GLSL programming, but quickly came up with a problem: Frame buffer reads do not seem to work at all. I'd like to do custom blending functions where one needs to have access framebuffer color and depth values (gl_FBColor and gl_FBDepth). Based on the GLSL spec I found frame buffer reads are in the experimental end of the GLSL feature set. Thus hardware and drivers may not support it at all.
Does anyone know if this is a HW issue, a driver issue or what?
Should I expect the situation to improve?
Here is an example of a compilation log I get:
(5) : error C1008: undefined variable "gl_FBColor"
And below is a sample fragment shader that would not compile:
void main (void)
gl_FragColor = gl_FBColor + vec4(0.2, 0.1, 0.1, 1.0);
I am using 61.06 drivers with an FX 5700 board.
Re: GLSL and frame buffer reads??
Read the documentation more carefully, and it seems frame buffer reads are not really allowed in the current spec. Guess I'll have to use texture rendering and other tricks to do the work...
|All times are GMT -5. The time now is 08:00 AM.|
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.