Skip to content
Open
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
4 changes: 2 additions & 2 deletions Assets/Shaders/Chapter12/Chapter12-EdgeDetection.shader
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down