当前位置:网站首页>UE4 后期处理体积 (角色受到伤害场景颜色变淡案例)
UE4 后期处理体积 (角色受到伤害场景颜色变淡案例)
2022-08-05 03:29:00 【Zhichao_97】
在上一篇博客中(UE4 第一人称角色模板 添加生命值和调试伤害)已经完成了角色生命值减少的功能,本文在此基础上通过后期处理组件来继续增加场景颜色随着生命值减少而变淡的效果。
效果:
在按下p键来减少生命值的同时,场景也随之失去颜色

步骤:
1.打开第一人称角色蓝图,点击添加组件-》后期处理组件

2.点击 编译,选中后期处理组件,设置优先级为1,这样它的优先级就会高于关卡中的体积

3.混合权重设为0,(混合权重表示在场景中的应用比例,0表示在默认情况下没有启用)

4.将饱和度设置为0,这样场景就会失去所有颜色

接下来使用混合权重来更新后期处理组件在场景中的应用比例
5.找到减少生命值的部分,如下图。接下来,我们希望在更新生命值的时候也更新后期处理体积和混合权重

6.将后期处理组件拖入

7.从后期处理组件中引出设置混合权重节点,这个节点也需要一个0~1的值

8.通过 已限制映射范围 来将生命值0~100的范围映射至0~1,生命值为100时我们希望后期处理组件在场景中的应用比例为0,因此要让混合权重的值为0,因此In Range A=100,对应的Out Range A=0;同样的道理,当生命值为0时,混合权重的值为1。

我感觉生命值低于70时再开始显示后期处理体积比较合适

边栏推荐
- 大佬们,我注意到mysql cdc connector有参数scan.incremental.sna
- How to find all fields with empty data in sql
- High Item 02 Information System Project Management Fundamentals
- Use Unity to publish APP to Hololens2 without pit tutorial
- 队列题目:最近的请求次数
- Hard power or soft power, which is more important to testers?
- presto启动成功后出现2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer
- 从“能用”到“好用” 国产软件自主可控持续推进
- 银行数据采集,数据补录与指标管理3大问题如何解决?
- Queue Topic: Recent Requests
猜你喜欢

【Mysql进阶优化篇02】索引失效的10种情况及原理

基于生长的棋盘格角点检测方法

Never put off till tomorrow what you can put - house lease management system based on the SSM

结构体初解

Shell script: for loop and the while loop

On governance and innovation, the 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum came to a successful conclusion

21天学习挑战赛(2)图解设备树的使用

2022高处安装、维护、拆除考试题模拟考试题库及在线模拟考试

Use SuperMap iDesktopX data migration tool to migrate map documents and symbols

【 genius_platform software platform development 】 : seventy-six vs the preprocessor definitions written cow force!!!!!!!!!!(in the other groups conding personnel told so cow force configuration to can
随机推荐
Web3.0 Dapps——通往未来金融世界的道路
2022.8.4-----leetcode.1403
数学-求和符号的性质
【Mysql进阶优化篇02】索引失效的10种情况及原理
[TA-Frost Wolf_may-"Hundred Talents Project"] Graphics 4.3 Real-time Shadow Introduction
Web3.0 Dapps - the road to the future financial world
Is your data safe in this hyperconnected world?
Industry Status?Why do Internet companies prefer to spend 20k to recruit people rather than raise their salary to retain old employees~
2022-08-04 The sixth group, hidden from spring, study notes
基于生长的棋盘格角点检测方法
Acid (ACID) Base (BASE) Principles for Database Design
用CH341A烧录外挂Flash (W25Q16JV)
leetcode-每日一题1403. 非递增顺序的最小子序列(贪心)
Fifteen. Actual combat - MySQL database building table character set and collation
2022 High-level installation, maintenance, and removal of exam questions mock exam question bank and online mock exam
阿里本地生活单季营收106亿,大文娱营收72亿,菜鸟营收121亿
银行数据采集,数据补录与指标管理3大问题如何解决?
ffmpeg 枚举decoders, encoders 分析
[Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]
How to simulate the background API call scene, very detailed!