diff options
author | RunitaiLinden <davep@lindenlab.com> | 2024-06-04 10:26:34 -0500 |
---|---|---|
committer | RunitaiLinden <davep@lindenlab.com> | 2024-06-04 10:26:34 -0500 |
commit | 83f9885d73a7ffb3c87ae29bcad6b01d0530eeb4 (patch) | |
tree | 9d9ed0fe0526a5130e2100c4c4ff506099d860b5 /indra/newview/app_settings/shaders | |
parent | 01c82642ac01342114f41f2428890042c3040c9b (diff) |
#1614 Fix for moire pattern in specular highlights. Incidental cleanup.
Diffstat (limited to 'indra/newview/app_settings/shaders')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl b/indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl index 385920f622..01543732d0 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl @@ -143,17 +143,8 @@ vec2 getScreenCoordinate(vec2 screenpos) vec4 getNorm(vec2 screenpos) { - return texture(normalMap, screenpos.xy); -} - -// return packedNormalEnvIntensityFlags since GBUFFER_FLAG_HAS_PBR needs .w -// See: C++: addDeferredAttachments(), GLSL: softenLightF -vec4 getNormalEnvIntensityFlags(vec2 screenpos, out vec3 n, out float envIntensity) -{ vec4 norm = texture(normalMap, screenpos.xy); - n = norm.xyz; - envIntensity = texture(emissiveRect, screenpos.xy).r; - + norm.xyz = normalize(norm.xyz); return norm; } |