Options
Menu

Class LightSources

Enumeration class for defining which lighting types affect 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 reflections from traditional light sources without those affecting the diffuse light.

see

away.materials.ColorMaterial.diffuseLightSources

see

away.materials.ColorMaterial.specularLightSources

see

away.materials.TextureMaterial.diffuseLightSources

see

away.materials.TextureMaterial.specularLightSources

Hierarchy

  • LightSources

Index

Properties

Properties

Static ALL

ALL: number

Defines that both normal and global lighting probes are to be used as the source for the lighting component. This is equivalent to LightSources.LIGHTS | LightSources.PROBES.

Static LIGHTS

LIGHTS: number

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

Static PROBES

PROBES: number

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

Generated using TypeDoc