Re-add feature for rendering scaled meshes

- This commit manually apply ca605c8dba1e3f8b976a7df68688afc498afc2de to the current master head. Parent of ca605c8dba1e3f8b976a7df68688afc498afc2de is of also master branch, f359e57, but it is too old to merge back to the current head.
- Thanks to @tobiaskunz