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 ?

Thanks~

Sure you can use many varyings:
http://lumina.sourceforge.net/Tutorials/Geometryshader.html 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.