Skip to content

Commit c08bd82

Browse files
authored
Merge pull request #1161 from decentraland/feat/improve-light-proto
feat: improved light proto
2 parents c18a4fd + 3672f7a commit c08bd82

19 files changed

Lines changed: 71 additions & 79 deletions

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"bugs": "https://github.com/decentraland/js-sdk-toolchain/issues",
77
"dependencies": {
88
"@actions/core": "^1.10.0",
9-
"@dcl/protocol": "1.0.0-16429465125.commit-bac58dd",
9+
"@dcl/protocol": "1.0.0-16564528964.commit-5630df7",
1010
"@dcl/quickjs-emscripten": "^0.21.0-3680274614.commit-1808aa1",
1111
"@dcl/ts-proto": "1.153.0",
1212
"@types/fs-extra": "^9.0.12",

packages/@dcl/playground-assets/etc/playground-assets.api.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2477,9 +2477,11 @@ export namespace PBInputModifier_StandardInput {
24772477
// @public (undocumented)
24782478
export interface PBLightSource {
24792479
active?: boolean | undefined;
2480-
brightness?: number | undefined;
24812480
color?: PBColor3 | undefined;
2481+
intensity?: number | undefined;
24822482
range?: number | undefined;
2483+
shadow?: boolean | undefined;
2484+
shadowMaskTexture?: TextureUnion | undefined;
24832485
// (undocumented)
24842486
type?: {
24852487
$case: "point";
@@ -2500,30 +2502,20 @@ export namespace PBLightSource {
25002502

25012503
// @public (undocumented)
25022504
export interface PBLightSource_Point {
2503-
shadow?: PBLightSource_ShadowType | undefined;
25042505
}
25052506

25062507
// @public (undocumented)
25072508
export namespace PBLightSource_Point {
25082509
// (undocumented)
25092510
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
25102511
// (undocumented)
2511-
export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
2512-
}
2513-
2514-
// @public (undocumented)
2515-
export const enum PBLightSource_ShadowType {
2516-
ST_HARD = 2,
2517-
ST_NONE = 0,
2518-
ST_SOFT = 1
2512+
export function encode(_: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
25192513
}
25202514

25212515
// @public (undocumented)
25222516
export interface PBLightSource_Spot {
25232517
innerAngle?: number | undefined;
25242518
outerAngle?: number | undefined;
2525-
shadow?: PBLightSource_ShadowType | undefined;
2526-
shadowMaskTexture?: TextureUnion | undefined;
25272519
}
25282520

25292521
// @public (undocumented)

packages/@dcl/sdk-commands/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@dcl/sdk-commands/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@dcl/inspector": "file:../inspector",
1414
"@dcl/linker-dapp": "^0.14.2",
1515
"@dcl/mini-comms": "1.0.1-20230216163137.commit-a4c75be",
16-
"@dcl/protocol": "1.0.0-16429465125.commit-bac58dd",
16+
"@dcl/protocol": "1.0.0-16564528964.commit-5630df7",
1717
"@dcl/quests-client": "^1.0.3",
1818
"@dcl/quests-manager": "^0.1.4",
1919
"@dcl/rpc": "^1.1.1",

test/ecs/components/LightSource.spec.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ describe('Generated LightSource ProtoBuf', () => {
77
const LightSource = components.LightSource(newEngine)
88

99
testComponentSerialization(LightSource, {
10-
type: LightSource.Type.Point({
11-
shadow: components.PBLightSource_ShadowType.ST_NONE
12-
}),
1310
active: true,
1411
color: { r: 1, g: 1, b: 1 },
15-
brightness: 1,
16-
range: 10
12+
intensity: 1,
13+
range: 10,
14+
shadowMaskTexture: undefined,
15+
shadow: true,
16+
type: LightSource.Type.Point({})
1717
})
1818
})
1919

@@ -22,16 +22,16 @@ describe('Generated LightSource ProtoBuf', () => {
2222
const LightSource = components.LightSource(newEngine)
2323

2424
testComponentSerialization(LightSource, {
25-
type: LightSource.Type.Spot({
26-
innerAngle: 0,
27-
outerAngle: 0,
28-
shadowMaskTexture: undefined,
29-
shadow: components.PBLightSource_ShadowType.ST_NONE
30-
}),
3125
active: true,
3226
color: { r: 1, g: 1, b: 1 },
33-
brightness: 1,
34-
range: 10
27+
intensity: 1,
28+
range: 10,
29+
shadowMaskTexture: undefined,
30+
shadow: true,
31+
type: LightSource.Type.Spot({
32+
innerAngle: 0,
33+
outerAngle: 0
34+
})
3535
})
3636
})
3737
})

test/snapshots/development-bundles/static-scene.test.ts.crdt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SCENE_COMPILED_JS_SIZE_PROD=481.1k bytes
1+
SCENE_COMPILED_JS_SIZE_PROD=480.5k bytes
22
THE BUNDLE HAS SOURCEMAPS
33
(start empty vm 0.21.0-3680274614.commit-1808aa1)
44
OPCODES ~= 0k
@@ -11,7 +11,7 @@ EVAL test/snapshots/development-bundles/static-scene.test.js
1111
REQUIRE: ~system/EngineApi
1212
REQUIRE: ~system/EngineApi
1313
OPCODES ~= 56k
14-
MALLOC_COUNT = 14180
14+
MALLOC_COUNT = 14173
1515
ALIVE_OBJS_DELTA ~= 2.80k
1616
CALL onStart()
1717
main.crdt: PUT_COMPONENT e=0x200 c=1 t=0 data={"position":{"x":5.880000114440918,"y":2.7916901111602783,"z":7.380000114440918},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":1,"y":1,"z":1},"parent":0}
@@ -56,4 +56,4 @@ CALL onUpdate(0.1)
5656
OPCODES ~= 3k
5757
MALLOC_COUNT = -5
5858
ALIVE_OBJS_DELTA ~= 0.00k
59-
MEMORY_USAGE_COUNT ~= 1242.86k bytes
59+
MEMORY_USAGE_COUNT ~= 1242.23k bytes

test/snapshots/development-bundles/testing-fw.test.ts.crdt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SCENE_COMPILED_JS_SIZE_PROD=481.6k bytes
1+
SCENE_COMPILED_JS_SIZE_PROD=481k bytes
22
THE BUNDLE HAS SOURCEMAPS
33
(start empty vm 0.21.0-3680274614.commit-1808aa1)
44
OPCODES ~= 0k
@@ -11,7 +11,7 @@ EVAL test/snapshots/development-bundles/testing-fw.test.js
1111
REQUIRE: ~system/EngineApi
1212
REQUIRE: ~system/EngineApi
1313
OPCODES ~= 65k
14-
MALLOC_COUNT = 14705
14+
MALLOC_COUNT = 14698
1515
ALIVE_OBJS_DELTA ~= 2.95k
1616
CALL onStart()
1717
LOG: ["Adding one to position.y=0"]
@@ -64,4 +64,4 @@ CALL onUpdate(0.1)
6464
OPCODES ~= 5k
6565
MALLOC_COUNT = -40
6666
ALIVE_OBJS_DELTA ~= -0.01k
67-
MEMORY_USAGE_COUNT ~= 1251.55k bytes
67+
MEMORY_USAGE_COUNT ~= 1250.91k bytes

test/snapshots/development-bundles/two-way-crdt.test.ts.crdt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SCENE_COMPILED_JS_SIZE_PROD=481.6k bytes
1+
SCENE_COMPILED_JS_SIZE_PROD=481k bytes
22
THE BUNDLE HAS SOURCEMAPS
33
(start empty vm 0.21.0-3680274614.commit-1808aa1)
44
OPCODES ~= 0k
@@ -11,7 +11,7 @@ EVAL test/snapshots/development-bundles/two-way-crdt.test.js
1111
REQUIRE: ~system/EngineApi
1212
REQUIRE: ~system/EngineApi
1313
OPCODES ~= 65k
14-
MALLOC_COUNT = 14705
14+
MALLOC_COUNT = 14698
1515
ALIVE_OBJS_DELTA ~= 2.95k
1616
CALL onStart()
1717
LOG: ["Adding one to position.y=0"]
@@ -64,4 +64,4 @@ CALL onUpdate(0.1)
6464
OPCODES ~= 5k
6565
MALLOC_COUNT = -40
6666
ALIVE_OBJS_DELTA ~= -0.01k
67-
MEMORY_USAGE_COUNT ~= 1251.55k bytes
67+
MEMORY_USAGE_COUNT ~= 1250.92k bytes

test/snapshots/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)