snogglethorpe / snogray

Snogray renderer

Home Page:http://www.nongnu.org/snogray

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add PBRT-style "Normal" type ("Norm"?)

snogglethorpe opened this issue · comments

PBRT has a distinct type for normal-vectors, which can make some code cleaner.

It's basically the same as a standard vector, but in some cases uses different operations, e.g., when transformed, it uses a "normal transform" (the transpose of the inverse of the actual transform).

Not sure the degree to which it should be interchangeable with Vec...