[vtkusers] lighting coefficients

Will Schroeder will.schroeder at kitware.com
Sat Mar 2 17:19:11 EST 2002


Hi Benj-

The SetColor() method in VTK is a convenience method that sets the ambient, 
diffuse, and specular color simultaneously. You probably want to set them 
separately.

void vtkProperty::SetColor(float R,float G,float B)
{
   // Use Set macros to insure proper modified time behavior
   this->SetAmbientColor(R,G,B);
   this->SetDiffuseColor(R,G,B);
   this->SetSpecularColor(R,G,B);
}

Will

William J. Schroeder, Ph.D
Kitware, Inc.
469 Clifton Corporate Parkway
Clifton Park, NY 12065
will.schroeder at kitware.com
1-518-371-3971 x102
1-518-371-3971 (fax)




More information about the vtkusers mailing list