Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[Info]
Version = 2-0-0
Version = 2-0-1
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ float4 SSSSBlurCS(
float3 color = ColorTexture[coords].rgb;

#if defined(HORIZONTAL)
color.rgb = Color::GammaToLinear(color.rgb);
color.rgb = Color::GammaToTrueLinear(color.rgb);
#endif

float depth = DepthTexture[coords].r;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ cbuffer PerFrameSSS : register(b1)
#else

float sssAmount = MaskTexture[DTid.xy].x;
bool humanProfile = MaskTexture[DTid.xy].y == sssAmount;

float4 color = SSSSBlurCS(DTid.xy, texCoord, float2(0.0, 1.0), sssAmount, humanProfile);
color.rgb = Color::TrueLinearToGamma(color.rgb);
SSSRW[DTid.xy] = float4(color.rgb, 1.0);
if (sssAmount > 0.0) {
bool humanProfile = MaskTexture[DTid.xy].y == sssAmount;

float4 color = SSSSBlurCS(DTid.xy, texCoord, float2(0.0, 1.0), sssAmount, humanProfile);
color.rgb = Color::TrueLinearToGamma(color.rgb);
SSSRW[DTid.xy] = float4(color.rgb, 1.0);
}

#endif
}