Each geometry shader plug PLUG_geometry_vertex_xxx
enhances what happens when the corresponding geometryVertexXxx
function is called.
See Chapter 6, Extensions for geometry shaders for details.
void PLUG_geometry_vertex_set(
const in int index)
Set current geometry shader output to be equal
to geometry shader input with given index
.
If your effect defines a custom varying value (output from vertex shader,
input to fragment shader) then you should override this plug,
to make geometry shaders working seamlessly with your effect.
void PLUG_geometry_vertex_zero()
Set current geometry shader output to be zero.
void PLUG_geometry_vertex_add(
const in int index,
const in float scale)
Add to the current geometry shader output value from input index
,
scaled by given scale
.