Commit 35a78e4e authored by Michael Migliore's avatar Michael Migliore

Fix normal mapping when displaying edges

parent ee0c9688
......@@ -1707,7 +1707,9 @@ void vtkOpenGLPolyDataMapper::ReplaceShaderNormal(
bool normalTex = std::find_if(textures.begin(), textures.end(), [](const texinfo& tex) {
return tex.second == "normalTex";
}) != textures.end();
if (normalTex && this->VBOs->GetNumberOfComponents("tangentMC") == 3)
if (normalTex
&& this->VBOs->GetNumberOfComponents("tangentMC") == 3
&& !this->DrawingEdgesOrVertices)
{
vtkShaderProgram::Substitute(VSSource,
"//VTK::Normal::Dec",
......
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