_Time float4
Time (t/20, t, t*2, t*3), use to animate things inside the shaders.
_SinTime float4
Sine of time: (t/8, t/4, t/2, t).
_CosTime float4
Cosine of time: (t/8, t/4, t/2, t).
unity_DeltaTime float4
Delta time: (dt, 1/dt, smoothDt, 1/smoothDt).
_Time.x = time / 20
_Time.y = time
_Time.z = time * 2
_Time.w = time * 3
Shader 時間
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
Unity3D 基礎函數 使用說明
qq_15324731
2018-08-27 19:19:09
Unity3D圖像後處理特效——Grayscale image effect
Amazonzx
2018-08-27 19:11:31
Unity3D遊戲製作(二)——如何渲染3D角色
Amazonzx
2018-08-27 19:11:31
Unity3D圖像後處理特效——Screen Space Ambient Occlusion (SSAO) image effect
Amazonzx
2018-08-27 19:11:31
Unity3D圖像後處理特效——Vortex image effect
Amazonzx
2018-08-27 19:11:31
Unity3D圖像後處理特效——Contrast Stretch image effect
Amazonzx
2018-08-27 19:11:30
Unity3D遊戲製作(三)——移動平臺上的角色陰影製作
Amazonzx
2018-08-27 19:11:30
Unity3D遊戲製作(四)——Asset Server搭建
Amazonzx
2018-08-27 19:11:30
Unity3D圖像後處理特效——Bloom and Lens Flares
Amazonzx
2018-08-27 19:11:29
Unity3D圖像後處理特效——Glow image effect
Amazonzx
2018-08-27 19:11:29
Unity3D圖像後處理特效——Color Correction image effect
Amazonzx
2018-08-27 19:11:29
Unity3D圖像後處理特效——Twirl image effect
Amazonzx
2018-08-27 19:11:29
Unity3D圖像後處理特效——Sepia Tone image effect
Amazonzx
2018-08-27 19:11:29
Unity3D圖像後處理特效——Blur image effect
Amazonzx
2018-08-27 19:11:29