LTC Lights#

Currently this package supports polygon light, linear light and textured area light. More types will be added in the future such as bezier curve shaped area lights.

Each light type have a corresponding component which can be added to game object, just like the built-in light components.

Attributes#

These are common attributes for all light types:

Color

Light color in RGB value.

For textured light, this color will be multiplied with texture color.

Specular|Diffuse Intensity

Light intensity is a multiplier to lighting result, it is composed of diffuse and specular, which can be controlled saperately.

Range

The space range affected by light, it has different meaning for different light types, It will not be affected by transform scale, can be visualized in gizmo when selected.

Light Mode

The light calculation contains two parts: diffuse and specular. Although they can be modulated by metallic, you can choose to use diffuse only, specular only or both of them for special use case.

  • Specular and Diffuse

  • Diffuse only

  • Specular only

Use World Position

Use object local space or world space for light vertices, transform will be ignored if true. This is useful if light vertices is in world space. Like the lazer beam in shader code sample.