summaryrefslogtreecommitdiff
path: root/indra/newview/llvosurfacepatch.h
diff options
context:
space:
mode:
authorCosmic Linden <cosmic@lindenlab.com>2023-10-13 09:57:17 -0700
committerCosmic Linden <cosmic@lindenlab.com>2023-10-13 09:57:17 -0700
commit474923e3cb29df35e8807006ad16861eb1dc24d0 (patch)
tree294376def156ed2ea8acd4c160db7f58cf501008 /indra/newview/llvosurfacepatch.h
parent3553fec2084b8be3f3de86cec293c1e363c1388e (diff)
DRTVWR-592: (WIP) Add code for generating terrain tangents (not yet used)
Diffstat (limited to 'indra/newview/llvosurfacepatch.h')
-rw-r--r--indra/newview/llvosurfacepatch.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/indra/newview/llvosurfacepatch.h b/indra/newview/llvosurfacepatch.h
index aed67162d1..7d0f649dea 100644
--- a/indra/newview/llvosurfacepatch.h
+++ b/indra/newview/llvosurfacepatch.h
@@ -63,11 +63,12 @@ public:
/*virtual*/ BOOL updateGeometry(LLDrawable *drawable);
/*virtual*/ BOOL updateLOD();
/*virtual*/ void updateFaceSize(S32 idx);
- void getGeometry(LLStrider<LLVector3> &verticesp,
- LLStrider<LLVector3> &normalsp,
- LLStrider<LLVector2> &texCoords0p,
- LLStrider<LLVector2> &texCoords1p,
- LLStrider<U16> &indicesp);
+ void getTerrainGeometry(LLStrider<LLVector3> &verticesp,
+ LLStrider<LLVector3> &normalsp,
+ LLStrider<LLVector4a> &tangentsp,
+ LLStrider<LLVector2> &texCoords0p,
+ LLStrider<LLVector2> &texCoords1p,
+ LLStrider<U16> &indicesp);
/*virtual*/ void updateTextures();
/*virtual*/ void setPixelAreaAndAngle(LLAgent &agent); // generate accurate apparent angle and area
@@ -136,6 +137,11 @@ protected:
LLStrider<LLVector2> &texCoords1p,
LLStrider<U16> &indicesp,
U32 &index_offset);
+ void genTerrainTangents(LLFace *facep,
+ LLStrider<LLVector3> &verticesp,
+ LLStrider<LLVector3> &normalsp,
+ LLStrider<LLVector4a> &tangentsp,
+ LLStrider<LLVector2> &texCoords0p);
};
#endif // LL_VOSURFACEPATCH_H