mirror of
https://github.com/overte-org/overte.git
synced 2025-06-21 13:41:55 +02:00
array of points takes absolute positions now, so script writer has an easier time
This commit is contained in:
parent
115bf3dd25
commit
9641b11086
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ void RenderableLineEntityItem::render(RenderArgs* args) {
|
|||
if(_lineVerticesID == GeometryCache::UNKNOWN_ID){
|
||||
_lineVerticesID = geometryCache ->allocateID();
|
||||
}
|
||||
glTranslatef(position.x, position.y, position.z);
|
||||
//TODO: Figure out clean , efficient way to do relative line positioning. For now we'll just use absolute positioning.
|
||||
//glTranslatef(position.x, position.y, position.z);
|
||||
glm::vec3 axis = glm::axis(rotation);
|
||||
glRotatef(glm::degrees(glm::angle(rotation)), axis.x, axis.y, axis.z);
|
||||
QVector<glm::vec3> points;
|
||||
|
|
Loading…
Reference in a new issue