View Full Version : Normal Visualizer help

07-09-2017, 06:43 PM
HI,I want to code a normal visualizer using the Geometry shader however I'm not sure if I need a seperate Geometry shader for this or incorporate it into my current one. I don't think the latter is possible is it? especially if you have already defined the layout i.e. layout(triangle_strip, max_vertices = 3) out.

Does anyone know the best route to take, especially when you are deforming vertices inside the shader. How could you visualize normals with the geom shader?

All the best

07-10-2017, 03:08 AM
From here (https://www.khronos.org/opengl/wiki/Geometry_Shader#Primitive_in.2Fout_specification), it is said that a geometry shader

is designed to accept a specific Primitive type as input and to output a specific primitive type