当前位置:网站首页>[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
边栏推荐
- IDEA 代码格式化插件Save Actions
- C set Logo Icon and shortcut icon
- One way ANOVA of SPSS
- 第四章 为IM 启用填充对象之启用和禁用列(IM-4.3 第三部分)
- Array---
- NativeForMySQL 连接MySQL8 提示:1251- Client does not support authentication protocol
- How to expand the capacity of the server in the 100 million level traffic architecture? Well written!
- 万事有你 未来可期 | ONES 2022校园招聘正式开启
- 宝塔面板命令行帮助教程(包含重置密码)
- QT one process runs another
猜你喜欢

I changed to a programmer at the age of 31. Now I'm 34. Let me talk about my experience and some feelings

传统企业如何应对数字化转型?这些书给你答案

Idea code quality specification plug-in sonarlint

Database Navigator 使用默认MySQL连接提示:The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or repres

1. Construction of electron development environment

Recommended programming AIDS: picture tool snipaste

Pagoda panel command line help tutorial (including resetting password)

IDEA设置版权信息

网络信息安全之零信任

Everything can be expected in the future | one 2022 campus recruitment officially opened
随机推荐
没有空闲服务器?导入 OVF 镜像快速体验 SmartX 超融合社区版
Here comes the detailed picture and text installation tutorial of H5 game
How Im expressions work (5.3)
Interpretation 3 of gdpr series: how do European subsidiaries return data to domestic parent companies?
Step function of activation function
flask项目跨域拦截处理以及dbm数据库学习【包头文创网站开发】
[redis series] redis learning 13. Redis often asks simple interview questions
Array---
Lesson 23 temporary objects
程序员如何用130行代码敲定核酸统计
第四章 为IM 启用填充对象之在NO INMEMORY表上指定INMEMORY列属性:示例(IM-4.4 第四部分)
网络信息安全之零信任
运行报错:找不到或无法加载主类 com.xxx.Application
5分钟NLP:Text-To-Text Transfer Transformer (T5)统一的文本到文本任务模型
On lambda powertools typescript
QT interprocess communication
uni-app 原生APP-云打包集成极光推送(JG-JPUSH)详细教程
IDEA 代码质量规范插件SonarLint
uni-app 原生APP-本地打包集成极光推送(JG-JPUSH)详细教程
Introduction to metalama 4 Use fabric to manipulate items or namespaces