public MyCameraController2(float width, float height, Ellipsoid shape) { _shape = shape; //_camera = new Camera(width, height); _windowWidth = width; _windowHeight = height; UpdatePerspectiveMatrix(); //UpdateViewMatrix(); }
public MyCameraController(float width, float height) { //默认为此椭球体 _shape = Ellipsoid.ScaledWgs842; _windowWidth = width; _windowHeight = height; UpdatePerspectiveMatrix(); // UpdateViewMatrix(); }
public MyCameraController2(float width, float height) { //默认为此椭球体 _shape = Ellipsoid.ScaledWgs842; _windowWidth = width; _windowHeight = height; UpdatePerspectiveMatrix(); //更新视口矩阵 UpdateViewPortTransformMaxtrix(); //UpdateViewMatrix(); this.LookAtInfo = new LookAt(0, 0, 0, 0, 0, 1); UpdateCamera(); }