diff options
author | Jonathan "Geenz" Goodman <geenz@geenzo.com> | 2023-09-25 12:18:02 -0700 |
---|---|---|
committer | Jonathan "Geenz" Goodman <geenz@geenzo.com> | 2023-09-25 12:18:02 -0700 |
commit | d092f3e1dc1c322a0c3c1e55b9b6e1792d6b0f59 (patch) | |
tree | f954603aa0d9ea64419c71e4cac05972519dea2b /indra/newview/llface.h | |
parent | 73870cb0b41144dc9932947d13d6aa27952d8849 (diff) |
Get the average normal of the face.
DRTVWR-583
Diffstat (limited to 'indra/newview/llface.h')
-rw-r--r-- | indra/newview/llface.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llface.h b/indra/newview/llface.h index eb3b47d6d6..d4f4313073 100644 --- a/indra/newview/llface.h +++ b/indra/newview/llface.h @@ -176,6 +176,8 @@ public: LLStrider<LLVector3> &normals, LLStrider<LLVector2> &texCoords, LLStrider<U16> &indices); + + LLVector3 getAverageNormal(); S32 getColors(LLStrider<LLColor4U> &colors); S32 getIndices(LLStrider<U16> &indices); @@ -278,6 +280,9 @@ private: U32 mIndicesCount; U32 mIndicesIndex; // index into mVertexBuffer's index array S32 mIndexInTex[LLRender::NUM_TEXTURE_CHANNELS]; + + LLVector3 mAverageNormal; + bool mHasAverageNormal; LLXformMatrix* mXform; |