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
Expand Up @@ -205,10 +205,10 @@ Shader "Hidden/HDRP/TemporalAA"

CTYPE finalColor;
#if PERCEPTUAL_SPACE_ONLY_END
finalColor.xyz = lerp(ReinhardToneMap(history), ReinhardToneMap(filteredColor), blendFactor);
finalColor = InverseReinhardToneMap(finalColor);
finalColor.xyz = lerp(ReinhardToneMap(history).xyz, ReinhardToneMap(filteredColor).xyz, blendFactor);
finalColor.xyz = InverseReinhardToneMap(finalColor).xyz;
#else
finalColor.xyz = lerp(history, filteredColor, blendFactor);
finalColor.xyz = lerp(history.xyz, filteredColor.xyz, blendFactor);
finalColor.xyz *= PerceptualInvWeight(finalColor);
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ CTYPE DirectClipToAABB(CTYPE history, CTYPE minimum, CTYPE maximum)

// This is actually `distance`, however the keyword is reserved
CTYPE offset = history - center;
float3 v_unit = offset.xyz / extents;
float3 v_unit = offset.xyz / extents.xyz;
float3 absUnit = abs(v_unit);
float maxUnit = Max3(absUnit.x, absUnit.y, absUnit.z);

Expand Down