Require l-value patch-out indexing to be gl_InvocationID.
Also, generally allow ES variable indexing of in/out blocks.
This commit is contained in:
parent
989df85dcd
commit
1be8063e01
16 changed files with 354 additions and 196 deletions
|
|
@ -6,9 +6,9 @@ in gl_PerVertex {
|
|||
|
||||
out gl_PerVertex {
|
||||
float gl_CullDistance[3];
|
||||
} gl_out[];
|
||||
} gl_out[4];
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_out[0].gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
|
||||
gl_out[gl_InvocationID].gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue