@combos-fun/plugin-renderer-3d 0.0.51 → 0.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -558,31 +558,94 @@ class Transform3D extends engine.Component {
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
tslib.__decorate([
|
|
561
|
-
inspectorDecorator.Field({
|
|
561
|
+
inspectorDecorator.Field({
|
|
562
|
+
type: 'number',
|
|
563
|
+
step: 0.1,
|
|
564
|
+
group: 'Transform3D',
|
|
565
|
+
label: 'positionX',
|
|
566
|
+
description: 'Local X position.',
|
|
567
|
+
editor: 'number-stepper',
|
|
568
|
+
})
|
|
562
569
|
], Transform3D.prototype, "positionX", void 0);
|
|
563
570
|
tslib.__decorate([
|
|
564
|
-
inspectorDecorator.Field({
|
|
571
|
+
inspectorDecorator.Field({
|
|
572
|
+
type: 'number',
|
|
573
|
+
step: 0.1,
|
|
574
|
+
group: 'Transform3D',
|
|
575
|
+
label: 'positionY',
|
|
576
|
+
description: 'Local Y position.',
|
|
577
|
+
editor: 'number-stepper',
|
|
578
|
+
})
|
|
565
579
|
], Transform3D.prototype, "positionY", void 0);
|
|
566
580
|
tslib.__decorate([
|
|
567
|
-
inspectorDecorator.Field({
|
|
581
|
+
inspectorDecorator.Field({
|
|
582
|
+
type: 'number',
|
|
583
|
+
step: 0.1,
|
|
584
|
+
group: 'Transform3D',
|
|
585
|
+
label: 'positionZ',
|
|
586
|
+
description: 'Local Z position.',
|
|
587
|
+
editor: 'number-stepper',
|
|
588
|
+
})
|
|
568
589
|
], Transform3D.prototype, "positionZ", void 0);
|
|
569
590
|
tslib.__decorate([
|
|
570
|
-
inspectorDecorator.Field({
|
|
591
|
+
inspectorDecorator.Field({
|
|
592
|
+
type: 'number',
|
|
593
|
+
step: 0.01,
|
|
594
|
+
group: 'Transform3D',
|
|
595
|
+
label: 'rotationX',
|
|
596
|
+
description: 'Rotation around X in radians.',
|
|
597
|
+
editor: 'number-stepper',
|
|
598
|
+
})
|
|
571
599
|
], Transform3D.prototype, "rotationX", void 0);
|
|
572
600
|
tslib.__decorate([
|
|
573
|
-
inspectorDecorator.Field({
|
|
601
|
+
inspectorDecorator.Field({
|
|
602
|
+
type: 'number',
|
|
603
|
+
step: 0.01,
|
|
604
|
+
group: 'Transform3D',
|
|
605
|
+
label: 'rotationY',
|
|
606
|
+
description: 'Rotation around Y in radians.',
|
|
607
|
+
editor: 'number-stepper',
|
|
608
|
+
})
|
|
574
609
|
], Transform3D.prototype, "rotationY", void 0);
|
|
575
610
|
tslib.__decorate([
|
|
576
|
-
inspectorDecorator.Field({
|
|
611
|
+
inspectorDecorator.Field({
|
|
612
|
+
type: 'number',
|
|
613
|
+
step: 0.01,
|
|
614
|
+
group: 'Transform3D',
|
|
615
|
+
label: 'rotationZ',
|
|
616
|
+
description: 'Rotation around Z in radians.',
|
|
617
|
+
editor: 'number-stepper',
|
|
618
|
+
})
|
|
577
619
|
], Transform3D.prototype, "rotationZ", void 0);
|
|
578
620
|
tslib.__decorate([
|
|
579
|
-
inspectorDecorator.Field({
|
|
621
|
+
inspectorDecorator.Field({
|
|
622
|
+
type: 'number',
|
|
623
|
+
step: 0.1,
|
|
624
|
+
group: 'Transform3D',
|
|
625
|
+
label: 'scaleX',
|
|
626
|
+
description: 'Scale on X.',
|
|
627
|
+
editor: 'number-stepper',
|
|
628
|
+
})
|
|
580
629
|
], Transform3D.prototype, "scaleX", void 0);
|
|
581
630
|
tslib.__decorate([
|
|
582
|
-
inspectorDecorator.Field({
|
|
631
|
+
inspectorDecorator.Field({
|
|
632
|
+
type: 'number',
|
|
633
|
+
step: 0.1,
|
|
634
|
+
group: 'Transform3D',
|
|
635
|
+
label: 'scaleY',
|
|
636
|
+
description: 'Scale on Y.',
|
|
637
|
+
editor: 'number-stepper',
|
|
638
|
+
})
|
|
583
639
|
], Transform3D.prototype, "scaleY", void 0);
|
|
584
640
|
tslib.__decorate([
|
|
585
|
-
inspectorDecorator.Field({
|
|
641
|
+
inspectorDecorator.Field({
|
|
642
|
+
type: 'number',
|
|
643
|
+
step: 0.1,
|
|
644
|
+
group: 'Transform3D',
|
|
645
|
+
label: 'scaleZ',
|
|
646
|
+
description: 'Scale on Z.',
|
|
647
|
+
editor: 'number-stepper',
|
|
648
|
+
})
|
|
586
649
|
], Transform3D.prototype, "scaleZ", void 0);
|
|
587
650
|
|
|
588
651
|
let Renderer3DSystem$1 = class Renderer3DSystem extends engine.System {
|
|
@@ -671,7 +734,7 @@ var Renderer3DSystem = Renderer3DSystem$1;
|
|
|
671
734
|
/** Auto-generated by scripts/build-package.mjs — do not edit. */
|
|
672
735
|
Object.assign(Renderer3DSystem, {
|
|
673
736
|
packageName: "@combos-fun/plugin-renderer-3d",
|
|
674
|
-
packageVersion: "0.0.
|
|
737
|
+
packageVersion: "0.0.53",
|
|
675
738
|
});
|
|
676
739
|
|
|
677
740
|
class Renderer3D extends engine.System {
|
|
@@ -777,16 +840,44 @@ class Render3D extends engine.Component {
|
|
|
777
840
|
}
|
|
778
841
|
}
|
|
779
842
|
tslib.__decorate([
|
|
780
|
-
inspectorDecorator.Field({
|
|
843
|
+
inspectorDecorator.Field({
|
|
844
|
+
type: 'boolean',
|
|
845
|
+
group: 'Render3D',
|
|
846
|
+
label: 'visible',
|
|
847
|
+
description: 'Whether this object is drawn.',
|
|
848
|
+
editor: 'toggle',
|
|
849
|
+
})
|
|
781
850
|
], Render3D.prototype, "visible", void 0);
|
|
782
851
|
tslib.__decorate([
|
|
783
|
-
inspectorDecorator.Field({
|
|
852
|
+
inspectorDecorator.Field({
|
|
853
|
+
type: 'number',
|
|
854
|
+
step: 0.01,
|
|
855
|
+
min: 0,
|
|
856
|
+
max: 1,
|
|
857
|
+
group: 'Render3D',
|
|
858
|
+
label: 'opacity',
|
|
859
|
+
description: 'Opacity from 0 to 1.',
|
|
860
|
+
editor: 'number-slider',
|
|
861
|
+
})
|
|
784
862
|
], Render3D.prototype, "opacity", void 0);
|
|
785
863
|
tslib.__decorate([
|
|
786
|
-
inspectorDecorator.Field({
|
|
864
|
+
inspectorDecorator.Field({
|
|
865
|
+
type: 'number',
|
|
866
|
+
step: 1,
|
|
867
|
+
group: 'Render3D',
|
|
868
|
+
label: 'renderOrder',
|
|
869
|
+
description: 'Draw order; higher values render on top.',
|
|
870
|
+
editor: 'number-stepper',
|
|
871
|
+
})
|
|
787
872
|
], Render3D.prototype, "renderOrder", void 0);
|
|
788
873
|
tslib.__decorate([
|
|
789
|
-
inspectorDecorator.Field({
|
|
874
|
+
inspectorDecorator.Field({
|
|
875
|
+
type: 'boolean',
|
|
876
|
+
group: 'Render3D',
|
|
877
|
+
label: 'sortableChildren',
|
|
878
|
+
description: 'When on, children are sorted by their render order before drawing.',
|
|
879
|
+
editor: 'toggle',
|
|
880
|
+
})
|
|
790
881
|
], Render3D.prototype, "sortableChildren", void 0);
|
|
791
882
|
|
|
792
883
|
let Render3DSystem = class Render3DSystem extends Renderer3D {
|
|
@@ -889,28 +980,82 @@ class Camera3D extends engine.Component {
|
|
|
889
980
|
}
|
|
890
981
|
}
|
|
891
982
|
tslib.__decorate([
|
|
892
|
-
inspectorDecorator.Field({
|
|
983
|
+
inspectorDecorator.Field({
|
|
984
|
+
type: 'number',
|
|
985
|
+
step: 1,
|
|
986
|
+
group: 'Camera3D',
|
|
987
|
+
label: 'fov',
|
|
988
|
+
description: 'Vertical field of view in degrees.',
|
|
989
|
+
editor: 'number-stepper',
|
|
990
|
+
})
|
|
893
991
|
], Camera3D.prototype, "fov", void 0);
|
|
894
992
|
tslib.__decorate([
|
|
895
|
-
inspectorDecorator.Field({
|
|
993
|
+
inspectorDecorator.Field({
|
|
994
|
+
type: 'number',
|
|
995
|
+
step: 0.01,
|
|
996
|
+
group: 'Camera3D',
|
|
997
|
+
label: 'near',
|
|
998
|
+
description: 'Near clipping plane.',
|
|
999
|
+
editor: 'number-stepper',
|
|
1000
|
+
})
|
|
896
1001
|
], Camera3D.prototype, "near", void 0);
|
|
897
1002
|
tslib.__decorate([
|
|
898
|
-
inspectorDecorator.Field({
|
|
1003
|
+
inspectorDecorator.Field({
|
|
1004
|
+
type: 'number',
|
|
1005
|
+
step: 1,
|
|
1006
|
+
group: 'Camera3D',
|
|
1007
|
+
label: 'far',
|
|
1008
|
+
description: 'Far clipping plane.',
|
|
1009
|
+
editor: 'number-stepper',
|
|
1010
|
+
})
|
|
899
1011
|
], Camera3D.prototype, "far", void 0);
|
|
900
1012
|
tslib.__decorate([
|
|
901
|
-
inspectorDecorator.Field({
|
|
1013
|
+
inspectorDecorator.Field({
|
|
1014
|
+
type: 'boolean',
|
|
1015
|
+
group: 'Camera3D',
|
|
1016
|
+
label: 'active',
|
|
1017
|
+
description: 'Use this camera for rendering.',
|
|
1018
|
+
editor: 'toggle',
|
|
1019
|
+
})
|
|
902
1020
|
], Camera3D.prototype, "active", void 0);
|
|
903
1021
|
tslib.__decorate([
|
|
904
|
-
inspectorDecorator.Field({
|
|
1022
|
+
inspectorDecorator.Field({
|
|
1023
|
+
type: 'boolean',
|
|
1024
|
+
group: 'Camera3D',
|
|
1025
|
+
label: 'lookAt',
|
|
1026
|
+
description: 'Point the camera at lookAtX/Y/Z each frame.',
|
|
1027
|
+
editor: 'toggle',
|
|
1028
|
+
})
|
|
905
1029
|
], Camera3D.prototype, "lookAt", void 0);
|
|
906
1030
|
tslib.__decorate([
|
|
907
|
-
inspectorDecorator.Field({
|
|
1031
|
+
inspectorDecorator.Field({
|
|
1032
|
+
type: 'number',
|
|
1033
|
+
step: 0.1,
|
|
1034
|
+
group: 'Camera3D',
|
|
1035
|
+
label: 'lookAtX',
|
|
1036
|
+
description: 'World-space look-at target on X.',
|
|
1037
|
+
editor: 'number-stepper',
|
|
1038
|
+
})
|
|
908
1039
|
], Camera3D.prototype, "lookAtX", void 0);
|
|
909
1040
|
tslib.__decorate([
|
|
910
|
-
inspectorDecorator.Field({
|
|
1041
|
+
inspectorDecorator.Field({
|
|
1042
|
+
type: 'number',
|
|
1043
|
+
step: 0.1,
|
|
1044
|
+
group: 'Camera3D',
|
|
1045
|
+
label: 'lookAtY',
|
|
1046
|
+
description: 'World-space look-at target on Y.',
|
|
1047
|
+
editor: 'number-stepper',
|
|
1048
|
+
})
|
|
911
1049
|
], Camera3D.prototype, "lookAtY", void 0);
|
|
912
1050
|
tslib.__decorate([
|
|
913
|
-
inspectorDecorator.Field({
|
|
1051
|
+
inspectorDecorator.Field({
|
|
1052
|
+
type: 'number',
|
|
1053
|
+
step: 0.1,
|
|
1054
|
+
group: 'Camera3D',
|
|
1055
|
+
label: 'lookAtZ',
|
|
1056
|
+
description: 'World-space look-at target on Z.',
|
|
1057
|
+
editor: 'number-stepper',
|
|
1058
|
+
})
|
|
914
1059
|
], Camera3D.prototype, "lookAtZ", void 0);
|
|
915
1060
|
|
|
916
1061
|
let Camera3DSystem = class Camera3DSystem extends Renderer3D {
|
|
@@ -1043,36 +1188,98 @@ tslib.__decorate([
|
|
|
1043
1188
|
type: 'string',
|
|
1044
1189
|
group: 'Light3D',
|
|
1045
1190
|
label: 'type',
|
|
1191
|
+
description: 'Light kind.',
|
|
1046
1192
|
editor: 'enum',
|
|
1047
1193
|
enumOptions: ['ambient', 'directional', 'hemisphere', 'point', 'spot'],
|
|
1048
1194
|
})
|
|
1049
1195
|
], Light3D.prototype, "type", void 0);
|
|
1050
1196
|
tslib.__decorate([
|
|
1051
|
-
inspectorDecorator.Field({
|
|
1197
|
+
inspectorDecorator.Field({
|
|
1198
|
+
type: 'number',
|
|
1199
|
+
group: 'Light3D',
|
|
1200
|
+
label: 'color',
|
|
1201
|
+
description: 'Light color (hex).',
|
|
1202
|
+
editor: 'number-stepper',
|
|
1203
|
+
})
|
|
1052
1204
|
], Light3D.prototype, "color", void 0);
|
|
1053
1205
|
tslib.__decorate([
|
|
1054
|
-
inspectorDecorator.Field({
|
|
1206
|
+
inspectorDecorator.Field({
|
|
1207
|
+
type: 'number',
|
|
1208
|
+
step: 0.05,
|
|
1209
|
+
group: 'Light3D',
|
|
1210
|
+
label: 'intensity',
|
|
1211
|
+
description: 'Light intensity.',
|
|
1212
|
+
editor: 'number-stepper',
|
|
1213
|
+
})
|
|
1055
1214
|
], Light3D.prototype, "intensity", void 0);
|
|
1056
1215
|
tslib.__decorate([
|
|
1057
|
-
inspectorDecorator.Field({
|
|
1216
|
+
inspectorDecorator.Field({
|
|
1217
|
+
type: 'boolean',
|
|
1218
|
+
group: 'Light3D',
|
|
1219
|
+
label: 'castShadow',
|
|
1220
|
+
description: 'Whether this light casts shadows.',
|
|
1221
|
+
editor: 'toggle',
|
|
1222
|
+
})
|
|
1058
1223
|
], Light3D.prototype, "castShadow", void 0);
|
|
1059
1224
|
tslib.__decorate([
|
|
1060
|
-
inspectorDecorator.Field({
|
|
1225
|
+
inspectorDecorator.Field({
|
|
1226
|
+
type: 'number',
|
|
1227
|
+
group: 'Light3D',
|
|
1228
|
+
label: 'skyColor',
|
|
1229
|
+
description: 'Hemisphere sky color (hex).',
|
|
1230
|
+
editor: 'number-stepper',
|
|
1231
|
+
})
|
|
1061
1232
|
], Light3D.prototype, "skyColor", void 0);
|
|
1062
1233
|
tslib.__decorate([
|
|
1063
|
-
inspectorDecorator.Field({
|
|
1234
|
+
inspectorDecorator.Field({
|
|
1235
|
+
type: 'number',
|
|
1236
|
+
group: 'Light3D',
|
|
1237
|
+
label: 'groundColor',
|
|
1238
|
+
description: 'Hemisphere ground color (hex).',
|
|
1239
|
+
editor: 'number-stepper',
|
|
1240
|
+
})
|
|
1064
1241
|
], Light3D.prototype, "groundColor", void 0);
|
|
1065
1242
|
tslib.__decorate([
|
|
1066
|
-
inspectorDecorator.Field({
|
|
1243
|
+
inspectorDecorator.Field({
|
|
1244
|
+
type: 'number',
|
|
1245
|
+
step: 0.1,
|
|
1246
|
+
group: 'Light3D',
|
|
1247
|
+
label: 'distance',
|
|
1248
|
+
description: 'Range for point and spot lights. 0 means no limit.',
|
|
1249
|
+
editor: 'number-stepper',
|
|
1250
|
+
})
|
|
1067
1251
|
], Light3D.prototype, "distance", void 0);
|
|
1068
1252
|
tslib.__decorate([
|
|
1069
|
-
inspectorDecorator.Field({
|
|
1253
|
+
inspectorDecorator.Field({
|
|
1254
|
+
type: 'number',
|
|
1255
|
+
step: 0.1,
|
|
1256
|
+
group: 'Light3D',
|
|
1257
|
+
label: 'decay',
|
|
1258
|
+
description: 'Intensity falloff for point and spot lights.',
|
|
1259
|
+
editor: 'number-stepper',
|
|
1260
|
+
})
|
|
1070
1261
|
], Light3D.prototype, "decay", void 0);
|
|
1071
1262
|
tslib.__decorate([
|
|
1072
|
-
inspectorDecorator.Field({
|
|
1263
|
+
inspectorDecorator.Field({
|
|
1264
|
+
type: 'number',
|
|
1265
|
+
step: 0.01,
|
|
1266
|
+
group: 'Light3D',
|
|
1267
|
+
label: 'angle',
|
|
1268
|
+
description: 'Spot light cone angle in radians.',
|
|
1269
|
+
editor: 'number-stepper',
|
|
1270
|
+
})
|
|
1073
1271
|
], Light3D.prototype, "angle", void 0);
|
|
1074
1272
|
tslib.__decorate([
|
|
1075
|
-
inspectorDecorator.Field({
|
|
1273
|
+
inspectorDecorator.Field({
|
|
1274
|
+
type: 'number',
|
|
1275
|
+
step: 0.01,
|
|
1276
|
+
min: 0,
|
|
1277
|
+
max: 1,
|
|
1278
|
+
group: 'Light3D',
|
|
1279
|
+
label: 'penumbra',
|
|
1280
|
+
description: 'Spot light soft edge (0–1).',
|
|
1281
|
+
editor: 'number-slider',
|
|
1282
|
+
})
|
|
1076
1283
|
], Light3D.prototype, "penumbra", void 0);
|
|
1077
1284
|
|
|
1078
1285
|
let Light3DSystem = class Light3DSystem extends Renderer3D {
|