I'm working on 3d app using Libgdx engine, and using 3d API.
I need to change intensity of the light over time. I know there are three types of lights: Ambient, Directional, Point.
Only PointLight has option for changing intesity.
I'm trying to change intesity of Ambiental and Directional light, using alpha component of Color that I set to the light. But it's not working.
For example:
environment.set(new ColorAttribute(ColorAttribute.AmbientLight, 1f, 1f, 1f, 0.1f));
and this:
environment.set(new ColorAttribute(ColorAttribute.AmbientLight, 1f, 1f, 1f, 1f));
Are looking exactly the same, the same thing is with DirectionalLight.
Is there a way to achieve this???
Thank you!