add TextureMatrixScale vertex attribute; disable X texture animation with
1, Y with 2
This commit is contained in:
@@ -183,6 +183,10 @@ void RageModelGeometry::LoadMilkshapeAscii( const CString& _sPath, bool bNeedsNo
|
|||||||
//Ym2413a Added: End
|
//Ym2413a Added: End
|
||||||
|
|
||||||
// vertex.nFlags = nFlags;
|
// vertex.nFlags = nFlags;
|
||||||
|
if( nFlags & 1 )
|
||||||
|
v.TextureMatrixScale.x = 0;
|
||||||
|
if( nFlags & 2 )
|
||||||
|
v.TextureMatrixScale.y = 0;
|
||||||
v.bone = (uint8_t) nIndex;
|
v.bone = (uint8_t) nIndex;
|
||||||
RageVec3AddToBounds( v.p, m_vMins, m_vMaxs );
|
RageVec3AddToBounds( v.p, m_vMins, m_vMaxs );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -237,12 +237,14 @@ struct RageModelVertex // doesn't have color. Relies on material color
|
|||||||
RageModelVertex():
|
RageModelVertex():
|
||||||
p(0,0,0),
|
p(0,0,0),
|
||||||
n(0,0,0),
|
n(0,0,0),
|
||||||
t(0,0)
|
t(0,0),
|
||||||
|
TextureMatrixScale(1,1)
|
||||||
{ }
|
{ }
|
||||||
RageVector3 p; // position
|
RageVector3 p; // position
|
||||||
RageVector3 n; // normal
|
RageVector3 n; // normal
|
||||||
RageVector2 t; // texture coordinates
|
RageVector2 t; // texture coordinates
|
||||||
int8_t bone;
|
int8_t bone;
|
||||||
|
RageVector2 TextureMatrixScale; // usually 1,1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user