diff options
author | Cosmic Linden <cosmic@lindenlab.com> | 2024-05-15 14:52:47 -0700 |
---|---|---|
committer | Cosmic Linden <cosmic@lindenlab.com> | 2024-05-15 14:52:47 -0700 |
commit | 28563eb8fe76c723aa583f72a34cb5d44998fb3d (patch) | |
tree | 6058899f885a537c58a07ab0caac865e15c7fddb /indra/newview/app_settings/shaders | |
parent | 904f5b2ac32b0c7ab35ec1c56fb1824642d8f296 (diff) |
secondlife/viewer#1474: Fix broken shader compilation
Diffstat (limited to 'indra/newview/app_settings/shaders')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/pbrterrainF.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/pbrterrainF.glsl b/indra/newview/app_settings/shaders/class1/deferred/pbrterrainF.glsl index f57d7eb7eb..2efd50a46a 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/pbrterrainF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/pbrterrainF.glsl @@ -195,18 +195,18 @@ void main() PBRMix mix = init_pbr_mix(); PBRMix mix2; + TerrainCoord terrain_texcoord; switch (tm.type & MIX_X) { case MIX_X: #if TERRAIN_PLANAR_TEXTURE_SAMPLE_COUNT == 3 - TerrainCoord terrain_texcoord; terrain_texcoord[0].xy = vary_coords[0].xy; terrain_texcoord[0].zw = vary_coords[0].zw; terrain_texcoord[1].xy = vary_coords[1].xy; terrain_texcoord[1].zw = vary_coords[1].zw; terrain_texcoord[2].xy = vary_coords[2].xy; #elif TERRAIN_PLANAR_TEXTURE_SAMPLE_COUNT == 1 - TerrainCoord terrain_texcoord = vary_coords[0].xy; + terrain_texcoord = vary_coords[0].xy; #endif mix2 = terrain_sample_and_multiply_pbr( terrain_texcoord |