mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-17 19:23:51 +02:00
Added material assignment in model view, citybuilder, and transalte scale and offset window to model view.
This commit is contained in:
@@ -69,7 +69,10 @@ void DrawRenderModel(idRenderModel* model, idVec3& origin, idMat3& axis, bool ca
|
||||
idVec3 v;
|
||||
|
||||
v = tri->verts[index].xyz * axis + origin;
|
||||
idVec3 normal = tri->verts[index].normal * axis;
|
||||
normal.Normalize();
|
||||
glTexCoord2f(tri->verts[index].st.x, tri->verts[index].st.y);
|
||||
glNormal3fv(normal.ToFloatPtr());
|
||||
glVertex3fv(v.ToFloatPtr());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user