[vtkusers] flat shading in vtk

Liam Kurmos quantum.leaf at googlemail.com
Mon Jan 25 16:05:09 EST 2010


Is there an easy way to disable shading in vtk?
I want all pixels drawn for a polygon to be constant colour,
independent of surface normals.

I'm going to try having only an emissive color and turning off a
lights, but now i'm stuck turning off the default light.

ren1->RemoveAllLights();

doesn't seem to be having any effect.

searches like

"site:vtk.org/Wiki/VTK/Examples getLights"

are coming up blank, so i wonder if i'm on the right track.

any help much appreciated,


Liam



More information about the vtkusers mailing list