I'm trying to implement this shader I saw here, but it is giving me problems.
Here is the lookup texture I generated: link
And when I generate my lighting value by looking up (N.L, 1.0) I expect to get the equivelent of normal lambert diffuse, but instead I get this: link
It doesn't even come close to lighting the entire hemisphere, and I can't figure out why.






