[]3d点光源究竟有无衰减参数设置的?

var pointLight = scene.addChild(new Laya.PointLight());
pointLight.ambientColor = new Laya.Vector3(0.8, 0.8, 0.8);
pointLight.specularColor = new Laya.Vector3(2.0, 2.0, 0.9);
pointLight.diffuseColor = new Laya.Vector3(1, 1, 1);
pointLight.transform.translate(new Laya.Vector3(0, 30, 0));
pointLight.attenuation = new Laya.Vector3(3.0, 3.0, 3.0);
pointLight.range = 30.0;

发现是没有衰减的,一个半圆这样,跟电筒照出来的一样,好难看啊
已邀请:

wqf196

赞同来自:

找到了,用spotLight貌似可以

cuixueying

赞同来自:

好的,有问题及时沟通!

要回复问题请先

商务合作
商务合作