Commit 5157ca87 authored by Ken Martin's avatar Ken Martin

Fix a case where glyphic was failing on unlit primitives

Change-Id: I9fe1a9d60f379b60d399121372bd4b7c2bc989f8
parent 6452e10d
......@@ -82,6 +82,12 @@ void vtkOpenGLGlyph3DHelper::ReplaceShaderValues(std::string &VSSource,
"vertexVC = MCVCMatrix * vertex;\n"
" gl_Position = MCDCMatrix * vertex;\n");
}
else
{
substitute(VSSource,
"//VTK::PositionVC::Impl",
"gl_Position = MCDCMatrix * vertex;\n");
}
// deal with color
if (this->UsingInstancing)
......
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