fix frustum culling of entities with negative scale
optimize drawing triangle outlines for wireframe rendering