Hi all,

I tried replacing the Fragment shader in mitkShaderFiberClipping.xml with a Geometry shader, but I haven't been able to do it. One of the error was "Invalid scope for shader: GeometryShader", which lead me to vtkXMLMaterial.cpp where we can see this code:
switch (shader->GetScope()) {
case vtkXMLShader::SCOPE_VERTEX:
  this->Internals->VertexShaders.push_back(shader);
  break;
case vtkXMLShader::SCOPE_FRAGMENT:
this->Internals->FragmentShaders.push_back(shader);
  break;
default:
  vtkErrorMacro("Invalid scope for shader: " << shader->GetName());
}

Is it possible that MITK doesn't accept geometry shader?

--
Logo Imeka <http://imeka.ca/>     Nil Goyette, M.Sc.
www.imeka.ca <http://imeka.ca/>

------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to