WoW:API Model SetLight: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
:The dir-vector is probably only used to determine the direction of the light source, its distance from the mesh seems to be constant. | :The dir-vector is probably only used to determine the direction of the light source, its distance from the mesh seems to be constant. | ||
---- | |||
{{template:WoW API}} |
Revision as of 20:38, 30 December 2005
- Example
myModel:SetLight(1, 0, 0, -0.707, -0.707, 0.7, 1.0, 1.0, 1.0, 0.8, 1.0, 1.0, 0.8);
Model:SetLight(enabled[,omni,dirX,dirY,dirZ,ambIntensity[,ambR,ambG,ambB[,dirIntensity[,dirR,dirG,dirB]]]])]]
- Arguments
- enabled: number - ??
- omni: number - ??
- dirX, dirY, dirZ: numbers - vector from the origin to position of the light source
- ambIntensity: number - intensity of the ambient component of the light source
- ambR, ambG, ambB: numbers - color of the ambient component of the light source
- dirIntensity: number - intensity of the direct component of the light source
- dirR, dirG, dirB: numbers - color of the direct component of the light source
- Details
- It seems that the direct component only influences the specularity.
- The dir-vector is probably only used to determine the direction of the light source, its distance from the mesh seems to be constant.