Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Specifies model lighting.

Model:SetLight(enabled, light)

Arguments[]

enabled
boolean - Appears to be true for lit and false for unlit.
light
ModelLight
Field Type Description
omnidirectional boolean? = false If the light is omnidirectional [lighting in all directions].
point vector3🔗 Vector from the origin to where the light source should face.
If this light is omnidirectional then point refers to a position, otherwise it refers to a direction.
ambientIntensity number? = 0 Intensity of the ambient component of the light source.
ambientColor colorRGB?🔗 Color of the ambient component of the light source (0-1).
diffuseIntensity number? = 0 Intensity of the direct component of the light source.
diffuseColor colorRGB?🔗 Color of the direct component of the light source (0-1).

Details[]

  • It seems that the diffuse/direct component only influences the specularity.
  • The point vector is only used to determine the direction that the light source faces; its distance from the mesh does not affect the light level.
Advertisement