summaryrefslogtreecommitdiff
path: root/indra/llprimitive/llgltfmaterial.h
diff options
context:
space:
mode:
authorCosmic Linden <cosmic@lindenlab.com>2024-05-06 10:07:02 -0700
committerCosmic Linden <cosmic@lindenlab.com>2024-05-10 17:42:54 -0700
commit9441608623a2692263191c254db23765eefa2cef (patch)
tree2c72d060ba9457ddb49516cfa4cd5b1ff0477f99 /indra/llprimitive/llgltfmaterial.h
parent155ddf23363f1d5c534c69f50505faf67e51948f (diff)
secondlife/viewer#907: Local PBR terrain texture transforms
Diffstat (limited to 'indra/llprimitive/llgltfmaterial.h')
-rw-r--r--indra/llprimitive/llgltfmaterial.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llprimitive/llgltfmaterial.h b/indra/llprimitive/llgltfmaterial.h
index 90f1ecfa8f..7888ba3b05 100644
--- a/indra/llprimitive/llgltfmaterial.h
+++ b/indra/llprimitive/llgltfmaterial.h
@@ -68,7 +68,12 @@ public:
LLVector2 mScale = { 1.f, 1.f };
F32 mRotation = 0.f;
- void getPacked(F32 (&packed)[8]) const;
+ static const size_t PACK_SIZE = 8;
+ static const size_t PACK_TIGHT_SIZE = 5;
+ using Pack = F32[PACK_SIZE];
+ using PackTight = F32[PACK_TIGHT_SIZE];
+ void getPacked(Pack& packed) const;
+ void getPackedTight(PackTight& packed) const;
bool operator==(const TextureTransform& other) const;
bool operator!=(const TextureTransform& other) const { return !(*this == other); }