2013-12-15 40 views

回答

4

答案很簡單,但不明顯:

設置perspectiveCamera的渲染距離,只是update()前加

cam.near = 0.1f; 
    cam.far = 500; 

完整的源代碼:

cam = new PerspectiveCamera(80, w, h); 
    cam.position.set(0, 0, -1); 
    cam.lookAt(0, 0, 0); 
    cam.near = 0.1f; 
    cam.far = 500; 
    cam.update();