DRTVWR-497: Cleanup: Document algorithm name for normal packing/unpacking.

meow-7.2.2
Ptolemy 2020-06-29 12:00:42 -07:00
parent 2805f38074
commit 82882d77c4
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,9 @@
* $/LicenseInfo$
*/
// Lambert Azimuthal Equal-Area projection
// See: https://aras-p.info/texts/CompactNormalStorage.html
// Also see: A_bit_more_deferred_-_CryEngine3.ppt
vec2 encode_normal(vec3 n)
{
float f = sqrt(8 * n.z + 8);