# `MaterialSpec.lighting`

> Contract 2.0.0 · package sha256 `a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e` · generated from `configurator-runtime.d.ts` by `services/onsite-scripter/scripts/build-contract-docs.mjs`; edit the source, not this file.

Property of [`MaterialSpec`](MaterialSpec.md) · inherited by [`MaterialInput`](MaterialInput.md) · stable · since 2.0.0

```ts
lighting?: 'lit' | 'unlit';
```

'unlit' skips lighting (KHR_materials_unlit).

**Default:** 'lit'

## Generic-API test (spec 3.1)

| Rule | Result |
| --- | --- |
| 1. Neutral name | pass: `lighting` names no product |
| 2. A precedent | pass: [glTF KHR_materials_unlit](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_unlit) (row `K12`); [Babylon.js PBRMaterial.unlit](https://github.com/BabylonJS/Babylon.js/blob/master/packages/dev/core/src/Materials/PBR/pbrMaterial.ts) (row `K12`); [Unity Light.shadows](https://docs.unity3d.com/ScriptReference/Light-shadows.html) (row `K27`); [Babylon.js ShadowGenerator](https://github.com/BabylonJS/Babylon.js/blob/master/packages/dev/core/src/Lights/Shadows/shadowGenerator.ts) (row `K27`) |
| 3. Two apps, or labs | pass: 10 apps (ledger: app-0c773a4ee3, app-378d190f1b, app-4f16d2f6da, app-510d750508, app-59c5b5751e, app-b4ae2fce25, app-ceb4eccc72, app-ddfb017681 and 2 more; fleet cross-check: app-fc07850558) |
| 4. The cheaper fix first | decided per need in Appendix B: rows `K12`, `K27` at tier stable (a member only where no rule, data, asset or app code serves the need) |
