Factor out model matrix operations and logic to Entity class, and make model use it own shader.