From 9ba9a842adc43453b6d0e08f19178bb95b3c09e8 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 1 Feb 2005 02:45:15 +0000 Subject: [PATCH] add TextureMatrixScale vertex attribute; disable X texture animation with 1, Y with 2 --- stepmania/src/RageModelGeometry.cpp | 4 ++++ stepmania/src/RageTypes.h | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageModelGeometry.cpp b/stepmania/src/RageModelGeometry.cpp index 70944505fe..3183728c55 100644 --- a/stepmania/src/RageModelGeometry.cpp +++ b/stepmania/src/RageModelGeometry.cpp @@ -183,6 +183,10 @@ void RageModelGeometry::LoadMilkshapeAscii( const CString& _sPath, bool bNeedsNo //Ym2413a Added: End // vertex.nFlags = nFlags; + if( nFlags & 1 ) + v.TextureMatrixScale.x = 0; + if( nFlags & 2 ) + v.TextureMatrixScale.y = 0; v.bone = (uint8_t) nIndex; RageVec3AddToBounds( v.p, m_vMins, m_vMaxs ); } diff --git a/stepmania/src/RageTypes.h b/stepmania/src/RageTypes.h index 05cc5d43d0..3757d21433 100644 --- a/stepmania/src/RageTypes.h +++ b/stepmania/src/RageTypes.h @@ -237,12 +237,14 @@ struct RageModelVertex // doesn't have color. Relies on material color RageModelVertex(): p(0,0,0), n(0,0,0), - t(0,0) + t(0,0), + TextureMatrixScale(1,1) { } RageVector3 p; // position RageVector3 n; // normal RageVector2 t; // texture coordinates int8_t bone; + RageVector2 TextureMatrixScale; // usually 1,1 };