Skip to main content

EnvironmentConfig

Provides properties to change global environment.

Properties

skyColor

Sets the Color of the top of the skybox.

equatorColor

Sets the Color of the middle of the skybox.

groundColor

Sets the Color of the bottom of the skybox.

sunColor

Sets sun Color. This also sets color of the light.

equatorHeight

Represents the height of the gradient between skyColor and equatorColor. Value in range [0, 1].

skyboxOffset

Represents the equator point. Value in range [-1, 1].

starsIntensity

Sets intensity of the stars. 0 will hide the stars completely. Value in range [0, 5].

sunIntensity

This controls the brightness of the sun visual and the light intensity. Value in range [0, 5].

cloudsIntensity

Sets intensity (transperency) of the clouds. 0 will hide clouds completely. Value in range [0, 1].

cloudsSpeed

Sets the speed of the clouds.

ambientIntensity

Sets intensity of ambient light. This light is additional to the sunlight and lights object from all directions. Value in range [0, 1].

sunAngle

Sets the angle of the sun. Value in range [0, 360]. For daytime 0 - 180 for nighttime 181 - 360.

hideBottomStars

Enables or disables stars on the bottom part of the skybox.