Fix the scaling of renderablemodel by making the magnification a floatproperty

This commit is contained in:
Alexander Bock
2015-07-01 17:56:51 +02:00
parent 8f88ead113
commit 40c42ff772
8 changed files with 80 additions and 61 deletions

View File

@@ -196,6 +196,8 @@ void RenderableModel::render(const RenderData& data) {
_programObject->setUniform("_performShading", _performShading);
_geometry->setUniforms(*_programObject);
if (_performFade && _fading > 0.f){
_fading = _fading - 0.01f;
}