. Basic Concepts
1. Light Source: There are four types of lights supported by unity
1) Parallel Optical directional light
2) Point Light
3) Spotlight Spot Light
4) Region light source Area
In addition, the luminous material can also be counted as a special light source
2. Light and object intersect
Light and objects intersect with two results: absorption (aborption) and scattering (scattering)
1) Absorption only changes the density and color of light, but does not change the direction of light
2) Scatter only changes the direction of light, does not change the light density and color
3) Light scattering from the surface of the object, there are two directions
A) One is scattering to the outside, called Reflection (reflection), and the illumination model is represented by specular reflection (specular)
b) One is scattering into the interior, called refraction (refraction), and the light model uses diffuse reflection (diffuse) to represent the part of the light that is eventually scattered after it is refracted in.
3. Light and coloring
Objects are colored by the absorption of light and by scattering from one another.
Coloring (shading) refers to the use of formulas to calculate the ejection process along a certain observation direction, based on the material properties, the light source information, the common Illumination model simulation
The light of Unityshader