Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用pointlight和MeshFaceMaterial闪烁的THREE.js_Three.js_Textures_Flicker_Lighting - Fatal编程技术网

使用pointlight和MeshFaceMaterial闪烁的THREE.js

使用pointlight和MeshFaceMaterial闪烁的THREE.js,three.js,textures,flicker,lighting,Three.js,Textures,Flicker,Lighting,由于某些原因,当我在场景中有一个点光源时,我使用MeshFaceMaterial在任何对象上都会闪烁。环境光和平行光都很好 不幸的是,点光源为场景增加了额外的真实感。如果我移除了指示灯,一切都很好。伪代码: light = new THERE.PointLight(0xffffff,0.5); scene.add(light); loadTerrain(); mesh = new THREE.Mesh(cominedGeometry,new THREE.MeshFaceMaterial(ma

由于某些原因,当我在场景中有一个点光源时,我使用MeshFaceMaterial在任何对象上都会闪烁。环境光和平行光都很好

不幸的是,点光源为场景增加了额外的真实感。如果我移除了指示灯,一切都很好。伪代码:

light = new THERE.PointLight(0xffffff,0.5);
scene.add(light);

loadTerrain();

mesh = new THREE.Mesh(cominedGeometry,new THREE.MeshFaceMaterial(materialArray))
scene.add(mesh);
我试着在加载所有其他对象之前和之后加载灯光,闪烁没有变化


为什么在这些条件下会出现闪烁?有什么补救办法吗?

你的问题是什么?为什么在描述的条件中会出现闪烁?