当前位置:网站首页>学习笔记:Unity CustomSRP-10-Point and Spot Shadows
学习笔记:Unity CustomSRP-10-Point and Spot Shadows
2022-04-23 05:11:00 【牛神自】
这一节主要在上一节的基础上添加实时阴影。
同样这一节内容比较多,也有点复杂,如果看过前面的方向光阴影,应该好理解。
总结:
1.为点光源和聚光灯混合烘焙和实时阴影
2.添加第二个阴影图集
3.使用透视投影渲染和采样阴影(聚光灯)
4.使用自定义立方体贴图(点光源)
实时阴影整体思路:
1.申请阴影空间,缓存当前帧的阴影贴图。
2.渲染阴影到阴影贴图。
3.采样阴影贴图,混合颜色。
注:第二步中,对不同类型的光,有不同的细节点。
1.对于方向光,采用正交投影渲染,根据级联数对阴影贴图进行分区域渲染多次。采样时找到正确的区域。
2.对于聚光灯,采用透视投影渲染
3.对于点光源,透视投影渲染6次,采样时找到正确的区域
每种光都可以加级联,但会导致更复杂,而且更消耗性能,比如一个点光源加4个级联,需要渲染4x6=24次。
最后说一点:渲染采样整个过程会出现很多阴影问题,作者都给出了一般的答案,自己思考。
版权声明
本文为[牛神自]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_41155760/article/details/124266030
边栏推荐
- 2022年最热门的招聘技术技能是什么,您绝对想不到
- 如何在Word中添加漂亮的代码块 | 很全的方法整理和比较
- 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)
- One month countdown, pgconf What are the highlights of the latest outlook of asia2021 Asian Conference?
- Analysis of POM files
- Redis lost key and bigkey
- MySQL views the SQL statement details executed by the optimizer
- [2021] Spatio-Temporal Graph Contrastive Learning
- Servlet3 0 + event driven for high performance long polling
- [winui3] Écrivez une copie du gestionnaire de fichiers Explorer
猜你喜欢
![[2022 ICLR] Pyramid: low complexity pyramid attention for long range spatiotemporal sequence modeling and prediction](/img/7c/51ac43080d9721f1bdc1cd78cd685b.png)
[2022 ICLR] Pyramid: low complexity pyramid attention for long range spatiotemporal sequence modeling and prediction

At pgconf Asia Chinese technology forum, listen to Tencent cloud experts' in-depth understanding of database technology

The applet calls the function of scanning QR code and jumps to the path specified by QR code

Basic concepts of multithreading (concurrency and parallelism, threads and processes) and entry cases

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

独立站运营 | FaceBook营销神器——聊天机器人ManyChat

直播带货表格模板-自动显示图片-自动关联系列商品

MySQL - index

2022/4/22

Basic theory of Flink
随机推荐
Use AES encryption - reuse the wisdom of predecessors
[2022 ICLR] Pyraformer: Low-Complexity Pyramidal Attention for Long-Range 时空序列建模和预测
Interview summary
Mac enters MySQL terminal command
Nacos source code startup error report solution
MySQL slow query
Various ways of writing timed tasks of small programs
How can continuous integration (CI) / continuous delivery (CD) revolutionize automated testing
信息学奥赛一本通 1212:LETTERS | OpenJudge 2.5 156:LETTERS
Machine learning - linear regression
云计算与云原生 — OpenShift 的架构设计
[2021] Spatio-Temporal Graph Contrastive Learning
[winui3] Écrivez une copie du gestionnaire de fichiers Explorer
[WinUI3]編寫一個仿Explorer文件管理器
Thoughts on a small program
Backup MySQL database with Navicat
如何在Word中添加漂亮的代码块 | 很全的方法整理和比较
Leetcode -- heuristic search
Get the number of days between dates, get the Chinese date, get the date of the next Monday of the date, get the working day, get the rest day
2022/4/22