美文网首页Unity3d进阶
Unity官方教程-Creating Believable Vi

Unity官方教程-Creating Believable Vi

作者: Angeladaddy | 来源:发表于2018-07-19 23:50 被阅读8次

2. 渲染设置

  • Linear rendering mode 线性渲染模式
    为了获得正确的光照和shading效果,我们首先应该切换到此模式:Edit > Project Settings > Player打开Player Settings > Other Settings > Rendering设置Color Space to Linear. Linear和Gamma模式的区别

    image.png
    其实我们可以不用管那么多,只需要记住:如果想获得好的效果,记得切换到线性渲染模式Linear mode。
  • Rendering mode 渲染模式
    为了获得好的效果,请使用Deferred rendering mode。可在两个地方设置:1.主相机 2. Graphic Settings > Rendering Path or set in Camera > Rendering Path;一般在主相机上设置:

    image.png
    Deferred rendering mode 可以高效的处理多个动态光源、多个反射探针材质、并且在unity2017+版本中可使用最新的屏幕空间反射( Screen Space Reflection)
  • High Dynamic Range (HDR) 高动态范围
    在实际中,我们的灯光和自发光材质可能会使用>1的光照强度来反映真实情况。这些过强的灯光必须使用tonemapping(接下来的内容将详细讲解这个)来降到一个合适的屏幕范围。开启HDR后,unity就可以正确的处理过强的灯光而不是截断它。

    image.png
  • Tonemapper

    image.png
    Tonemapper 是用来正确处理 HDR的技术,使用它你必须在工程中安装Post Process Stack ,Post Processing Stack Asset Store地址(free)
    安装之后在工程中新建Post-Processing Profile,将它挂在主相机上就能启用了:
    image.png
    启用Image effect后,可在编辑器视图中看到处理后的图像效果:
    image.png
image.png

相关文章

网友评论

    本文标题:Unity官方教程-Creating Believable Vi

    本文链接:https://www.haomeiwen.com/subject/dgbxmftx.html