Geometry Shader Interpolation

Hi everyone,
I am trying use Geometry Shader to emit both generated vertex and its normal, but it seems that the hardware can’t do this ?

And, what about the “varying” variable, should I define the varying variable in the shader I want to use it, then the linker will automatic do other stuff ?


Sure you can use many varyings: you have to declare the input varyings as “varying in type name[];” and the out varyings a “varying type name;”

Thanks ! Solved !

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.