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