Skip to content

Class TerminalScreenLight

Makes a Light glow as a screen does: its color follows the average color of the picture the screen shows, and its intensity how much of the picture is lit. A screen that switches off, rolls, or glitches takes the light with it. Put it on a light in front of the glass.

Declaration
[ExecuteAlways]
[DefaultExecutionOrder(200)]
[RequireComponent(typeof(Light))]
[AddComponentMenu("Terminal/Terminal Screen Light")]
[Icon("Packages/com.darkeffekt.terminal/Editor/Icons/Assets/TerminalScreenLight.png")]
public sealed class TerminalScreenLight : MonoBehaviour

Inheritance: System.Object -> UnityEngine.Object -> UnityEngine.Component -> UnityEngine.Behaviour -> UnityEngine.MonoBehaviour

The screen whose picture lights the scene.

Declaration
public TerminalScreenBase Screen { get; set; }

The light’s intensity when the whole screen is white.

Declaration
public float Intensity { get; set; }

How soon the light levels off as more of the screen lights up: 0 follows the lit share straight, higher compresses it.

Declaration
public float Knee { get; set; }

How much of the picture’s color the light takes, from 0 for white light, through 1 for the picture’s own.

Declaration
public float Saturation { get; set; }

Seconds the light takes to follow a change in the picture.

Declaration
public float Response { get; set; }

Whether a reading waits for the graphics card.

Declaration
public TerminalScreenLight.Readback ReadbackMode { get; set; }

The average color of the picture, in linear color, as the light is showing it.

Declaration
public Color ScreenColor { get; }