add TextureMatrixScale vertex attribute; disable X texture animation with

1, Y with 2
This commit is contained in:
Glenn Maynard
2005-02-01 02:45:15 +00:00
parent e3cff6e666
commit 9ba9a842ad
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -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 );
}
+3 -1
View File
@@ -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
};