Light Mode: Realtime
This page describes the behavior of a Light component when you set its Mode property to Realtime. These are also known as Realtime Lights.
Unity performs the lighting calculations for Realtime Lights at runtime, once per frame. You can change the properties of Realtime Lights at runtime to create effects such as flickering light bulbs, or a torch being carried through a dark room.
Realtime Lights are useful for lighting and casting shadows on characters or moveable geometry.
Realtime Light behavior
- Realtime Lights cast shadows up to the Shadow Distance.
- By default, Realtime Lights contribute only realtime direct lighting to a SceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary. If you’re using the Built-in Render PipelineA series of operations that take the contents of a Scene, and displays them on a screen. Unity lets you choose from pre-built render pipelines, or write your own. More info
See in Glossary and you enable Enlighten Realtime Global IlluminationA group of techniques that model both direct and indirect lighting to provide realistic lighting results.
See in Glossary in your Project, Realtime Lights also contribute realtime indirect lighting to your Scene.
Limitations of Realtime Lights
- Performing runtime calculations for Realtime Lights might be costly, especially in complex scenes or on low-end hardware.
- Because Realtime Lights only contribute direct lighting to the Scene by default, shadows appear completely black and there aren’t any indirect lighting effects, such as color bounce. This might cause unrealistic lighting in the Scene.
Copyright © 2020 Unity Technologies
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。