# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/files-and-what-they-do/lights-explained.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
