|
Hi,i am a newbie,
can i get the diffuse,ambient,specular components of a light???not just a color~
|
|
|
|
there is only diffuse color in the lights.
ambient it set in the environment dialog and is global, unless you override it in the materials.
specular is also set in the materials - not the lights.
so to get the things you mention (except diffuse) then you have to get it from the materials on the objects.
Can you please elaborate on what you want to do?
http://www.stigatle.net
|
|
|
|
stig atle is mostly right.
Thought light might affect just a specific shading component. These are checkboxes: affect diffuse, ambient only, specular only and GetAffectDiffuse, GetAffectSpecular and GetAmbientOnly on SDK side
This however, does not change the fact that light will return only one color. To get different ones you’d need to setup three different lights.
|
|
|