ForcePixel
Force the Light to be a pixel light.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Field
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
ForcePixel = 1
Remarks
In the Universal Render Pipeline (URP), this setting doesn't control whether a light is rendered per vertex or per pixel. In the URP Forward rendering path, set Lighting > Additional Lights in the URP Asset to render all additional lights per vertex or per pixel. Other URP rendering paths render all lights per pixel.
Use this only for really important lights, like a player flashlight. Additional Resources: light component.