summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/environment/encodeNormF.glsl
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2020-09-28 22:39:06 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2020-09-28 22:39:06 +0300
commit83822fd1992140b85966ca613b026c4bc6c38005 (patch)
tree8dadfcd76a9c27193e8009d1d361e91e41cf7e71 /indra/newview/app_settings/shaders/class1/environment/encodeNormF.glsl
parent652e8459001e052edd6eeef0b919d4d68c8daa58 (diff)
parentbac6652cdcd2d8333df04c3ebd3a6a7b752328b3 (diff)
Merge branch 'master' into DRTVWR-516-maint
# Conflicts: # indra/newview/llvocache.cpp
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/environment/encodeNormF.glsl')
-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);