当前位置:网站首页>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的具体用法可以参考这位大佬的博客后处理组件详细使用
此外,如果美工给你的模型太大,不建议你自己缩放模型,同样是因为浮点数精度的问题,可能会给项目带来不可预知的后果,建议直接让美工修改模型的比例尺
边栏推荐
- stm32和电机开发(从mcu到架构设计)
- Ubuntu 14.04 下开启PHP错误提示
- February 14, 2022, incluxdb survey - mind map
- 剑指 Offer 17. 打印从1到最大的n位数
- 父亲和篮球
- OpenHarmony应用开发之ETS开发方式中的Image组件
- Seven habits of highly effective people
- (first) the most complete way to become God of Flink SQL in history (full text 180000 words, 138 cases, 42 pictures)
- 人身变声器的原理
- 2022-01-27 redis cluster brain crack problem analysis
猜你喜欢

STM32 and motor development (from MCU to architecture design)

2022-02-11 heap sorting and recursion

106. 如何提高 SAP UI5 应用路由 url 的可读性
![[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter 6 exercises]](/img/c0/92e9e52f1f643b66720697523a1794.png)
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter 6 exercises]

【Colab】【使用外部数据的7种方法】

Logseq evaluation: advantages, disadvantages, evaluation, learning tutorial

Image component in ETS development mode of openharmony application development

Flink code is written like this. It's strange that the window can be triggered (bad programming habits)

高效能人士的七个习惯

Flink SQL knows why (17): Zeppelin, a sharp tool for developing Flink SQL
随机推荐
Flink SQL knows why (17): Zeppelin, a sharp tool for developing Flink SQL
Server coding bug
Sword finger offer 15 Number of 1 in binary
高效能人士的七个习惯
71 articles on Flink practice and principle analysis (necessary for interview)
C graphical tutorial (Fourth Edition)_ Chapter 17 generic: genericsamplep315
An example of newtonjason
Flink SQL knows why (12): is it difficult to join streams? (top)
2022-01-27 redis cluster cluster proxy predixy analysis
106. 如何提高 SAP UI5 应用路由 url 的可读性
Convolution emotion analysis task4
Asp.Net Core1.1版本没了project.json,这样来生成跨平台包
MySQL constraints
R language uses the data function to obtain the sample datasets available in the current R environment: obtain all the sample datasets in the datasets package, obtain the datasets of all packages, and
【数据库原理及应用教程(第4版|微课版)陈志泊】【第五章习题】
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter III exercises]
今日睡眠质量记录77分
February 14, 2022, incluxdb survey - mind map
C graphical tutorial (Fourth Edition)_ Chapter 15 interface: interfacesamplep268
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter 6 exercises]