Skip to content

1681-engine / pixel / MaterialLight

Interface: MaterialLight ​

Defined in: src/pixel/ramp.ts:20

How a material's shadows and lights move its hue.

Properties ​

cool ​

ts
cool: number;

Defined in: src/pixel/ramp.ts:22

Hue (degrees) a shadow drifts toward, and how far it drifts at a factor of 0.5.


coolDeg ​

ts
coolDeg: number;

Defined in: src/pixel/ramp.ts:23


coolSat ​

ts
coolSat: number;

Defined in: src/pixel/ramp.ts:25

Saturation a shadow gains at a factor of 0.5.


warm ​

ts
warm: number;

Defined in: src/pixel/ramp.ts:27

Hue a light drifts toward, and how far it drifts at a factor of 1.3.


warmDeg ​

ts
warmDeg: number;

Defined in: src/pixel/ramp.ts:28

Released under the MIT License.