AW: [vtkusers] disabling lights
de Boer Ingo
I.deBoer at polytec.de
Mon Dec 15 10:26:58 EST 2003
Try something like this:
ToggleLight( bool bLight)
{
float fDiffuse = 1.0;
float fSpecular = 0.0;
float fAmbient = 0.0;
if (bLight == false)
{
fDiffuse = fSpecular = 0.0;
fAmbient = 1.0;
}
m_vtkActorData->GetProperty()->SetDiffuse(fDiffuse);
m_vtkActorData->GetProperty()->SetSpecular(fSpecular);
m_vtkActorData->GetProperty()->SetAmbient(fAmbient);
m_pvtkWin32OpenGLRW->Render();
return S_OK;
}
greets
Ingo
---
Dr.-Ing. Ingo H. de Boer
Polytec GmbH
Polytec-Platz 1-7, 76337 Waldbronn, Germany
phone: ++49 7243 604 106
fax : ++49 7243 604 255
More information about the vtkusers
mailing list