Rename quaternion to orientation.
Create emitRenderState().