News for hackers. Stuff that matters.
Re:The lost art of 3D rendering without shaders by air on Saturday January 21, 2017 @03:38AM (#13449388)
Minor nitpick

"The green and blue colors, z-position, and normal vector are all interpolated in the same manner. (Texture coordinates behave slightly differently because there you’d also need to take the perspective into account.)"

Colors (c), z, and texture coordinates (t) should all be interpolated differently because of perspective. You need to interpolate 1/z, c/z, t/z and for every pixel then do division eg. c/z / 1/z = c

There are no comments on this comment yet.