1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 17:30:00 +00:00

WaterCannon uv macros

This commit is contained in:
Fire-Head 2020-03-28 18:24:21 +03:00
parent 3366cd0ff8
commit a81233429d

View file

@ -29,17 +29,17 @@ void CWaterCannon::Init(void)
for ( int32 i = 0; i < NUM_SEGMENTPOINTS; i++ ) for ( int32 i = 0; i < NUM_SEGMENTPOINTS; i++ )
m_abUsed[i] = false; m_abUsed[i] = false;
WaterCannonVertices[0].u = 0.0f; RwIm3DVertexSetU(&WaterCannonVertices[0], 0.0f);
WaterCannonVertices[0].v = 0.0f; RwIm3DVertexSetV(&WaterCannonVertices[0], 0.0f);
WaterCannonVertices[1].u = 1.0f; RwIm3DVertexSetU(&WaterCannonVertices[1], 1.0f);
WaterCannonVertices[1].v = 0.0f; RwIm3DVertexSetV(&WaterCannonVertices[1], 0.0f);
WaterCannonVertices[2].u = 0.0f; RwIm3DVertexSetU(&WaterCannonVertices[2], 0.0f);
WaterCannonVertices[2].v = 0.0f; RwIm3DVertexSetV(&WaterCannonVertices[2], 0.0f);
WaterCannonVertices[3].u = 1.0f; RwIm3DVertexSetU(&WaterCannonVertices[3], 1.0f);
WaterCannonVertices[3].v = 0.0f; RwIm3DVertexSetV(&WaterCannonVertices[3], 0.0f);
WaterCannonIndexList[0] = 0; WaterCannonIndexList[0] = 0;
WaterCannonIndexList[1] = 1; WaterCannonIndexList[1] = 1;
@ -119,10 +119,10 @@ void CWaterCannon::Render(void)
float v = float(CGeneral::GetRandomNumber() & 255) / 256; float v = float(CGeneral::GetRandomNumber() & 255) / 256;
WaterCannonVertices[0].v = v; RwIm3DVertexSetV(&WaterCannonVertices[0], v);
WaterCannonVertices[1].v = v; RwIm3DVertexSetV(&WaterCannonVertices[1], v);
WaterCannonVertices[2].v = v; RwIm3DVertexSetV(&WaterCannonVertices[2], v);
WaterCannonVertices[3].v = v; RwIm3DVertexSetV(&WaterCannonVertices[3], v);
int16 pointA = m_nCur % -NUM_SEGMENTPOINTS; int16 pointA = m_nCur % -NUM_SEGMENTPOINTS;