Skip to content

Commit 494a63d

Browse files
committed
add camera_layer
1 parent d727a8b commit 494a63d

File tree

3 files changed

+31
-12
lines changed

3 files changed

+31
-12
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
}

proto/decentraland/sdk/components/global_light.proto

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,4 @@ message PBGlobalLight {
1919
// ambient light intensity. the explorer default ambient brightness is multiplied by this non-physical quantity.
2020
// default 1
2121
optional float ambient_brightness = 3;
22-
23-
// camera layers to apply global light to. defaults to 0 only
24-
repeated uint32 layers = 4;
2522
}

proto/decentraland/sdk/components/texture_camera.proto

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,11 @@ message PBTextureCamera {
1616
// defaults to 0
1717
optional uint32 layer = 3;
1818

19-
// default false
20-
optional bool disable_fog = 4;
21-
// default false
22-
optional bool disable_skybox = 5;
2319
// default black
2420
optional decentraland.common.Color4 clear_color = 6;
2521
// default infinity
2622
optional float far_plane = 7;
2723

28-
// ambient light overrides for this camera
29-
optional decentraland.common.Color3 ambient_color_override = 11;
30-
optional float ambient_brightness_override = 12;
31-
3224
oneof mode {
3325
Perspective perspective = 8;
3426
Orthographic orthographic = 9;
@@ -46,4 +38,4 @@ message Orthographic {
4638
// vertical extent of the visible range in meters
4739
// defaults to 4m
4840
optional float vertical_range = 1;
49-
}
41+
}

0 commit comments

Comments
 (0)