Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 1dfb857

Browse files
committed
Micro-optimization for DoF on PS4
1 parent 72f000e commit 1dfb857

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PostProcessing/Shaders/Builtins/DepthOfField.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ half4 FragTempFilter(VaryingsDefault i) : SV_Target
7171

7272
// Neighborhood clamping
7373
half cocMin = closest.z;
74-
half cocMax = max(max(max(max(coc0, coc1), coc2), coc3), coc4); // TODO: Switch to Max3
74+
half cocMax = Max3(Max3(coc0, coc1, coc2), coc3, coc4);
7575
cocHis = clamp(cocHis, cocMin, cocMax);
7676

7777
// Blend with the history

0 commit comments

Comments
 (0)