Unity lights

There are four main types of lights in Unity, which are ambient light, point light, spotlight, and area light.

Directional Light : A parallel light source that simulates sunlight, which can illuminate the entire scene from one direction. It is usually used to simulate scenes such as day and night.

Point Light : Similar to a light source emitted by a point, it can emit light in all directions in the scene. Usually used to simulate light sources such as light bulbs and flames.

Spotlight (Spot Light) : Similar to a flashlight, you can specify a direction to emit light. It is usually used to simulate light sources such as flashlights and car lights.

Area Light (Area Light ): It can only be used for light baking, not for real-time lighting. Typically used to enhance the overall brightness and tone of a scene.

Some important properties in the Light component.

1. Type: You can switch the type of light.

2. Color: Set the color of the light.

3. Mode: switch real-time light or baked light.

4. Intensity: Set the intensity of the light.

5. Shadow type: Some processing of shadows, including opening and closing shadows.

6. Eliminate Mask: The light will only irradiate the layer checked under this option, and the unchecked layer will not be affected by the light effect.

When using lights, you need to pay attention to the following points:

The number and intensity of lights should not be too high, so as not to cause a decrease in game performance.

Different types of lights can be combined to achieve more realistic effects.

The shadow effect of light is very important to the visual effect of the game, however, the shadow effect will also have a very large impact on the game performance, so the pros and cons need to be weighed.

Guess you like

Origin blog.csdn.net/qq_36592993/article/details/130519590