当前位置:网站首页>untiy世界边缘的物体阴影闪动,靠近远点的物体阴影正常
untiy世界边缘的物体阴影闪动,靠近远点的物体阴影正常
2022-07-03 12:42:00 【吴梓穆】
如果你拿到的模型非常大,你没有进行缩放直接使用,或者美工把模型的坐标放在了世界边缘,你会发现这些遥远的物体(任意坐标超5000后就已经非常明显)的阴影会发生极其不自然的闪烁,但与此同时,如果你把模型归零,在世界远点的话,你会发现阴影又正常了
这是因为浮点数的精度下降,由于浮点数最多只能怪精确表示7位,保证准确表示6位(整数部分加小数部分一共的位数),如果世界坐标太大,Untiy对于阴影的计算就会出现偏差
这种情况可以通过修改光源的biss和NormalBias缓解
但是最有效的方法是去window/packageManager里下载一个Post Processing后处理组件,并为摄像机挂载 Post-process Layer,并启用里边的TAA抗锯齿,注意这个抗锯齿在Post-process Layer里,不在PostProcessVolume里,关于Post Processing的具体用法可以参考这位大佬的博客后处理组件详细使用
此外,如果美工给你的模型太大,不建议你自己缩放模型,同样是因为浮点数精度的问题,可能会给项目带来不可预知的后果,建议直接让美工修改模型的比例尺
边栏推荐
- PostgreSQL installation
- IDEA 全文搜索快捷键Ctr+Shift+F失效问题
- (first) the most complete way to become God of Flink SQL in history (full text 180000 words, 138 cases, 42 pictures)
- [today in history] July 3: ergonomic standards act; The birth of pioneers in the field of consumer electronics; Ubisoft releases uplay
- 2022-01-27 redis cluster technology research
- PowerPoint tutorial, how to save a presentation as a video in PowerPoint?
- 2022-01-27 use liquibase to manage MySQL execution version
- SSH login server sends a reminder
- The 35 required questions in MySQL interview are illustrated, which is too easy to understand
- SQL learning notes (I)
猜你喜欢
这本数学书AI圈都在转,资深ML研究员历时7年之作,免费电子版可看
Comprehensive evaluation of double chain notes remnote: fast input, PDF reading, interval repetition / memory
IDEA 全文搜索快捷键Ctr+Shift+F失效问题
Annotation and reflection
Flink SQL knows why (VIII): the wonderful way to parse Flink SQL tumble window
sitesCMS v3.1.0发布,上线微信小程序
PowerPoint 教程,如何在 PowerPoint 中将演示文稿另存为视频?
显卡缺货终于到头了:4000多块可得3070Ti,比原价便宜2000块拿下3090Ti
[today in history] July 3: ergonomic standards act; The birth of pioneers in the field of consumer electronics; Ubisoft releases uplay
2022-02-11 heap sorting and recursion
随机推荐
When we are doing flow batch integration, what are we doing?
Oracle memory management
Sword finger offer 12 Path in matrix
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter III exercises]
对业务的一些思考
Logseq 评测:优点、缺点、评价、学习教程
双链笔记 RemNote 综合评测:快速输入、PDF 阅读、间隔重复/记忆
【数据库原理及应用教程(第4版|微课版)陈志泊】【第四章习题】
今日睡眠质量记录77分
Logback 日志框架
Convolution emotion analysis task4
Useful blog links
mysql更新时条件为一查询
DQL basic query
Luogup3694 Bangbang chorus standing in line
Sword finger offer 11 Rotate the minimum number of the array
Task6: using transformer for emotion analysis
已解决(机器学习中查看数据信息报错)AttributeError: target_names
Sitescms v3.1.0 release, launch wechat applet
Flink SQL knows why (12): is it difficult to join streams? (top)