diff options
author | Cosmic Linden <cosmic@lindenlab.com> | 2024-05-06 10:07:02 -0700 |
---|---|---|
committer | Cosmic Linden <cosmic@lindenlab.com> | 2024-05-10 17:42:54 -0700 |
commit | 9441608623a2692263191c254db23765eefa2cef (patch) | |
tree | 2c72d060ba9457ddb49516cfa4cd5b1ff0477f99 /indra/llprimitive/llgltfmaterial.h | |
parent | 155ddf23363f1d5c534c69f50505faf67e51948f (diff) |
secondlife/viewer#907: Local PBR terrain texture transforms
Diffstat (limited to 'indra/llprimitive/llgltfmaterial.h')
-rw-r--r-- | indra/llprimitive/llgltfmaterial.h | 7 |
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); } |