美文网首页
three js 球体材质之谜

three js 球体材质之谜

作者: bbjoe | 来源:发表于2017-02-28 22:53 被阅读0次
    代码

    球体形状里面的纬度参数会影响他的最终效果呈现,详见下:

    1

    new THREE.SphereGeometry(1/2, 18, 12, Math.PI / 2, Math.PI, 0, 1 * Math.PI / 2),

    2

    new THREE.SphereGeometry(1/2, 18, 12, Math.PI / 2, Math.PI, 0, 2 * Math.PI / 2),

    3

    new THREE.SphereGeometry(1/2, 18, 12, Math.PI / 2, Math.PI, 0, 3 * Math.PI / 2),

    4

    new THREE.SphereGeometry(1/2, 18, 12, Math.PI / 2, Math.PI, 0, 4 * Math.PI / 2)

    12

    new THREE.SphereGeometry(1/2, 18, 12, Math.PI / 2, Math.PI, 0, 12 * Math.PI / 2)

    23

    new THREE.SphereGeometry(1/2, 18, 12, Math.PI / 2, Math.PI, 0, 23 * Math.PI / 2)
    23是最大了,24点时候就消失了。

    相关文章

      网友评论

          本文标题:three js 球体材质之谜

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