They don't. They're completely separated.
> Does a geometry shader get the out variables of the vertex
> shader?
Yes.
> Can both a geometry and fragment shader get them? Also, can both
> 3 of them share uniforms, or is it impossible?
The geometry shader can pass values via (eg.) texture coordintes.
--
<\___/>
/ O O \
\_____/ FTB.
http://www.topaz3d.com/ - New 3D editor for real time simulation
Well, apparently they can communicate.
>> Does a geometry shader get the out variables of the vertex
>> shader?
> Yes.
Is this scheme then correct?
vertex shader -> geometry shader
-> fragment shader
Both get the out variables of the vertex shader then? Can both gs and fs
consume the same out variables?
>> Can both a geometry and fragment shader get them? Also, can both
>> 3 of them share uniforms, or is it impossible?
> The geometry shader can pass values via (eg.) texture coordintes.
You mean the built-in or user variables? How about the uniforms? Can
they be shared among the shaders?
I know only vertex and fragment shader. What's the difference between vertex
and geometry shader?
Best regards -- Spook.
Timo
--
www.TimoSoft-Software.de - Unicode controls for VB6
"Those who sacrifice freedom for safety deserve neither."
"Demokratie ist per Definition unsicher. Ihr Schutz entsteht aus der
Überzeugung, dass die demokratischen Kräfte überwiegen und sich – auf
demokratischem Wege – durchsetzen."
> Both get the out variables of the vertex shader then? Can both gs and fs
> consume the same out variables?
No. If you specify a GS, the out variables of the VS go to the GS. The
out variables of the GS go to the FS. The syntax for varying variables
has been extended for the GS: Use "varying in" for in variables and
"varying out" for out variables of the GS. The in variables of the GS
obviously are the out variables of the VS and the out variables of the
GS are the in variables of the FS.
Uniforms are the same for all shaders anyway.