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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions com.unity.render-pipelines.high-definition/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Updated Light's shadow layer name in Editor.
- Increased path tracing max samples from 4K to 16K (case 1327729).
- Film grain does not affect the alpha channel.
- Disable TAA sharpening on alpha channel.

## [11.0.0] - 2020-10-21

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#define CTYPE_SWIZZLE xyz
#endif


#if UNITY_REVERSED_Z
#define COMPARE_DEPTH(a, b) step(b, a)
#else
Expand Down Expand Up @@ -49,6 +48,8 @@ float4 Fetch4Array(Texture2DArray tex, uint slot, float2 coords, float2 offset,
// Options
// ---------------------------------------------------

#define SHARPEN_ALPHA 0 // switch to 1 if you want to enable TAA sharpenning on alpha channel

// History sampling options
#define BILINEAR 0
#define BICUBIC_5TAP 1
Expand Down Expand Up @@ -717,5 +718,11 @@ CTYPE SharpenColor(NeighbourhoodSamples samples, CTYPE color, float sharpenStren
linearC = linearC + (linearC - linearAvg) * sharpenStrength * 3;
linearC = clamp(linearC, 0, CLAMP_MAX);
#endif
return linearC * PerceptualWeight(linearC);
CTYPE outputSharpened = linearC * PerceptualWeight(linearC);

#if (SHARPEN_ALPHA == 0 && defined(ENABLE_ALPHA))
outputSharpened.a = color.a;
#endif

return outputSharpened;
}