diff options
author | cosmic-linden <111533034+cosmic-linden@users.noreply.github.com> | 2024-03-06 13:46:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-06 13:46:16 -0800 |
commit | 4195e355933fdba9c34040688e837e856763b81a (patch) | |
tree | a3894b2beaf4d4bb265d502f32a2a196bb07d9fc /indra/newview/llvlcomposition.h | |
parent | 89b48796271f48c8b89e7981095bed4acf825a0f (diff) | |
parent | 0cf4141d7dddfcaf5399bc99306a7426b561953c (diff) |
Merge pull request #927 from secondlife/v-712
PBR Terrain UI second pass
Diffstat (limited to 'indra/newview/llvlcomposition.h')
-rw-r--r-- | indra/newview/llvlcomposition.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/indra/newview/llvlcomposition.h b/indra/newview/llvlcomposition.h index 73bfca6ed4..7397ff1e8d 100644 --- a/indra/newview/llvlcomposition.h +++ b/indra/newview/llvlcomposition.h @@ -58,7 +58,7 @@ public: BOOL generateMaterials(); - LLUUID getDetailAssetID(S32 asset); + virtual LLUUID getDetailAssetID(S32 asset); virtual void setDetailAssetID(S32 asset, const LLUUID& id); Type getMaterialType(); bool texturesReady(bool boost, bool strict); @@ -82,6 +82,11 @@ extern LLTerrainMaterials gLocalTerrainMaterials; class LLVLComposition : public LLTerrainMaterials, public LLViewerLayer { public: + // Heights map into textures (or materials) as 0-1 = first, 1-2 = second, etc. + // So we need to compress heights into this range. + static const S32 ASSET_COUNT = 4; + static const LLUUID (&getDefaultTextures())[ASSET_COUNT]; + LLVLComposition(LLSurface *surfacep, const U32 width, const F32 scale); /*virtual*/ ~LLVLComposition(); @@ -93,10 +98,6 @@ public: // Generate texture from composition values. BOOL generateMinimapTileLand(const F32 x, const F32 y, const F32 width, const F32 height); - // Heights map into textures (or materials) as 0-1 = first, 1-2 = second, etc. - // So we need to compress heights into this range. - static const S32 ASSET_COUNT = 4; - // Use these as indeces ito the get/setters below that use 'corner' enum ECorner { |