diff options
author | JJ Linden <jj@lindenlab.com> | 2013-09-30 15:41:51 -0700 |
---|---|---|
committer | JJ Linden <jj@lindenlab.com> | 2013-09-30 15:41:51 -0700 |
commit | a6c20ae524610de2f8681cff8353d062a69b923e (patch) | |
tree | 929e4a253e4b83ca7e07543916e709d50fdf855e /indra/newview/app_settings/shaders/class1/deferred/blurLightF.glsl | |
parent | 6c13c4dd552a05cf055a90bdd90937de9f3903a5 (diff) | |
parent | ad777b46d0fe5d790e43efb1771e9f64f3ad3dfb (diff) |
merging
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/blurLightF.glsl')
-rwxr-xr-x | indra/newview/app_settings/shaders/class1/deferred/blurLightF.glsl | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/blurLightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/blurLightF.glsl index 968a5f6b3d..a4f54dff70 100755 --- a/indra/newview/app_settings/shaders/class1/deferred/blurLightF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/blurLightF.glsl @@ -59,22 +59,6 @@ vec4 getPosition(vec2 pos_screen) return pos; } -#ifdef SINGLE_FP_ONLY -vec2 encode_normal(vec3 n) -{ - vec2 sn; - sn.xy = (n.xy * vec2(0.5f,0.5f)) + vec2(0.5f,0.5f); - return sn; -} - -vec3 decode_normal (vec2 enc) -{ - vec3 n; - n.xy = (enc.xy * vec2(2.0f,2.0f)) - vec2(1.0f,1.0f); - n.z = sqrt(1.0f - dot(n.xy,n.xy)); - return n; -} -#else vec2 encode_normal(vec3 n) { float f = sqrt(8 * n.z + 8); @@ -91,7 +75,6 @@ vec3 decode_normal (vec2 enc) n.z = 1-f/2; return n; } -#endif void main() { |