@@ -3,11 +3,47 @@ syntax = "proto3";
3
3
package decentraland.sdk.components ;
4
4
5
5
import "decentraland/sdk/components/common/id.proto" ;
6
+ import "decentraland/common/colors.proto" ;
6
7
7
8
option (common.ecs_component_id ) = 1207 ;
8
9
9
10
message PBTextureCamera {
11
+ // rendered texture width
10
12
optional uint32 width = 1 ;
13
+ // rendered texture height
11
14
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
12
17
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 ;
13
49
}
0 commit comments