diff options
author | cosmic-linden <111533034+cosmic-linden@users.noreply.github.com> | 2024-06-04 09:03:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-04 09:03:27 -0700 |
commit | b97ee5df134588693cdfeb0b988a33eeafbf857a (patch) | |
tree | 9d9ed0fe0526a5130e2100c4c4ff506099d860b5 /indra | |
parent | 01c82642ac01342114f41f2428890042c3040c9b (diff) | |
parent | 83f9885d73a7ffb3c87ae29bcad6b01d0530eeb4 (diff) |
Merge pull request #1626 from secondlife/1614-pbr-materials-exhibit-striationmoiré-patterns-in-specular-highlights
1614 pbr materials exhibit striationmoiré patterns in specular highlights
Diffstat (limited to 'indra')
-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; } |