Commit 831b973c authored by Martin Schultz's avatar Martin Schultz

adapted remaining picking shaders to work with shader generator

parent 95f59b14
// returns picking ids of vertices
in vec4 vertexPickID;
out vec4 outPickID;
void main()
{
outPickID = vertexPickID;
outFragment = vertexPickID;
}
......@@ -4,11 +4,9 @@
uniform int pickVertexOffset;
out vec4 outPickID;
void main()
{
int vertexID = gl_PrimitiveID + pickVertexOffset;
outPickID = IntToColor(vertexID);
outFragment = IntToColor(vertexID);
}
......@@ -6,8 +6,6 @@ uniform mat4 mWVP;
uniform int pickVertexOffset;
//uniform isamplerBuffer vboToInputMap; // maps: vertex id in draw buffer -> vertex id in input buffer
in vec4 inPosition;
out vec4 vertexPickID;
void main()
......
......@@ -2,9 +2,7 @@
uniform vec4 color;
out vec4 outColor;
void main()
{
outColor = color;
outFragment = color;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment