当前位置:网站首页>[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
边栏推荐
- S2-062 remote command execution vulnerability recurrence (cve-2021-31805)
- Castle. Dynamic proxy implements transaction unit control
- SQLserver怎么插入或更新当天的星期数,bit而不是文本
- SPSS之单因素方差分析
- How the database fills in IM expressions (IM 5.4)
- 画结果图推荐网址
- QT redraw events and cuts
- The maximum number of remote desktop servers has been exceeded
- Xinwangda announced that the price of battery products had been increased, and the investment of "weixiaoli" exceeded 1 billion
- 传统企业如何应对数字化转型?这些书给你答案
猜你喜欢

IDEA设置版权信息

IDEA 代码质量规范插件SonarLint

SPSS之单因素方差分析

Qt绘制文字

VMware虚拟机使用esxi 导出硬盘vmdk文件

AI video cloud vs narrowband HD, who is the darling of the video era

万事有你 未来可期 | ONES 2022校园招聘正式开启

AI 视频云 VS 窄带高清,谁是视频时代的宠儿

The database navigator uses the default MySQL connection prompt: the server time zone value 'Ö Ð¹ ú±ê ×¼ ʱ ¼ ä’ is unrecognized or repres

Idea setting copyright information
随机推荐
31岁才转行程序员,目前34了,我来说说我的经历和一些感受吧...
NativeForMySQL 连接MySQL8 提示:1251- Client does not support authentication protocol
在 VSCode 中调试 Jest 的测试用例,VSCode调试Jest测试用例报错basedir=$(dirname “$(echo “$0“ | sed -e ‘s,\\,/,g‘)“)解决
On lambda powertools typescript
Tips for installing MySQL service in windows11: Install / Remove of the Service denied
Lesson 26 static member functions of classes
QT double buffer drawing
Win10 splash screen after startup
5分钟NLP:Text-To-Text Transfer Transformer (T5)统一的文本到文本任务模型
uni-app 原生APP-本地打包集成极光推送(JG-JPUSH)详细教程
第二十六课 类的静态成员函数
Relu function of activation function
Stacks and queues a
一个平面设计师的异想世界|ONES 人物
第四章 为IM 启用填充对象之启用和禁用列(IM-4.3 第三部分)
Nativeformysql connects to MySQL 8 prompt: 1251 - client does not support authentication protocol
C# F23. Stringsimilarity Library: String repeatability, text similarity, anti plagiarism
Qt一个进程运行另一个进程
硬核解析Promise对象(这七个必会的常用API和七个关键问题你都了解吗?)
A graphic designer's fantasy world | ones characters