Fixed render function to take const Mat4