remove unused constant

This commit is contained in:
Sam Gondelman 2019-06-28 15:11:22 -07:00 committed by GitHub
parent a5b92a6c7b
commit e2bf3d7138
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}
}