The light of Unityshader

Source: Internet
Author: User

. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.