Skip to content

Commit d727a8b

Browse files
committed
update
1 parent 8f74faf commit d727a8b

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

proto/decentraland/sdk/components/global_light.proto

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@ message PBGlobalLight {
1818
optional decentraland.common.Color3 ambient_color = 2;
1919
// ambient light intensity. the explorer default ambient brightness is multiplied by this non-physical quantity.
2020
// default 1
21-
optional float ambient_brightness = 3;
21+
optional float ambient_brightness = 3;
22+
23+
// camera layers to apply global light to. defaults to 0 only
24+
repeated uint32 layers = 4;
2225
}

proto/decentraland/sdk/components/texture_camera.proto

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,47 @@ syntax = "proto3";
33
package decentraland.sdk.components;
44

55
import "decentraland/sdk/components/common/id.proto";
6+
import "decentraland/common/colors.proto";
67

78
option (common.ecs_component_id) = 1207;
89

910
message PBTextureCamera {
11+
// rendered texture width
1012
optional uint32 width = 1;
13+
// rendered texture height
1114
optional uint32 height = 2;
15+
// which layer of entities to render. entity layers can be specified by adding PBCameraLayers to target entities.
16+
// defaults to 0
1217
optional uint32 layer = 3;
18+
19+
// default false
20+
optional bool disable_fog = 4;
21+
// default false
22+
optional bool disable_skybox = 5;
23+
// default black
24+
optional decentraland.common.Color4 clear_color = 6;
25+
// default infinity
26+
optional float far_plane = 7;
27+
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+
oneof mode {
33+
Perspective perspective = 8;
34+
Orthographic orthographic = 9;
35+
/* Portal portal = 10; */
36+
};
37+
}
38+
39+
message Perspective {
40+
// vertical field of view in radians
41+
// defaults to pi/4 = 45 degrees
42+
optional float field_of_view = 1;
43+
}
44+
45+
message Orthographic {
46+
// vertical extent of the visible range in meters
47+
// defaults to 4m
48+
optional float vertical_range = 1;
1349
}

0 commit comments

Comments
 (0)