当前位置:网站首页>Study notes: unity customsrp-10-point and spot shadows
Study notes: unity customsrp-10-point and spot shadows
2022-04-23 05:16:00 【Niu Shenzi】
original text ----- translate ----- Source code
This section is mainly based on the previous section Add live shadows .
Similarly, this section contains a lot of content , It's also a bit complicated , If you look at the directional light shadow in front , It should be easy to understand .
summary :
1. Blend baking and real-time shadows for point and spot lights
2. Add a second shadow set
3. Use perspective projection to render and sample shadows ( Spotlights )
4. Use custom cube maps ( Point source )
The overall idea of real-time shadow :
1. Apply for shadow space , Cache the shadow map of the current frame .
2. Render shadow to shadow map .
3. Sample shadow maps , Mix colors .
notes : In the second step , For different types of light , There are different details .
1. For directional light , Using orthogonal projection rendering , The shadow map is rendered in different regions according to the number of cascades . Find the correct area when sampling .
2. For spotlights , Render with perspective projection
3. For point lights , Perspective projection rendering 6 Time , Find the correct area when sampling
Each kind of light can be cascaded , But it will lead to more complexity , And more performance consuming , For example, a point light source plus 4 Cascades , Rendering required 4x6=24 Time .
One last point : There are many shadow problems in the whole process of rendering sampling , The authors have given general answers , Think for yourself .
版权声明
本文为[Niu Shenzi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230511353124.html
边栏推荐
- JS Array常见方法
- MySQL circularly adds sequence numbers according to the values of a column
- 源码剖析Redis中如何使用跳表的
- The concept of meta universe is popular. Is virtual real estate worth investing
- Independent station operation | Facebook marketing artifact - chat robot manychat
- Use AES encryption - reuse the wisdom of predecessors
- Installing kuberneters using kubedm
- 《2021多多阅读报告》发布,95后、00后图书消费潜力攀升
- mariadb数据库的主从复制
- Deep learning notes - fine tuning
猜你喜欢

Summary of MySQL knowledge points

Data security has become a hidden danger. Let's see how vivo can make "user data" armor again

源码剖析Redis中如何使用跳表的

2021-09-23

数字化转型失败,有哪些原因?

Redis persistence

Use the built-in function of win to transfer files between two computers in the same LAN (the speed is the same as that between local disks)

5 minutes to understand MySQL row column conversion

The WebService interface writes and publishes calls to the WebService interface (I)

2022年最热门的招聘技术技能是什么,您绝对想不到
随机推荐
Harmonious dormitory (linear DP / interval DP)
Mac enters MySQL terminal command
The WebService interface writes and publishes calls to the WebService interface (2)
Day. JS common methods
Data security has become a hidden danger. Let's see how vivo can make "user data" armor again
Detailed explanation of concurrent topics
PIP free export with path (@ file: / / /) notes
【openh264】cmake: msopenh264-static
C. Tree infection (simulation + greed)
Installing kuberneters using kubedm
学习笔记:Unity CustomSRP-11-Post Processing---Bloom
Swing display time (click once to display once)
Deep learning notes - object detection and dataset + anchor box
Independent station operation | Facebook marketing artifact - chat robot manychat
Nacos source code startup error report solution
Basic knowledge of vegetable chicken database
DevOps生命周期,你想知道的全都在这里了!
Summary of MySQL knowledge points
JSP-----JSP简介
4 个最常见的自动化测试挑战及应对措施