From f907709e31f99644144527819cf7995b83030ef6 Mon Sep 17 00:00:00 2001 From: Yue Liang <52111314ly@gmail.com> Date: Tue, 21 May 2019 21:49:06 +0800 Subject: [PATCH] fixup shader in mac --- Assets/Shaders/Chapter12/Chapter12-EdgeDetection.shader | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Shaders/Chapter12/Chapter12-EdgeDetection.shader b/Assets/Shaders/Chapter12/Chapter12-EdgeDetection.shader index dc919dee..651ec196 100644 --- a/Assets/Shaders/Chapter12/Chapter12-EdgeDetection.shader +++ b/Assets/Shaders/Chapter12/Chapter12-EdgeDetection.shader @@ -51,10 +51,10 @@ Shader "Unity Shaders Book/Chapter 12/Edge Detection" { } half Sobel(v2f i) { - const half Gx[9] = {-1, 0, 1, + half Gx[9] = {-1, 0, 1, -2, 0, 2, -1, 0, 1}; - const half Gy[9] = {-1, -2, -1, + half Gy[9] = {-1, -2, -1, 0, 0, 0, 1, 2, 1};