@dcl/sdk 7.0.0-2906745229.commit-d06bc1c → 7.0.0-2906812801.commit-277a94d
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.
package/dist/ecs7/index.d.ts
CHANGED
@@ -235,6 +235,8 @@ export declare namespace Components {
|
|
235
235
|
/** @public */
|
236
236
|
const GLTFShape: ComponentDefinition<ISchema<PBGLTFShape>>;
|
237
237
|
/** @public */
|
238
|
+
const Material: ComponentDefinition<ISchema<PBMaterial>>;
|
239
|
+
/** @public */
|
238
240
|
const NFTShape: ComponentDefinition<ISchema<PBNFTShape>>;
|
239
241
|
/** @public */
|
240
242
|
const OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>>;
|
@@ -445,6 +447,7 @@ declare function defineLibraryComponents({ defineComponentFromSchema }: Pick<IEn
|
|
445
447
|
CameraModeArea: ComponentDefinition<ISchema<PBCameraModeArea>>;
|
446
448
|
CylinderShape: ComponentDefinition<ISchema<PBCylinderShape>>;
|
447
449
|
GLTFShape: ComponentDefinition<ISchema<PBGLTFShape>>;
|
450
|
+
Material: ComponentDefinition<ISchema<PBMaterial>>;
|
448
451
|
NFTShape: ComponentDefinition<ISchema<PBNFTShape>>;
|
449
452
|
OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>>;
|
450
453
|
OnPointerDownResult: ComponentDefinition<ISchema<PBOnPointerDownResult>>;
|
@@ -503,6 +506,13 @@ declare type ExcludeUndefined<T> = {
|
|
503
506
|
[P in keyof T]: undefined extends T[P] ? never : P;
|
504
507
|
}[keyof T];
|
505
508
|
|
509
|
+
declare const enum FilterMode {
|
510
|
+
Point = 0,
|
511
|
+
Bilinear = 1,
|
512
|
+
Trilinear = 2,
|
513
|
+
UNRECOGNIZED = -1
|
514
|
+
}
|
515
|
+
|
506
516
|
/** @public */
|
507
517
|
export declare type float = number;
|
508
518
|
|
@@ -667,6 +677,9 @@ export declare interface ISize {
|
|
667
677
|
|
668
678
|
export declare const log: (...a: any[]) => void;
|
669
679
|
|
680
|
+
/** @public */
|
681
|
+
export declare const Material: ComponentDefinition<ISchema<PBMaterial>>;
|
682
|
+
|
670
683
|
/**
|
671
684
|
* Class used to store matrix data (4x4)
|
672
685
|
* @public
|
@@ -1523,6 +1536,49 @@ declare interface PBGLTFShape {
|
|
1523
1536
|
src: string;
|
1524
1537
|
}
|
1525
1538
|
|
1539
|
+
declare interface PBMaterial {
|
1540
|
+
/** default = null */
|
1541
|
+
texture?: PBMaterial_Texture | undefined;
|
1542
|
+
/** default = 0.5. range value: from 0 to 1 */
|
1543
|
+
alphaTest?: number | undefined;
|
1544
|
+
/** default = true */
|
1545
|
+
castShadows?: boolean | undefined;
|
1546
|
+
/** default = null */
|
1547
|
+
alphaTexture?: PBMaterial_Texture | undefined;
|
1548
|
+
/** default = null */
|
1549
|
+
emissiveTexture?: PBMaterial_Texture | undefined;
|
1550
|
+
/** default = null */
|
1551
|
+
bumpTexture?: PBMaterial_Texture | undefined;
|
1552
|
+
/** default = white; */
|
1553
|
+
albedoColor?: Color3 | undefined;
|
1554
|
+
/** default = black; */
|
1555
|
+
emissiveColor?: Color3 | undefined;
|
1556
|
+
/** default = white; */
|
1557
|
+
reflectivityColor?: Color3 | undefined;
|
1558
|
+
/** default = TransparencyMode.Auto */
|
1559
|
+
transparencyMode?: TransparencyMode | undefined;
|
1560
|
+
/** default = 0.5 */
|
1561
|
+
metallic?: number | undefined;
|
1562
|
+
/** default = 0.5 */
|
1563
|
+
roughness?: number | undefined;
|
1564
|
+
/** default = 1 */
|
1565
|
+
glossiness?: number | undefined;
|
1566
|
+
/** default = 1 */
|
1567
|
+
specularIntensity?: number | undefined;
|
1568
|
+
/** default = 2 */
|
1569
|
+
emissiveIntensity?: number | undefined;
|
1570
|
+
/** default = 1 */
|
1571
|
+
directIntensity?: number | undefined;
|
1572
|
+
}
|
1573
|
+
|
1574
|
+
declare interface PBMaterial_Texture {
|
1575
|
+
src: string;
|
1576
|
+
/** default = TextureWrapMode.Clamp */
|
1577
|
+
wrapMode?: TextureWrapMode | undefined;
|
1578
|
+
/** default = FilterMode.Bilinear */
|
1579
|
+
filterMode?: FilterMode | undefined;
|
1580
|
+
}
|
1581
|
+
|
1526
1582
|
declare interface PBNFTShape {
|
1527
1583
|
/** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
|
1528
1584
|
withCollisions?: boolean | undefined;
|
@@ -1993,6 +2049,14 @@ export declare const SphereShape: ComponentDefinition<ISchema<PBSphereShape>>;
|
|
1993
2049
|
/** @public */
|
1994
2050
|
export declare const TextShape: ComponentDefinition<ISchema<PBTextShape>>;
|
1995
2051
|
|
2052
|
+
declare const enum TextureWrapMode {
|
2053
|
+
Repeat = 0,
|
2054
|
+
Clamp = 1,
|
2055
|
+
Mirror = 2,
|
2056
|
+
MirrorOnce = 3,
|
2057
|
+
UNRECOGNIZED = -1
|
2058
|
+
}
|
2059
|
+
|
1996
2060
|
/**
|
1997
2061
|
* Constant used to convert a value to gamma space
|
1998
2062
|
* @public
|
@@ -2028,6 +2092,15 @@ z: number;
|
|
2028
2092
|
parent?: Entity | undefined;
|
2029
2093
|
}>>;
|
2030
2094
|
|
2095
|
+
declare const enum TransparencyMode {
|
2096
|
+
Opaque = 0,
|
2097
|
+
AlphaTest = 1,
|
2098
|
+
AlphaBlend = 2,
|
2099
|
+
AlphaTestAndAlphaBlend = 3,
|
2100
|
+
Auto = 4,
|
2101
|
+
UNRECOGNIZED = -1
|
2102
|
+
}
|
2103
|
+
|
2031
2104
|
export declare type Transport = {
|
2032
2105
|
type: string;
|
2033
2106
|
send(message: Uint8Array): void;
|