diff options
author | aap <aap@papnet.eu> | 2020-08-09 17:14:24 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-08-09 17:14:24 +0200 |
commit | 4118d2aa5552223c02ff094e7d4e9f103daaac94 (patch) | |
tree | 7ad49c8b1e3590f9ebeeab334063684579fcc310 /src/render | |
parent | rubbish done (diff) | |
download | re3-4118d2aa5552223c02ff094e7d4e9f103daaac94.tar re3-4118d2aa5552223c02ff094e7d4e9f103daaac94.tar.gz re3-4118d2aa5552223c02ff094e7d4e9f103daaac94.tar.bz2 re3-4118d2aa5552223c02ff094e7d4e9f103daaac94.tar.lz re3-4118d2aa5552223c02ff094e7d4e9f103daaac94.tar.xz re3-4118d2aa5552223c02ff094e7d4e9f103daaac94.tar.zst re3-4118d2aa5552223c02ff094e7d4e9f103daaac94.zip |
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/Skidmarks.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/render/Skidmarks.cpp b/src/render/Skidmarks.cpp index efd88387..f2a66db1 100644 --- a/src/render/Skidmarks.cpp +++ b/src/render/Skidmarks.cpp @@ -6,6 +6,8 @@ #include "Replay.h" #include "Skidmarks.h" +//--MIAMI: file done + CSkidmark CSkidmarks::aSkidmarks[NUMSKIDMARKS]; RwImVertexIndex SkidmarkIndexList[SKIDMARK_LENGTH * 6]; @@ -37,13 +39,6 @@ CSkidmarks::Init(void) SkidmarkIndexList[i*6+5] = ix+3; ix += 2; } - - for(i = 0; i < SKIDMARK_LENGTH; i++){ - RwIm3DVertexSetU(&SkidmarkVertices[i*2 + 0], 0.0f); - RwIm3DVertexSetV(&SkidmarkVertices[i*2 + 0], i*5.01f); - RwIm3DVertexSetU(&SkidmarkVertices[i*2 + 1], 1.0f); - RwIm3DVertexSetV(&SkidmarkVertices[i*2 + 1], i*5.01f); - } } void @@ -141,8 +136,12 @@ CSkidmarks::Render(void) p2.y -= aSkidmarks[i].m_sideY[j]; RwIm3DVertexSetRGBA(&SkidmarkVertices[j*2+0], color.red, color.green, color.blue, alpha); RwIm3DVertexSetPos(&SkidmarkVertices[j*2+0], p1.x, p1.y, p1.z+0.1f); + RwIm3DVertexSetU(&SkidmarkVertices[j*2+0], 0.0f); + RwIm3DVertexSetV(&SkidmarkVertices[j*2+0], j*5.01f); RwIm3DVertexSetRGBA(&SkidmarkVertices[j*2+1], color.red, color.green, color.blue, alpha); RwIm3DVertexSetPos(&SkidmarkVertices[j*2+1], p2.x, p2.y, p2.z+0.1f); + RwIm3DVertexSetU(&SkidmarkVertices[j*2+1], 1.0f); + RwIm3DVertexSetV(&SkidmarkVertices[j*2+1], j*5.01f); } LittleTest(); |