com.gempukku.libgdx.graph.plugin.lighting3d.Lighting3DEnvironment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libgdx-graph Show documentation
Show all versions of libgdx-graph Show documentation
libGDX-graph runtime library for pipeline rendering
The newest version!
package com.gempukku.libgdx.graph.plugin.lighting3d;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g3d.environment.DirectionalLight;
import com.badlogic.gdx.graphics.g3d.environment.PointLight;
import com.badlogic.gdx.graphics.g3d.environment.SpotLight;
import com.badlogic.gdx.utils.Array;
public class Lighting3DEnvironment {
private Color ambientColor;
private Array directionalLights = new Array<>();
private Array pointLights = new Array<>();
private Array spotLights = new Array<>();
public Color getAmbientColor() {
return ambientColor;
}
public void setAmbientColor(Color ambientColor) {
this.ambientColor = ambientColor;
}
public void addDirectionalLight(DirectionalLight directionalLight) {
directionalLights.add(directionalLight);
}
public void removeDirectionalLight(DirectionalLight directionalLight) {
directionalLights.removeValue(directionalLight, true);
}
public void addPointLight(PointLight pointLight) {
pointLights.add(pointLight);
}
public void removePointLight(PointLight pointLight) {
pointLights.removeValue(pointLight, true);
}
public void addSpotLight(SpotLight spotLight) {
spotLights.add(spotLight);
}
public void removeSpotLight(SpotLight spotLight) {
spotLights.removeValue(spotLight, true);
}
public Array getDirectionalLights() {
return directionalLights;
}
public Array getPointLights() {
return pointLights;
}
public Array getSpotLights() {
return spotLights;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy