libgdx改变环境光强度

时间:2014-08-19 11:13:55

标签: 3d libgdx light

我正在使用Libgdx引擎处理3d应用,并使用3d API。

我需要随时间改变光线的强度。 我知道有三种类型的灯: 环境,定向,点。

只有PointLight可以选择更改Intesity。

我试图改变环境光和方向光的强度,使用我设置为光的颜色的alpha分量。 但它没有用。

例如:

environment.set(new ColorAttribute(ColorAttribute.AmbientLight, 1f, 1f, 1f, 0.1f));

和此:

environment.set(new ColorAttribute(ColorAttribute.AmbientLight, 1f, 1f, 1f, 1f));

看起来完全一样,与DirectionalLight相同。

有没有办法实现这个?

谢谢!

0 个答案:

没有答案