mirror of
https://github.com/overte-org/overte.git
synced 2025-04-09 15:22:27 +02:00
remove unused constant
This commit is contained in:
parent
a5b92a6c7b
commit
e2bf3d7138
1 changed files with 1 additions and 2 deletions
|
@ -350,7 +350,6 @@ void entities::TextPayload::render(RenderArgs* args) {
|
|||
modelTransform.setRotation(EntityItem::getBillboardRotation(modelTransform.getTranslation(), modelTransform.getRotation(), billboardMode, args->getViewFrustum().getPosition()));
|
||||
|
||||
float scale = lineHeight / textRenderer->getFontSize();
|
||||
const float TEXT_ENTITY_ITEM_FIXED_DEPTH = 0.01f;
|
||||
modelTransform.postTranslate(glm::vec3(-0.5, 0.5, 1.0f + EPSILON / dimensions.z));
|
||||
modelTransform.setScale(scale);
|
||||
batch.setModelTransform(modelTransform);
|
||||
|
@ -384,4 +383,4 @@ template <> const ShapeKey shapeGetShapeKey(const TextPayload::Pointer& payload)
|
|||
template <> void payloadRender(const TextPayload::Pointer& payload, RenderArgs* args) {
|
||||
return payload->render(args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue