# Lights explained

## Summary

Published: Feb 09 2024 by [mana vortex](https://app.gitbook.com/u/NfZBoxGegfUqB33J9HXuCs6PVaC3 "mention")\
Last documented edit: Feb 09 2024 by [mana vortex](https://app.gitbook.com/u/NfZBoxGegfUqB33J9HXuCs6PVaC3 "mention")

This page gives you an overview about lights at a glance.

### Wait, this isn't what I want!

* To learn about shadows in the world, check [environment-shadows](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/files-and-what-they-do/file-formats/the-whole-world-.streamingsector/environment-shadows "mention")
* To learn about shadows for equipment items, check [meshes-shadows-and-shadow-meshes](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/files-and-what-they-do/file-formats/3d-objects-.mesh-files/meshes-shadows-and-shadow-meshes "mention")
* For a guide how to add lights to AMM props, check [amm-light-components](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/3d-modelling/custom-props/amm-light-components "mention")
* For a quick overview on lights and their properties, check [cheat-sheet-lights](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/references-lists-and-overviews/cheat-sheet-lights "mention") (currently WIP)
* If you want to learn more about **blocking** light, check [occluders-light-and-light-blocking](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/files-and-what-they-do/occluders-light-and-light-blocking "mention")

## How do lights work?

{% hint style="warning" %}
IDK either! But maybe someone edits the wiki :/
{% endhint %}

## Directional lights

Cyberpunk uses three types of lights:

### Point light

The light is a sphere and is equally bright in every direction

### Spot light

The light is a cone. The sharpness is defined by its inner and outer angle.

### Area light

The light is a square (like a light panel).

## Light attenuation

Their are two options for light attenuation listed as LA\_InverseSquare and LA\_Linear light attenuation is the falloff of luminance away from the point of origin as the photons spread out \\

### LA\_InverseSquare

Inverse square root is the default option and the physically accurate one, This should generally be set by default unless absolutely necessary. LA\_InverseSquare models the falloff of luminance according to the [inverse square root law](https://en.wikipedia.org/wiki/Inverse-square_law).

{% file src="<https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-2d9e6de25370fae426b4f18b51e78399eae5fe6f%2FInverse_square_law.svg.png?alt=media>" %}

### LA\_Linear

Linear simply directly drops light luminance according to the set radius of the light. this setting can make a light more obvious or bright overall however does so at the cost off functioning unnatural and potently appearing too bright at distance.
