美文网首页
[读]three.js 相机camera位置属性设置详解

[读]three.js 相机camera位置属性设置详解

作者: 不系流年系乾坤 | 来源:发表于2017-08-17 09:59 被阅读77次

    three.js 相机camera位置属性设置详解

    camera.position.x = 500;//相机的位置
    camera.position.y = 500;
    camera.position.z = 1000;
    camera.up.x = 0;//相机以哪个方向为上方
    camera.up.y = 0;
    camera.up.z = 1;
    camera.lookAt({//相机看向哪个坐标
        x : 0,
        y : 0,
        z : 0
    });
    

    相关文章

      网友评论

          本文标题:[读]three.js 相机camera位置属性设置详解

          本文链接:https://www.haomeiwen.com/subject/sxjgrxtx.html