当前位置:网站首页>学习笔记: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
边栏推荐
- 信息学奥赛一本通 1955:【11NOIP普及组】瑞士轮 | OpenJudge 4.1 4363:瑞士轮 | 洛谷 P1309 [NOIP2011 普及组] 瑞士轮
- MySQL realizes row to column SQL
- [untitled] kimpei kdboxpro's cool running lantern coexists with beauty and strength
- On distributed lock
- Mac 进入mysql终端命令
- Other problems encountered in debugging fingerprints
- Set Chrome browser background to eye protection (eye escort / darkreader plug-in)
- PHP counts the number of files in the specified folder
- 《2021年IT行业项目管理调查报告》重磅发布!
- What are the redis data types
猜你喜欢
DIY 一个 Excel 版的子网计算器
View, modify and delete [database] table
[2022 ICLR] Pyramid: low complexity pyramid attention for long range spatiotemporal sequence modeling and prediction
MySQL - index
Cross border e-commerce | Facebook and instagram: which social media is more suitable for you?
MySQL basics 3
MySQL foreign key constraint
使用zerotier让异地设备组局域网
[database] MySQL basic operation (basic operation ~)
Wine (COM) - basic concept
随机推荐
MySQL slow query
Transaction isolation level of MySQL transactions
[database] MySQL multi table query (I)
Day.js 常用方法
DIY is an excel version of subnet calculator
Chapter I overall project management of information system project manager summary
The difference between static pipeline and dynamic pipeline
QPushButton slot function is triggered multiple times
Discussion on flow restriction
MySQL foreign key constraint
Deep learning notes - semantic segmentation and data sets
深度学习笔记 —— 微调
Golang memory escape
Machine learning - linear regression
退出vim的方法
C. Tree Infection(模拟+贪心)
Where, on when MySQL external connection is used
[winui3] write an imitation Explorer file manager
Streamexecutionenvironment of Flink source code
[WinUI3]編寫一個仿Explorer文件管理器