Categories: Unity, C #, VS2015
Date Created: 2016-03-31 I. INTRODUCTION
Light sources (Lights) are an important part of each scene. Grids and textures determine the shape and appearance of the scene, while the light source determines the color and ambience of the three-dimensional environment. You might use multiple lights in each scene. Getting them to work together requires some practice, but the results are pretty impressive. Ii. Basic Concepts
is a simple two light source setting:
You can add lights to your scene by creating additional (create other) menus from the Game object (Gameobject). Once you have added a light source, you can manipulate it as you would any other game object (Gameobject). In addition, you can add a lighting component (light Component) to any selected game object (Gameobject) using the render (Rendering), light, as Component (Component).
There are many different options in the light Component of the viewer (Inspector).
Is the light Component attribute in the viewer (Inspector):
By simply changing the color of the light source, you can give the scene a completely different atmosphere.
1. Bright and warm light
2. Dark, Medieval light
3. Ghostly Glow
The lights created in this way are real-time lights-they are calculated at every frame of the game's run. If you know that a light source is constant, you can use a light map to make your game faster and look better.
4. Render Path
Unity supports different render paths (Rendering Paths), which affect light and shadows primarily, so you can improve engineering performance by choosing the correct rendering path for your game. For more information about the render path, you can access the render path section.
5. More information
For more information on using the light source (Lights), refer to the light source (Lights) page in the reference manual.
"Unity" 2.9 light source (Lights)