padawan
08-14-2011, 08:38 AM
From the GLSL specification 3.30, par. 7.:
Both gl_FragColor and gl_FragData are deprecated; the preferred usage is to explicitly declare these outputs in the fragment shader using the out storage qualifier.
I'm not sure what this means. Shall I declare my own gl_FragColor and gl_FragData, which wouldn't make much sense, or use glBindFragDataLocation/glBindFragDataLocationIndexed, or something else?
It seems that a common way is just to declare an out variable in the fragment shader, but I'm not sure it's the best way.
Both gl_FragColor and gl_FragData are deprecated; the preferred usage is to explicitly declare these outputs in the fragment shader using the out storage qualifier.
I'm not sure what this means. Shall I declare my own gl_FragColor and gl_FragData, which wouldn't make much sense, or use glBindFragDataLocation/glBindFragDataLocationIndexed, or something else?
It seems that a common way is just to declare an out variable in the fragment shader, but I'm not sure it's the best way.