mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Merge pull request #888 from vvv-yeaf/Misc-HDR-And-Levels
Misc aces adjustments
This commit is contained in:
commit
2104a8b458
4 changed files with 13 additions and 12 deletions
|
|
@ -63,8 +63,7 @@ vec3 Tonemap(vec3 x)
|
||||||
//ACES
|
//ACES
|
||||||
if(g_fTonemapMode == 1.0f)
|
if(g_fTonemapMode == 1.0f)
|
||||||
{
|
{
|
||||||
x *= 2.0f; //ACES is crushing our blacks, need to pre-expose!
|
x = ACESFitted(x, whitePoint) * 1.4f; //ACES is crushing our blacks, need to pre-expose!
|
||||||
x = ACESFitted(x, whitePoint);
|
|
||||||
}
|
}
|
||||||
//Filmic Helji
|
//Filmic Helji
|
||||||
if(g_fTonemapMode == 2.0f)
|
if(g_fTonemapMode == 2.0f)
|
||||||
|
|
|
||||||
|
|
@ -52,13 +52,13 @@ uniform float brightnessValue;
|
||||||
uniform float saturationValue;
|
uniform float saturationValue;
|
||||||
uniform float3 colorFilter;
|
uniform float3 colorFilter;
|
||||||
|
|
||||||
|
|
||||||
float3 Tonemap(float3 x)
|
float3 Tonemap(float3 x)
|
||||||
{
|
{
|
||||||
//ACES
|
//ACES
|
||||||
if(g_fTonemapMode == 1.0f)
|
if(g_fTonemapMode == 1.0f)
|
||||||
{
|
{
|
||||||
x *= 2.0; //ACES is crushing our blacks, need to pre-expose!
|
x = ACESFitted(x, whitePoint) * 1.4f; //ACES is crushing our blacks, need to pre-expose!
|
||||||
x = ACESFitted(x, whitePoint);
|
|
||||||
}
|
}
|
||||||
//Filmic Helji
|
//Filmic Helji
|
||||||
if(g_fTonemapMode == 2.0f)
|
if(g_fTonemapMode == 2.0f)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
originalFilePath="C:/dev/T3D/PRs/MiscFixes20220525/Templates/BaseGame/game/data/Prototyping/Materials/FloorGray.png">
|
originalFilePath="C:/dev/T3D/PRs/MiscFixes20220525/Templates/BaseGame/game/data/Prototyping/Materials/FloorGray.png">
|
||||||
<Material
|
<Material
|
||||||
Name="FloorGray"
|
Name="FloorGray"
|
||||||
mapTo="FloorGray">
|
mapTo="FloorGray"
|
||||||
|
originalAssetName="FloorGray">
|
||||||
<Material.Stages>
|
<Material.Stages>
|
||||||
<Stages_beginarray
|
<Stages_beginarray
|
||||||
DiffuseMapAsset="Prototyping:FloorGray_ALBEDO"/>
|
DiffuseMapAsset="Prototyping:FloorGray_ALBEDO"/>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
originalFilePath="C:/dev/T3D/PRs/MiscFixes20220525/Templates/BaseGame/game/data/Prototyping/Materials/WallOrange.png">
|
originalFilePath="C:/dev/T3D/PRs/MiscFixes20220525/Templates/BaseGame/game/data/Prototyping/Materials/WallOrange.png">
|
||||||
<Material
|
<Material
|
||||||
Name="WallOrange"
|
Name="WallOrange"
|
||||||
mapTo="WallOrange">
|
mapTo="WallOrange"
|
||||||
|
originalAssetName="WallOrange">
|
||||||
<Material.Stages>
|
<Material.Stages>
|
||||||
<Stages_beginarray
|
<Stages_beginarray
|
||||||
DiffuseMapAsset="Prototyping:WallOrange_ALBEDO"/>
|
DiffuseMapAsset="Prototyping:WallOrange_ALBEDO"/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue