three js 球体材质之谜

2017-02-28  本文已影响0人  bbjoe
代码

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

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点时候就消失了。

上一篇 下一篇

猜你喜欢

热点阅读