当前位置:网站首页>[unity note] basic lighting in l4unity
[unity note] basic lighting in l4unity
2022-04-23 12:20:00 【lee2813】
One 、 Overview of basic lighting
1. Contains objects
- The light source —— The measure : Radiation ( The cosine value perpendicular to the surface normal multiplied by the radiance on the slash )
- Absorption and scattering —— The light is scattered , One will scatter into the interior of the object , One is reflected to the outside of the object
- To color —— The calculation process of object surface illumination model is carried out by using material attributes and light source information , Called coloring .
- BRDF Illumination model —— The rendering equation for calculating the interaction between light and object surface .
2. Standard illumination model
- The ambient light —— Describe the indirect illumination of the object surface : Before the light enters the camera , After more than one reflection of the object .
- Spontaneous light —— Light is emitted directly from the light source into the camera
- Diffuse reflection —— The radiance of light scattered randomly from the object surface to all directions is modeled . At this time, the incident direction is not important , Because it will scatter in all directions . The intensity of the scattered light is directly proportional to the cosine of the angle between the direction of the light source
- highlights —— The calculation of highlights consists of two models , One is Blinn Model , The other is Phong Model
3. Pixel by pixel or vertex by vertex
- For calculating the position of the lighting model : The calculation in the slice shader is called per pixel illumination , The calculation in the vertex shader is called per vertex illumination .
- Phong To color : On a per pixel basis , Calculating normals , Then interpolate the vertex normals between patches
- Gorod coloring : Then calculate the illumination on each vertex , Then linear interpolation is performed inside the rendering entity , Finally, output the imager color
4.Blinn-Phong Model
- Definition : Diffuse and specular reflections are used to model the reflected light , An empirical method for calculating specular reflection is proposed .
- advantage : Simplify the calculation , faster
- limitations : Because it is an empirical model , For some complex phenomena , For example, the Fresnel reflex does not show , In addition, the characteristics of isotropy lead to rotating objects , The reflective surface will not be changed by any . Not applicable for hair, etc .
5. Ambient light and self illumination
- The ambient light : Light already available in the space before adding Rehe lighting
- Spontaneous light : Before the slice shader outputs the last color , Add the self luminous color of the material to the output color
Two 、 stay Unity Shader The diffuse illumination model is realized on
版权声明
本文为[lee2813]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231217474951.html
边栏推荐
- 力扣-70.爬楼梯
- MySQL函数-递归函数
- Chapter 4: enable and disable im column storage for materialized view (IM 4.6)
- SQL exercise (I)
- 1. Construction of electron development environment
- Introduction to metalama 4 Use fabric to manipulate items or namespaces
- SPSS之单因素方差分析
- How the database fills in IM expressions (IM 5.4)
- Qt一个进程运行另一个进程
- Castle. Dynamic proxy implements transaction unit control
猜你喜欢
How to expand the capacity of the server in the 100 million level traffic architecture? Well written!
软银愿景基金进军Web3安全行业 领投CertiK 6000万美元新一轮投资
Pagoda panel command line help tutorial (including resetting password)
Why is there a wrapper class? By the way, how to convert basic data types, wrapper classes and string classes?
SPSS之单因素方差分析
万事有你 未来可期 | ONES 2022校园招聘正式开启
PSCP basic usage
消息队列概述
Relu function of activation function
初探 Lambda Powertools TypeScript
随机推荐
How much does software testing help reduce program bugs?
MySQL函数-递归函数
一个平面设计师的异想世界|ONES 人物
天梯赛赛前练习
智能多线弹性云增加独立的IP地址,如何实现多线功能?
IDEA 代码质量规范插件SonarLint
Next. JS static data generation and server-side rendering
网络信息安全之零信任
Windows2008系统如何切换PHP版本
异步时钟亚稳态 的解决方案——多bit信号
第四章 为IM 启用填充对象之启用和禁用列(IM-4.3 第三部分)
Debug Jest test cases in VSCode, debug Jest test cases in VSCode, middle note basedir=$(dirname "$" (echo "$0" sed -e -e, s, \ \, / "-e").
AI video cloud vs narrowband HD, who is the darling of the video era
第五章 使用In-Memory表达式优化查询(IM 5.1)
In idea Solution to the problem of garbled code in Chinese display of properties file
How Im expressions work (5.3)
PSCP basic usage
flask项目跨域拦截处理以及dbm数据库学习【包头文创网站开发】
Qt绘制图像
面了一圈,整理了这套面试题。。