Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API Model SetLight
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{widgetmethod}} ---- ;''Example'' myModel:SetLight(true, false, 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: '''boolean '''- appears to be true for lit and false for unlit * omni: '''boolean '''- if the light is omnidirectional [lighting in all directions] (default of 0) * dirX, dirY, dirZ: '''number'''s - vector from the origin to where the light source should face * ambIntensity: '''number''' - intensity of the ambient component of the light source * ambR, ambG, ambB: '''number'''s - color of the ambient component of the light source * dirIntensity: '''number''' - intensity of the direct component of the light source * dirR, dirG, dirB: '''number'''s - color of the direct component of the light source ---- ;''Details'' :It seems that the direct component only influences the specularity. :The dir-vector is only used to determine the direction that the light source faces; its distance from the mesh does not affect the light level.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Widget
(
edit
)
Template:Widgetmethod
(
edit
)