File tree Expand file tree Collapse file tree 3 files changed +31
-12
lines changed
proto/decentraland/sdk/components Expand file tree Collapse file tree 3 files changed +31
-12
lines changed Original file line number Diff line number Diff line change
1
+ syntax = "proto3" ;
2
+
3
+ package decentraland.sdk.components ;
4
+
5
+ import "decentraland/sdk/components/common/id.proto" ;
6
+ import "decentraland/common/colors.proto" ;
7
+
8
+ option (common.ecs_component_id ) = 1210 ;
9
+
10
+ message PBCameraLayer {
11
+ // layer to which these settings apply. must be > 0
12
+ // Layer 0 is the default "real world" layer viewed by the player and cannot be modified.
13
+ uint32 layer = 1 ;
14
+
15
+ // should the sun light affect this layer? default false
16
+ optional bool directional_light = 2 ;
17
+
18
+ // should this layer show player avatars? default false
19
+ optional bool show_avatars = 3 ;
20
+
21
+ // should this layer show the sky? default false
22
+ optional bool show_skybox = 4 ;
23
+
24
+ // should this layer show distance fog? default false
25
+ optional bool show_fog = 5 ;
26
+
27
+ // ambient light overrides for this layer. default -> use same as main camera
28
+ optional decentraland.common.Color3 ambient_color_override = 6 ;
29
+ optional float ambient_brightness_override = 7 ;
30
+ }
Original file line number Diff line number Diff line change @@ -19,7 +19,4 @@ message PBGlobalLight {
19
19
// ambient light intensity. the explorer default ambient brightness is multiplied by this non-physical quantity.
20
20
// default 1
21
21
optional float ambient_brightness = 3 ;
22
-
23
- // camera layers to apply global light to. defaults to 0 only
24
- repeated uint32 layers = 4 ;
25
22
}
Original file line number Diff line number Diff line change @@ -16,19 +16,11 @@ message PBTextureCamera {
16
16
// defaults to 0
17
17
optional uint32 layer = 3 ;
18
18
19
- // default false
20
- optional bool disable_fog = 4 ;
21
- // default false
22
- optional bool disable_skybox = 5 ;
23
19
// default black
24
20
optional decentraland.common.Color4 clear_color = 6 ;
25
21
// default infinity
26
22
optional float far_plane = 7 ;
27
23
28
- // ambient light overrides for this camera
29
- optional decentraland.common.Color3 ambient_color_override = 11 ;
30
- optional float ambient_brightness_override = 12 ;
31
-
32
24
oneof mode {
33
25
Perspective perspective = 8 ;
34
26
Orthographic orthographic = 9 ;
@@ -46,4 +38,4 @@ message Orthographic {
46
38
// vertical extent of the visible range in meters
47
39
// defaults to 4m
48
40
optional float vertical_range = 1 ;
49
- }
41
+ }
You can’t perform that action at this time.
0 commit comments