Remove unused code from textenginerenderer.
Add attenuation to scene elements.
Remove more unused code.