Skip to content

Commit 0e8c31f

Browse files
feat: control day/night cycle (#277)
* Added PBSkyboxTime. * Fixed typo * Lint pass fix * Added documentation * Fixed implementation to comply with ADR 259 * Removed unintended comment
1 parent 8e03daa commit 0e8c31f

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
syntax = "proto3";
2+
package decentraland.sdk.components;
3+
4+
5+
import "decentraland/sdk/components/common/id.proto";
6+
7+
option (common.ecs_component_id) = 1210;
8+
9+
// The SkyboxTime component allows controlling the time of day for the skybox,
10+
// affecting the lighting and appearance of the sky in the scene.
11+
message PBSkyboxTime {
12+
uint32 fixed_time = 1; // fixed time of day, represented as a number of seconds since the start of the day, where 0 is 00:00hs, 43200 is 12:00hs and 86400 is 24:00hs
13+
optional TransitionMode transition_mode = 2; // default = TransitionMode.TM_FORWARD, controls the direction of time transitions
14+
}
15+
16+
// Controls the direction for animated skybox transitions
17+
enum TransitionMode {
18+
TM_FORWARD = 0; // transitions forward (default)
19+
TM_BACKWARD = 1; // transitions backward
20+
}

0 commit comments

Comments
 (0)