Skip to content

Commit

Permalink
Initial draft of LightSource component
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAlvarezMelucciDCL committed Dec 10, 2024
1 parent 3fb0262 commit 5018cb8
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions proto/decentraland/sdk/components/light.proto
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit 5018cb8

Please sign in to comment.