summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2020-06-29 12:00:42 -0700
committerPtolemy <ptolemy@lindenlab.com>2020-06-29 12:00:42 -0700
commit82882d77c41edc3fc3a962ab95ad19fc99604228 (patch)
treebd0bd417a89841e017c09ddc8be9dd25fd6e39fe /indra
parent2805f380743ae56deed97e3ad2c849abd36e7244 (diff)
DRTVWR-497: Cleanup: Document algorithm name for normal packing/unpacking.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/app_settings/shaders/class1/environment/encodeNormF.glsl3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class1/environment/encodeNormF.glsl b/indra/newview/app_settings/shaders/class1/environment/encodeNormF.glsl
index 50e781fa78..6cd2445522 100644
--- a/indra/newview/app_settings/shaders/class1/environment/encodeNormF.glsl
+++ b/indra/newview/app_settings/shaders/class1/environment/encodeNormF.glsl
@@ -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);