Skip to main content

LightSettings

class LightSettings

Class responsible for handling the SkyBox, such as setting its type, rotation, etc.


public class LightSettings

— Constructors (1) —

ConstructorDescription
LightSettings()Creates a new LightSettings.

— Methods (27) —

NameDescription
Color getSpaceColor()Returns the space color.
void setSpaceColor(Color color)Sets the color of the space to be "color" argument.
Color getAmbientColor()Returns the ambient color.
void setAmbientColor(Color color)Sets the color of the environment to be "color" argument.
void setSkyboxFile([TextureFile] file)Sets the SkyBox texture file to be "file" argument.
[Texture] getSkyBox()Returns the SkyBox texture.
void setSkybox([Texture] texture)Sets the SkyBox texture to be "texture" argument.
Color getSkyBoxColor()Returns the SkyBox color.
void setSkyBoxColor(Color color)Sets the SkyBox color to be "color" argument.
boolean isEnableFog()Returns true if fog is on, false if not.
void setEnableFog(boolean enabled)Defines whether fog will be enabled or disabled to be "enabled" argument.
Color getFogColor()Returns the fog color.
void setFogColor(Color color)Sets the fog color to be "color" argument.
float getFogStart()Returns where the fog starts.
void setFogStart(float value)Defines where the fog starts to be "value" argument.
float getFogEnd()Returns where the fog ends.
void setFogEnd(float value)Defines where the fog ends to be "value" argument.
int getFogType()Returns the type of the fog.
void setFogType(int type)Sets the type of the fog(0 for "Fast", and 1 for "SQRT") to be "type" argument.
float getSkyBoxRotX()Returns the rotation of the SkyBox's X axis.
void setSkyBoxRotX(float value)Sets the rotation of the SkyBox's X axis to be "value" argument.
float getSkyBoxRotY()Returns the rotation of the SkyBox's Y axis.
void setSkyboxRotY(float value)Sets the rotation of the SkyBox's Y axis to be "value" argument.
float getSkyBoxRotZ()Returns the rotation of the SkyBox's Z axis.
void setSkyBoxRotZ(float value)Sets the rotation of the SkyBox's Z axis to be "value" argument.
int getSkyBoxType()Returns the SkyBox type.
void setSkyboxType(int type)Sets the type of the SkyBox(0 for "Cubic", and 1 for "Panorama") to be "type" argument.