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

Commit 839b431

Browse files
committed
Changed focus plane debug view colors
1 parent 50fb47f commit 839b431

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PostProcessing/Resources/Shaders/Uber.shader

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ Shader "Hidden/Post FX/Uber Shader"
195195
float coc = (depth - _DepthOfFieldParams.x) * _DepthOfFieldParams.y / depth;
196196
coc *= 80;
197197

198-
// Visualize CoC (gray -> red -> white)
199-
half3 rgb = lerp(half3(1, 0, 0), half3(0.5, 0.5, 0.5), saturate(-coc));
200-
rgb = lerp(rgb, half3(1, 1, 1), saturate(coc));
198+
// Visualize CoC (white -> red -> gray)
199+
half3 rgb = lerp(half3(1, 0, 0), half3(1.0, 1.0, 1.0), saturate(-coc));
200+
rgb = lerp(rgb, half3(0.4, 0.4, 0.4), saturate(coc));
201201

202202
// Black and white image overlay
203203
rgb *= AcesLuminance(color) + 0.5;

0 commit comments

Comments
 (0)