mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 03:40:20 +02:00
line entities can now be properly rotated using rotation property
This commit is contained in:
parent
62b3ca936f
commit
843ab6d5e3
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ void RenderableLineEntityItem::render(RenderArgs* args) {
|
||||||
gpu::Batch& batch = *args->_batch;
|
gpu::Batch& batch = *args->_batch;
|
||||||
Transform transform = Transform();
|
Transform transform = Transform();
|
||||||
transform.setTranslation(getPosition());
|
transform.setTranslation(getPosition());
|
||||||
|
transform.setRotation(getRotation());
|
||||||
batch.setModelTransform(transform);
|
batch.setModelTransform(transform);
|
||||||
|
|
||||||
batch._glLineWidth(getLineWidth());
|
batch._glLineWidth(getLineWidth());
|
||||||
|
|
Loading…
Reference in a new issue