每个人都有自己的知识体系。
Toggle navigation
Home
随笔
C#/.Net
树莓派 / Raspberry
皓月汉化组
Beego
Golang
OxideMod
apache
haproxy
windows
Java
Objective-C
日语/罗马音歌词/日语常识
MongoDB
python
电学
公告
Minecraft服务器-公告
NanoPi
C4D (CINEMA 4D)
生活
推流/m3u8/rtmp/rtsp
Unity3d
ffmpeg
数据结构
区块链
tarui
UnityForPSVita
About Me
Archives
Tags
代码动态控制PostProcessVolume景深效果(DepthOfField)
2022-10-14 17:52:46
192
0
0
akiragatsu
public class ctrl : MonoBehaviour { [SerializeField] PostProcessVolume m_postpVol; [SerializeField] Camera m_Cam; DepthOfField m_Df; void Awake() { m_postpVol.profile.TryGetSettings(out m_Df); } //焦距设置为摄像机和玩家的位置 void Update() { m_Df.focusDistance.value = Vector3.Distance(Player.position, m_Cam.transform.position); } }
Pre:
皓月BF3 COOP双人联机使用教程
Next:
皓月的收藏记录 (持续更新……)
0
likes
192
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Submit
Sign in
to leave a comment.
No Leanote account?
Sign up now.
0
comments
More...
Table of content
No Leanote account? Sign up now.