AUTHOR: JP.LEE

[email protected]

JP Lee is creating Game | Patreon

UE4_ACES.mp4

<aside> 💡 The Unity version used for training is 2021.1.18, and it was written based on the URP 11 version. 用于训练的Unity版本为2021.1.18,基于URP 11版本编写。

</aside>

We will try to port the ACES tone mapping used in UE4 to the Unity engine URP. Through this process, you will be able to flexibly add various tone mapping logic in the future. You must read it carefully.

我们将尝试将 UE4 中使用的 ACES 色调映射移植到 Unity 引擎 URP。 通过这个过程,你以后就可以灵活的添加各种色调映射逻辑了。 你必须仔细阅读。

Untitled

We will add it in the same format as above. 我们将以与上述相同的格式添加它。


Adding tone mapping mode.

Add Enum type. 添加枚举类型。

Tonemapping.cs

public enum TonemappingMode
    {
        None,
        Neutral, // Neutral tonemapper
        ACES,    // ACES Filmic reference tonemapper (custom approximation)
        Custom,
        /////////////////UE4_ACES_BEGIN///////////////
        UE4_ACES,
       /////////////////UE4_ACES_END/////////////////
    }

Added UE4 ACES. 添加了 UE4 ACES。

One more mode has been added. 添加了另一种模式。

One more mode has been added. 添加了另一种模式。

Now let's add some options. 现在让我们添加一些选项。