Packageaway3d.materials
Classpublic class LightSources
InheritanceLightSources Inheritance Object

Enumeration class for defining which lighting types affects the specific material lighting component (diffuse and specular). This can be useful if, for example, you want to use light probes for diffuse global lighting, but want specular lights from traditional light sources without those affecting the diffuse light.

See also

away3d.materials.ColorMaterial.diffuseLightSources
away3d.materials.ColorMaterial.specularLightSources
away3d.materials.TextureMaterial.diffuseLightSources
away3d.materials.TextureMaterial.specularLightSources


Public Constants
 ConstantDefined By
  ALL : uint = 0x03
[static] Defines that both normal and global lighting probes are to be used as the source for the lighting component.
LightSources
  LIGHTS : uint = 0x01
[static] Defines normal lights are to be used as the source for the lighting component.
LightSources
  PROBES : uint = 0x02
[static] Defines that global lighting probes are to be used as the source for the lighting component.
LightSources
Constant Detail
ALLConstant
public static const ALL:uint = 0x03

Defines that both normal and global lighting probes are to be used as the source for the lighting component.

LIGHTSConstant 
public static const LIGHTS:uint = 0x01

Defines normal lights are to be used as the source for the lighting component.

PROBESConstant 
public static const PROBES:uint = 0x02

Defines that global lighting probes are to be used as the source for the lighting component.