diff options
author | Cosmic Linden <cosmic@lindenlab.com> | 2024-05-15 15:15:34 -0700 |
---|---|---|
committer | Cosmic Linden <cosmic@lindenlab.com> | 2024-05-15 15:15:34 -0700 |
commit | 6e501c5a1ae956e13d3ba3ba05ea8954d25bbc55 (patch) | |
tree | 935c476e5e0b3858da88b1f6045a3eb3683c28bf /indra/newview/app_settings/shaders | |
parent | 28563eb8fe76c723aa583f72a34cb5d44998fb3d (diff) |
secondlife/viewer#1474: Remove small texture offset from PBR terrain
Diffstat (limited to 'indra/newview/app_settings/shaders')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/textureUtilV.glsl | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/textureUtilV.glsl b/indra/newview/app_settings/shaders/class1/deferred/textureUtilV.glsl index baf4010fa7..bf5d106dab 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/textureUtilV.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/textureUtilV.glsl @@ -84,11 +84,9 @@ vec2 terrain_texture_transform(vec2 vertex_texcoord, vec4[2] khr_gltf_transform) { vec2 texcoord = vertex_texcoord; - texcoord.y = 1.0 - texcoord.y; - //texcoord.y = -texcoord.y; + texcoord.y = -texcoord.y; texcoord = khr_texture_transform(texcoord, khr_gltf_transform[0].xy, khr_gltf_transform[0].z, khr_gltf_transform[1].xy); - texcoord.y = 1.0 - texcoord.y; - //texcoord.y = -texcoord.y; + texcoord.y = -texcoord.y; return texcoord; } |