【发布时间】:2013-04-13 19:26:01
【问题描述】:
在我使用纹理贴图后,如何去除这个球体(即太阳)的线条??
我不知道发生了什么,为什么会出现这些线条?我知道,当我们在教授的课堂上对一个对象使用 Texture 时,它并没有向我们展示这些线条。
这是太阳的代码:
var sun, sunGeo, sunMat;
sunGeo = new THREE.SphereGeometry(2300,32,32);
var suntexture = new THREE.ImageUtils.loadTexture('images/sun1.jpg');
suntexture.anisotropy = 8;
sunMat = new THREE.MeshPhongMaterial({
ambient: 0x333333,
side: THREE.BackSide,
map: suntexture,
emissive: 0xffffff
});
sun = new THREE.Mesh(sunGeo, sunMat);
scene.add(sun);
这些线条看起来很糟糕。
【问题讨论】:
标签: javascript html three.js webgl