Optionalseed: numberProtectedplayerProtectedrandomProtectedsceneProtectedskyboxProtected ReadonlyskyboxCalled after the scene is rendered, this method loads chunks within the render distance of the player. It also updates the water texture every 2 ticks.
Called before the scene is rendered, this method updates the tick based on the elapsed time since the last frame. It also updates the sky color based on the current tick.
ProtectedgetOptionalworldtype: numberOptionalworldtype: numberProtectedpushProtectedpushOptionalposition: Vector3ProtectedpushProtectedsetthis is no skybox, but 2 planes with a diffuseTexture to handle the image transparency
Updates the skybox rotation and color based on the current tick. The skybox rotates around the Z-axis, simulating the movement of the sun. The sky color is updated based on the current tick, using predefined colors for specific ticks. The light direction is set according to the sun's position.
World environment.
Recreates Minecraft with our voxel engine.
The player should walk around and interact with the world.
The world is generated procedurally based on a seed.
The world has a day/night cycle with a skybox that changes color based on the time of day.
The world has a flat or normal terrain based on the world type.
The world has a render distance that determines how many chunks are loaded around the player.\