Skip to main content

PCLightsController

A class in Root.Township, Alta.Lighting.

Client lights controller on PC: every 0.5 seconds makes the nearest lights per-pixel and the rest per-vertex when there are more than the quality setting allows.

Constructors​

MemberWhat it is
PCLightsController()Creates a PCLightsController with default values.

Fields​

3 private and internal fields
MemberWhat it is
private static Logger loggerLogger for this class.
private float nextUpdateTime of the next update.
private LightSorter<PCLightsController.PCSortedLight> sorterSorts lights by distance from the head.

Methods​

MemberWhat it is
override void AddLight(PlatformLight light)Enables the light's Unity Light and starts tracking it. Warns if it has none.
override void RemoveLight(PlatformLight light)Disables the light's Unity Light and stops tracking it.
protected override void Update()Sets render modes by distance from the head. Lights marked not important always sort as if 10 units away.