aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvlcomposition.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:42 -0500
committerJacek Antonelli2008-08-15 23:45:42 -0500
commitce28e056c20bf2723f565bbf464b87781ec248a2 (patch)
treeef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llvlcomposition.cpp
parentSecond Life viewer sources 1.19.1.4b (diff)
downloadmeta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/newview/llvlcomposition.cpp')
-rw-r--r--linden/indra/newview/llvlcomposition.cpp22
1 files changed, 6 insertions, 16 deletions
diff --git a/linden/indra/newview/llvlcomposition.cpp b/linden/indra/newview/llvlcomposition.cpp
index 904c2b9..b60b07e 100644
--- a/linden/indra/newview/llvlcomposition.cpp
+++ b/linden/indra/newview/llvlcomposition.cpp
@@ -32,6 +32,8 @@
32#include "llviewerprecompiledheaders.h" 32#include "llviewerprecompiledheaders.h"
33 33
34#include "llvlcomposition.h" 34#include "llvlcomposition.h"
35
36#include "imageids.h"
35#include "llerror.h" 37#include "llerror.h"
36#include "v3math.h" 38#include "v3math.h"
37#include "llsurface.h" 39#include "llsurface.h"
@@ -69,22 +71,10 @@ LLVLComposition::LLVLComposition(LLSurface *surfacep, const U32 width, const F32
69 mSurfacep = surfacep; 71 mSurfacep = surfacep;
70 72
71 // Load Terrain Textures - Original ones 73 // Load Terrain Textures - Original ones
72 LLUUID id; 74 setDetailTextureID(0, TERRAIN_DIRT_DETAIL);
73 // Dirt 75 setDetailTextureID(1, TERRAIN_GRASS_DETAIL);
74 id.set( gViewerArt.getString("terrain_dirt_detail.tga") ); 76 setDetailTextureID(2, TERRAIN_MOUNTAIN_DETAIL);
75 setDetailTextureID(0, id); 77 setDetailTextureID(3, TERRAIN_ROCK_DETAIL);
76
77 // Grass
78 id.set( gViewerArt.getString("terrain_grass_detail.tga") );
79 setDetailTextureID(1, id);
80
81 // Rock mountain
82 id.set( gViewerArt.getString("terrain_mountain_detail.tga") );
83 setDetailTextureID(2, id);
84
85 // Rock face
86 id.set( gViewerArt.getString("terrain_rock_detail.tga") );
87 setDetailTextureID(3, id);
88 78
89 // Initialize the texture matrix to defaults. 79 // Initialize the texture matrix to defaults.
90 for (S32 i = 0; i < CORNER_COUNT; ++i) 80 for (S32 i = 0; i < CORNER_COUNT; ++i)