From 5c5c95794cdbab84073e6b941f7e44b903c7ae98 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Melucci Date: Tue, 10 Dec 2024 08:58:19 -0300 Subject: [PATCH] Initial draft of LightSource component --- proto/decentraland/sdk/components/light.proto | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 proto/decentraland/sdk/components/light.proto diff --git a/proto/decentraland/sdk/components/light.proto b/proto/decentraland/sdk/components/light.proto new file mode 100644 index 00000000..83170064 --- /dev/null +++ b/proto/decentraland/sdk/components/light.proto @@ -0,0 +1,33 @@ +syntax = "proto3"; +package decentraland.sdk.components; +import "decentraland/sdk/components/common/id.proto"; +import "decentraland/common/colors.proto"; +option (common.ecs_component_id) = 1079; + +message PBLightSource { + optional Type type = 1; + bool active = 5; // default = true + Color color = 2; // default = Color.white + float brightness = 3; // range from 0 to 1 + float range = 4; // default = 10. range value: from 0 to 1 + ShadowType shadow = 6; // default = ShadowType.ST_NONE + + message Point { + } + + message Spot{ + float inner_angle = 1; + float outer_angle = 2; + } + + oneof Type { + Point point = 1; + Spot spot = 2; + } + + enum ShadowType { + ST_NONE = 0; + ST_SOFT = 1; + ST_HARD = 2; + } +}