diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-05-06 13:53:52 +0100 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-05-06 13:53:52 +0100 |
commit | 33c4d124ce60b2999efb73fc17dc996cb3c2a103 (patch) | |
tree | b0e5ac80e05daca97fb2f47cbdcb27e831b021a5 /indra/newview/app_settings/shaders/class1 | |
parent | 761b346e8d6fcb9c052b5cfabc9a6be43b5775fe (diff) |
EXT-6912 FIXED Deferred Rendering - shiny objects look like a projection instead of a reflection
Disable screen-space shiny while I chew on it some more.
(transplanted from bde80560117295f6b3e61f9b47f3bdea826945ca)
Diffstat (limited to 'indra/newview/app_settings/shaders/class1')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl index bf5dd4155c..ef61491826 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl @@ -286,6 +286,7 @@ void main() float sa = dot(refnormpersp, vary_light.xyz); vec3 dumbshiny = vary_SunlitColor*scol_ambocc.r*texture2D(lightFunc, vec2(sa, spec.a)).a; + /* // screen-space cheap fakey reflection map // vec3 refnorm = normalize(reflect(vec3(0,0,-1), norm.xyz)); @@ -325,6 +326,8 @@ void main() vec3 refprod = vary_SunlitColor * refcol.rgb * refmod; vec3 ssshiny = (refprod * spec.a); ssshiny *= 0.3; // dampen it even more + */ + vec3 ssshiny = vec3(0,0,0); // add the two types of shiny together col += (ssshiny + dumbshiny) * spec.rgb; |