Set the light falloff mode in URP
Change how the intensity of Point Lights and Spot Lights fades with distance in URP.
読み終わるまでの所要時間 3 分最終更新 2日前
Light falloff controls how the intensity of a Point Light or Spot Light decreases with distance from the light source. The Universal Render Pipeline (URP) has the following light falloff modes:
- Inverse Squared: Matches how light behaves in the real world. Surfaces close to the light source are brightly lit, and the lighting drops off quickly as surfaces get farther away. This is the default.
- Quadratic: Fades the lighting relative to the range of the light, so when you change the range, the falloff stretches or shrinks to fit. This mode matches the distance falloff of the Built-In Render Pipeline.
The following images show the same Point Light above a plane, with the same Intensity and Range, using each light falloff mode.

A Point Light above a plane with Inverse Squared light falloff, lighting a small, dim area that fades quickly into darkness

The same Point Light above a plane with Quadratic light falloff, lighting a larger, brighter area that fades gradually across the plane
Change the light falloff mode
To change the light falloff mode:
- Go to Edit > > Graphics.Project Settings
?
- In Pipeline Specific Settings, select URP.
- In the Lighting section, set Light Falloff Mode to Inverse Squared or Quadratic. For more information on these options, refer to Lighting in Graphics settings.
- If your scenes use baked lighting, bake the lighting again so that lightmaps and Light Probes use the new falloff. For more information, refer to Lighting window reference.
URP applies the new falloff mode to all Point Lights and Spot Lights in your project.
You can change the light falloff mode only in the Unity Editor, not at runtime. When you build your project, Unity includes only the shader variants for the light falloff mode you select, to reduce build size.
Quadratic doesn't match the cone falloff of Spot Lights in the Built-In Render Pipeline, so some Spot Lights need a light cookie to match their original appearance. To find these Spot Lights, use Project Auditor.
Use quadratic falloff in custom shaders
Prebuilt URP shaders and shaders you create in Shader Graph support both light falloff modes automatically.
If you write custom shaders that use the URP lighting functions, add the following line to each shader pass that calculates lighting from additional lights:
#pragma multi_compile _ _LIGHT_FALLOFF_QUADRATIC
If a custom shader doesn't include this keyword, it always uses inverse-square falloff.