Skip to main content
2 votes
Accepted

Calculating surface normal numerically

You should use the Sobel opererator, which is a type of convolution filter. A 3x3 pixel convolution would work fine, but you need to do it twice: once for horizontal edges, then once for vertical ...
Bram's user avatar
  • 3,734

Only top scored, non community-wiki answers of a minimum length are eligible