diff options
author | Cosmic Linden <cosmic@lindenlab.com> | 2023-10-13 10:39:40 -0700 |
---|---|---|
committer | Cosmic Linden <cosmic@lindenlab.com> | 2023-10-13 10:39:40 -0700 |
commit | 3e3a3c1c5262e65df3edf27c4e27a6bbc8d49a01 (patch) | |
tree | 40e02d540764940aee7b02a86d541f29712edce8 /indra/newview/app_settings/shaders/class1/deferred | |
parent | db4bc52829ec041ca0366069d07e942f0d32aacd (diff) |
DRTVWR-592: Fix terrain normal sampling in non-triplanar case
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/pbrterrainUtilF.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/pbrterrainUtilF.glsl b/indra/newview/app_settings/shaders/class1/deferred/pbrterrainUtilF.glsl index a9155cc629..a89bc6f211 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/pbrterrainUtilF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/pbrterrainUtilF.glsl @@ -128,7 +128,7 @@ vec4 terrain_texture(sampler2D tex, TerrainCoord terrain_coord) vec3 terrain_texture_normal(sampler2D tex, TerrainCoord terrain_coord) { - return texture(tex, terrain_coord).xyz; + return texture(tex, terrain_coord).xyz*2.0-1.0; } #endif |