rhodonite 0.8.4 → 0.8.7
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/VERSION-FILE +1 -1
- package/dist/cjs/foundation/cameras/OrbitCameraController.d.ts +1 -0
- package/dist/cjs/foundation/components/Animation/AnimationComponent.d.ts +9 -4
- package/dist/cjs/foundation/components/Animation/AnimationConstants.d.ts +1 -0
- package/dist/cjs/foundation/components/Animation/index.d.ts +1 -0
- package/dist/cjs/foundation/components/Camera/CameraComponent.d.ts +3 -1
- package/dist/cjs/foundation/components/Light/LightComponent.d.ts +1 -0
- package/dist/cjs/foundation/components/SceneGraph/SceneGraphComponent.d.ts +6 -2
- package/dist/cjs/foundation/components/Skeletal/SkeletalComponent.d.ts +0 -2
- package/dist/cjs/foundation/core/Component.d.ts +17 -1
- package/dist/cjs/foundation/core/Entity.d.ts +3 -0
- package/dist/cjs/foundation/core/EntityRepository.d.ts +6 -0
- package/dist/cjs/foundation/core/GlobalDataRepository.d.ts +8 -4
- package/dist/cjs/foundation/definitions/AnimationAttribute.d.ts +1 -0
- package/dist/cjs/foundation/definitions/ShaderSemantics.d.ts +12 -3
- package/dist/cjs/foundation/definitions/VertexAttribute.d.ts +1 -1
- package/dist/cjs/foundation/geometry/Mesh.d.ts +2 -25
- package/dist/cjs/foundation/gizmos/ScaleGizmo.d.ts +4 -4
- package/dist/cjs/foundation/gizmos/TranslationGizmo.d.ts +5 -5
- package/dist/cjs/foundation/helpers/MaterialHelper.d.ts +3 -3
- package/dist/cjs/foundation/importer/Gltf2Importer.d.ts +2 -2
- package/dist/cjs/foundation/importer/ModelConverter.d.ts +0 -2
- package/dist/cjs/foundation/materials/contents/CustomMaterialContent.d.ts +3 -1
- package/dist/cjs/foundation/materials/contents/index.d.ts +0 -1
- package/dist/cjs/foundation/materials/core/AbstractMaterialContent.d.ts +9 -7
- package/dist/cjs/foundation/math/MutableScalar.d.ts +1 -0
- package/dist/cjs/foundation/math/Scalar.d.ts +1 -0
- package/dist/cjs/foundation/misc/DataUtil.d.ts +1 -1
- package/dist/cjs/foundation/misc/ImageUtil.d.ts +9 -0
- package/dist/cjs/foundation/misc/Option.d.ts +5 -4
- package/dist/cjs/foundation/renderer/index.d.ts +1 -0
- package/dist/cjs/foundation/renderer/pipelines/ForwardRenderPipeline.d.ts +112 -12
- package/dist/cjs/foundation/renderer/pipelines/index.d.ts +1 -0
- package/dist/cjs/foundation/system/InputManager.d.ts +4 -4
- package/dist/cjs/foundation/system/System.d.ts +1 -1
- package/dist/cjs/foundation/textures/Texture.d.ts +1 -1
- package/dist/cjs/index.cjs +2415 -1509
- package/dist/cjs/pbr/main.d.ts +1 -2
- package/dist/cjs/types/AnimationTypes.d.ts +1 -1
- package/dist/cjs/types/CommonTypes.d.ts +1 -0
- package/dist/cjs/types/RnM2.d.ts +9 -0
- package/dist/cjs/types/glTF2.d.ts +6 -2
- package/dist/cjs/webgl/WebGLResourceRepository.d.ts +2 -2
- package/dist/cjs/xr/WebARSystem.d.ts +70 -0
- package/dist/cjs/xr/main.d.ts +2 -0
- package/dist/esm/foundation/cameras/OrbitCameraController.d.ts +1 -0
- package/dist/esm/foundation/components/Animation/AnimationComponent.d.ts +9 -4
- package/dist/esm/foundation/components/Animation/AnimationConstants.d.ts +1 -0
- package/dist/esm/foundation/components/Animation/index.d.ts +1 -0
- package/dist/esm/foundation/components/Camera/CameraComponent.d.ts +3 -1
- package/dist/esm/foundation/components/Light/LightComponent.d.ts +1 -0
- package/dist/esm/foundation/components/SceneGraph/SceneGraphComponent.d.ts +6 -2
- package/dist/esm/foundation/components/Skeletal/SkeletalComponent.d.ts +0 -2
- package/dist/esm/foundation/core/Component.d.ts +17 -1
- package/dist/esm/foundation/core/Entity.d.ts +3 -0
- package/dist/esm/foundation/core/EntityRepository.d.ts +6 -0
- package/dist/esm/foundation/core/GlobalDataRepository.d.ts +8 -4
- package/dist/esm/foundation/definitions/AnimationAttribute.d.ts +1 -0
- package/dist/esm/foundation/definitions/ShaderSemantics.d.ts +12 -3
- package/dist/esm/foundation/definitions/VertexAttribute.d.ts +1 -1
- package/dist/esm/foundation/geometry/Mesh.d.ts +2 -25
- package/dist/esm/foundation/gizmos/ScaleGizmo.d.ts +4 -4
- package/dist/esm/foundation/gizmos/TranslationGizmo.d.ts +5 -5
- package/dist/esm/foundation/helpers/MaterialHelper.d.ts +3 -3
- package/dist/esm/foundation/importer/Gltf2Importer.d.ts +2 -2
- package/dist/esm/foundation/importer/ModelConverter.d.ts +0 -2
- package/dist/esm/foundation/materials/contents/CustomMaterialContent.d.ts +3 -1
- package/dist/esm/foundation/materials/contents/index.d.ts +0 -1
- package/dist/esm/foundation/materials/core/AbstractMaterialContent.d.ts +9 -7
- package/dist/esm/foundation/math/MutableScalar.d.ts +1 -0
- package/dist/esm/foundation/math/Scalar.d.ts +1 -0
- package/dist/esm/foundation/misc/DataUtil.d.ts +1 -1
- package/dist/esm/foundation/misc/ImageUtil.d.ts +9 -0
- package/dist/esm/foundation/misc/Option.d.ts +5 -4
- package/dist/esm/foundation/renderer/index.d.ts +1 -0
- package/dist/esm/foundation/renderer/pipelines/ForwardRenderPipeline.d.ts +112 -12
- package/dist/esm/foundation/renderer/pipelines/index.d.ts +1 -0
- package/dist/esm/foundation/system/InputManager.d.ts +4 -4
- package/dist/esm/foundation/system/System.d.ts +1 -1
- package/dist/esm/foundation/textures/Texture.d.ts +1 -1
- package/dist/esm/index.mjs +2411 -1506
- package/dist/esm/pbr/main.d.ts +1 -2
- package/dist/esm/types/AnimationTypes.d.ts +1 -1
- package/dist/esm/types/CommonTypes.d.ts +1 -0
- package/dist/esm/types/RnM2.d.ts +9 -0
- package/dist/esm/types/glTF2.d.ts +6 -2
- package/dist/esm/webgl/WebGLResourceRepository.d.ts +2 -2
- package/dist/esm/xr/WebARSystem.d.ts +70 -0
- package/dist/esm/xr/main.d.ts +2 -0
- package/package.json +1 -13
- package/dist/cjs/foundation/misc/ManualCache.d.ts +0 -30
- package/dist/esm/foundation/misc/ManualCache.d.ts +0 -30
package/VERSION-FILE
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
v0.8.
|
|
1
|
+
v0.8.7-0-gb0b68f78-dirty
|
|
2
2
|
master
|
|
@@ -74,6 +74,7 @@ export declare class OrbitCameraController extends AbstractCameraController impl
|
|
|
74
74
|
private static __tmp_rotateM_Revert;
|
|
75
75
|
private static __tmpMat44_0;
|
|
76
76
|
constructor();
|
|
77
|
+
resetDollyAndTranslation(): void;
|
|
77
78
|
setTarget(targetEntity: ISceneGraphEntity): void;
|
|
78
79
|
getTarget(): ISceneGraphEntity | undefined;
|
|
79
80
|
set doPreventDefault(flag: boolean);
|
|
@@ -8,13 +8,17 @@ import { AnimationPathName, AnimationTrack, AnimationComponentEventType, Animati
|
|
|
8
8
|
import { EventHandler } from '../../system/EventPubSub';
|
|
9
9
|
import { IAnimationEntity } from '../../helpers/EntityHelper';
|
|
10
10
|
import { IEntity } from '../../core/Entity';
|
|
11
|
+
import { EffekseerComponent } from '../../../effekseer';
|
|
11
12
|
export declare class AnimationComponent extends Component {
|
|
12
13
|
private __backupDefaultValues;
|
|
13
14
|
private __currentActiveAnimationTrackName?;
|
|
14
15
|
private __animationTracks;
|
|
15
16
|
private __transformComponent?;
|
|
16
17
|
private __meshComponent?;
|
|
18
|
+
private __effekseerComponent?;
|
|
19
|
+
private __isEffekseerState;
|
|
17
20
|
private __isAnimating;
|
|
21
|
+
static isAnimating: boolean;
|
|
18
22
|
static globalTime: number;
|
|
19
23
|
static readonly Event: {
|
|
20
24
|
ChangeAnimationInfo: symbol;
|
|
@@ -41,12 +45,13 @@ export declare class AnimationComponent extends Component {
|
|
|
41
45
|
static bruteForceSearch(inputArray: Float32Array, currentTime: number): number;
|
|
42
46
|
private restoreDefaultValues;
|
|
43
47
|
private backupDefaultValues;
|
|
44
|
-
|
|
48
|
+
setIsAnimating(flg: boolean): void;
|
|
45
49
|
setAnimationToRest(): void;
|
|
46
|
-
static
|
|
50
|
+
static setIsAnimatingForAll(flg: boolean): void;
|
|
47
51
|
static setActiveAnimationForAll(animationName: AnimationTrackName): void;
|
|
48
52
|
setActiveAnimationTrack(animationName: AnimationTrackName): boolean;
|
|
49
53
|
getActiveAnimationTrack(): string | undefined;
|
|
54
|
+
hasAnimation(trackName: AnimationTrackName, pathName: AnimationPathName): boolean;
|
|
50
55
|
setAnimation(trackName: AnimationTrackName, pathName: AnimationPathName, inputArray: Float32Array, outputArray: Float32Array, outputComponentN: VectorComponentN, interpolation: AnimationInterpolationEnum, makeThisActiveAnimation?: boolean): void;
|
|
51
56
|
getStartInputValueOfAnimation(animationTrackName?: string): number;
|
|
52
57
|
getEndInputValueOfAnimation(animationTrackName?: string): number;
|
|
@@ -74,7 +79,6 @@ export declare class AnimationComponent extends Component {
|
|
|
74
79
|
get isAnimating(): boolean;
|
|
75
80
|
static get startInputValue(): number;
|
|
76
81
|
static get endInputValue(): number;
|
|
77
|
-
static get isAnimating(): boolean;
|
|
78
82
|
static get componentTID(): ComponentTID;
|
|
79
83
|
private static __prepareVariablesForCubicSpline;
|
|
80
84
|
private static __getOutputValue;
|
|
@@ -91,9 +95,10 @@ export declare class AnimationComponent extends Component {
|
|
|
91
95
|
* @param base the target entity
|
|
92
96
|
* @param _componentClass the component class to add
|
|
93
97
|
*/
|
|
94
|
-
addThisComponentToEntity<EntityBase extends IEntity, SomeComponentClass extends typeof Component>(base: EntityBase, _componentClass: SomeComponentClass): (SomeComponentClass extends typeof import("../../../sparkgear/SparkGearComponent").SparkGearComponent ? import("../../../sparkgear/SparkGearComponent").ISparkGearEntityMethods : Exclude<SomeComponentClass extends typeof
|
|
98
|
+
addThisComponentToEntity<EntityBase extends IEntity, SomeComponentClass extends typeof Component>(base: EntityBase, _componentClass: SomeComponentClass): (SomeComponentClass extends typeof import("../../../sparkgear/SparkGearComponent").SparkGearComponent ? import("../../../sparkgear/SparkGearComponent").ISparkGearEntityMethods : Exclude<SomeComponentClass extends typeof EffekseerComponent ? import("../../../effekseer").IEffekseerEntityMethods : Exclude<SomeComponentClass extends typeof import("..").PhysicsComponent ? import("..").IPhysicsEntityMethods : Exclude<SomeComponentClass extends typeof import("..").BlendShapeComponent ? import("..").IBlendShapeEntityMethods : Exclude<SomeComponentClass extends typeof import("..").SkeletalComponent ? import("..").ISkeletalEntityMethods : Exclude<SomeComponentClass extends typeof import("..").LightComponent ? import("..").ILightEntityMethods : Exclude<SomeComponentClass extends typeof import("..").CameraComponent ? import("..").ICameraEntityMethods : Exclude<SomeComponentClass extends typeof import("..").CameraControllerComponent ? import("..").ICameraControllerEntityMethods : Exclude<SomeComponentClass extends typeof import("..").MeshRendererComponent ? import("..").IMeshRendererEntityMethods : Exclude<SomeComponentClass extends typeof MeshComponent ? import("..").IMeshEntityMethods : Exclude<SomeComponentClass extends typeof import("..").SceneGraphComponent ? import("..").ISceneGraphEntityMethods : Exclude<SomeComponentClass extends typeof TransformComponent ? import("..").ITransformEntityMethods : Exclude<SomeComponentClass extends typeof AnimationComponent ? import("./IAnimationEntity").IAnimationEntityMethods : import("..").ITransformEntityMethods | import("..").ISceneGraphEntityMethods | import("..").ISkeletalEntityMethods | import("..").IMeshEntityMethods | import("..").IMeshRendererEntityMethods | import("..").ICameraEntityMethods | import("..").ICameraControllerEntityMethods | import("..").ILightEntityMethods | import("..").IBlendShapeEntityMethods | import("..").IPhysicsEntityMethods | import("../../../effekseer").IEffekseerEntityMethods | import("../../../sparkgear/SparkGearComponent").ISparkGearEntityMethods, import("..").ITransformEntityMethods>, import("..").ISceneGraphEntityMethods>, import("..").IMeshEntityMethods>, import("..").IMeshRendererEntityMethods>, import("..").ICameraControllerEntityMethods>, import("..").ICameraEntityMethods>, import("..").ILightEntityMethods>, import("..").ISkeletalEntityMethods>, import("..").IBlendShapeEntityMethods>, import("..").IPhysicsEntityMethods>, import("../../../effekseer").IEffekseerEntityMethods>, import("../../../sparkgear/SparkGearComponent").ISparkGearEntityMethods>) & EntityBase;
|
|
95
99
|
addKeyFrame(trackName: AnimationTrackName, pathName: AnimationPathName, frameToInsert: Index, fps: number): boolean;
|
|
96
100
|
addKeyFrameWithValue(trackName: AnimationTrackName, pathName: AnimationPathName, frameToInsert: Index, output: Array<number>, fps: number): boolean;
|
|
97
101
|
deleteKeysAtFrame(trackName: AnimationTrackName, pathName: AnimationPathName, frameToDelete: Index, fps: number): boolean;
|
|
98
102
|
hasKeyFramesAtFrame(trackName: AnimationTrackName, pathName: AnimationPathName, frame: Index, fps: number): boolean;
|
|
103
|
+
static setIsAnimating(flag: boolean): void;
|
|
99
104
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const defaultAnimationTrackName = "Default";
|
|
@@ -41,6 +41,8 @@ export declare class CameraComponent extends Component {
|
|
|
41
41
|
private static __tmpVector3_1;
|
|
42
42
|
private static __tmpVector3_2;
|
|
43
43
|
private static __tmpMatrix44_0;
|
|
44
|
+
_xrLeft: boolean;
|
|
45
|
+
_xrRight: boolean;
|
|
44
46
|
private __frustum;
|
|
45
47
|
constructor(entityUid: EntityUID, componentSid: ComponentSID, entityRepository: EntityRepository);
|
|
46
48
|
static set current(componentSID: ComponentSID);
|
|
@@ -105,10 +107,10 @@ export declare class CameraComponent extends Component {
|
|
|
105
107
|
get yMag(): number;
|
|
106
108
|
static get componentTID(): ComponentTID;
|
|
107
109
|
calcProjectionMatrix(): MutableMatrix44;
|
|
108
|
-
get projectionMatrix(): Matrix44;
|
|
109
110
|
calcViewMatrix(): MutableMatrix44;
|
|
110
111
|
get viewMatrix(): Matrix44;
|
|
111
112
|
set viewMatrix(viewMatrix: Matrix44);
|
|
113
|
+
get projectionMatrix(): Matrix44;
|
|
112
114
|
set projectionMatrix(projectionMatrix: Matrix44);
|
|
113
115
|
get viewProjectionMatrix(): MutableMatrix44;
|
|
114
116
|
setValuesToGlobalDataRepositoryOnlyMatrices(): void;
|
|
@@ -20,6 +20,7 @@ export declare class LightComponent extends Component {
|
|
|
20
20
|
private static __lightPositions;
|
|
21
21
|
private static __lightDirections;
|
|
22
22
|
private static __lightIntensities;
|
|
23
|
+
private static __lightProperties;
|
|
23
24
|
constructor(entityUid: EntityUID, componentSid: ComponentSID, entityRepository: EntityRepository);
|
|
24
25
|
static get componentTID(): ComponentTID;
|
|
25
26
|
get direction(): Vector3;
|
|
@@ -11,6 +11,7 @@ import { Vector4 } from '../../math/Vector4';
|
|
|
11
11
|
import { ISceneGraphEntity } from '../../helpers/EntityHelper';
|
|
12
12
|
import { IEntity } from '../../core/Entity';
|
|
13
13
|
import { RaycastResultEx2 } from '../../geometry/types/GeometryTypes';
|
|
14
|
+
import { IQuaternion } from '../../math';
|
|
14
15
|
export declare class SceneGraphComponent extends Component {
|
|
15
16
|
private __parent?;
|
|
16
17
|
private static __sceneGraphs;
|
|
@@ -26,7 +27,7 @@ export declare class SceneGraphComponent extends Component {
|
|
|
26
27
|
private __isWorldAABBDirty;
|
|
27
28
|
private static readonly __originVector3;
|
|
28
29
|
private static returnVector3;
|
|
29
|
-
|
|
30
|
+
private _isVisible;
|
|
30
31
|
private __aabbGizmo?;
|
|
31
32
|
private __locatorGizmo?;
|
|
32
33
|
private __translationGizmo?;
|
|
@@ -39,6 +40,8 @@ export declare class SceneGraphComponent extends Component {
|
|
|
39
40
|
jointIndex: number;
|
|
40
41
|
private static invertedMatrix44;
|
|
41
42
|
constructor(entityUid: EntityUID, componentSid: ComponentSID, entityRepository: EntityRepository);
|
|
43
|
+
set isVisible(flg: boolean);
|
|
44
|
+
get isVisible(): boolean;
|
|
42
45
|
set isAABBGizmoVisible(flg: boolean);
|
|
43
46
|
get isAABBGizmoVisible(): boolean;
|
|
44
47
|
set isLocatorGizmoVisible(flg: boolean);
|
|
@@ -80,6 +83,7 @@ export declare class SceneGraphComponent extends Component {
|
|
|
80
83
|
get normalMatrix(): MutableMatrix33;
|
|
81
84
|
isWorldMatrixUpToDateRecursively(): boolean;
|
|
82
85
|
private __calcWorldMatrixRecursively;
|
|
86
|
+
getQuaternionRecursively(): IQuaternion;
|
|
83
87
|
/**
|
|
84
88
|
* Collects children and itself from specified sceneGraphComponent.
|
|
85
89
|
* @param sceneGraphComponent collects children and itself from the sceneGraphComponent
|
|
@@ -124,7 +128,7 @@ export declare class SceneGraphComponent extends Component {
|
|
|
124
128
|
*/
|
|
125
129
|
get entity(): ISceneGraphEntity;
|
|
126
130
|
setTransformGizmoSpace(space: 'local' | 'world'): void;
|
|
127
|
-
|
|
131
|
+
_destroy(): void;
|
|
128
132
|
/**
|
|
129
133
|
* @override
|
|
130
134
|
* Add this component to the entity
|
|
@@ -16,9 +16,7 @@ export declare class SkeletalComponent extends Component {
|
|
|
16
16
|
private __jointMatrices?;
|
|
17
17
|
topOfJointsHierarchy?: SceneGraphComponent;
|
|
18
18
|
isSkinning: boolean;
|
|
19
|
-
isOptimizingMode: boolean;
|
|
20
19
|
private static __tmpVec3_0;
|
|
21
|
-
private static __tmpVec3_1;
|
|
22
20
|
private static __tmp_mat4;
|
|
23
21
|
private static __tmp_q;
|
|
24
22
|
private static __identityMat;
|
|
@@ -224,7 +224,23 @@ export declare class Component extends RnObject {
|
|
|
224
224
|
* @param _componentClass the component class to add
|
|
225
225
|
*/
|
|
226
226
|
addThisComponentToEntity<EntityBase extends IEntity, SomeComponentClass extends typeof Component>(base: EntityBase, _componentClass: SomeComponentClass): EntityBase & ComponentToComponentMethods<SomeComponentClass>;
|
|
227
|
+
/**
|
|
228
|
+
* Get the CompositionType of the member
|
|
229
|
+
* @param memberName - the member name
|
|
230
|
+
* @param componentClass - the component class
|
|
231
|
+
* @returns CompositionType or undefined
|
|
232
|
+
*/
|
|
227
233
|
static getCompositionTypeOfMember(memberName: string, componentClass: Function): CompositionTypeEnum | undefined;
|
|
234
|
+
/**
|
|
235
|
+
* Get the ComponentType of the member
|
|
236
|
+
* @param memberName - the member name
|
|
237
|
+
* @param componentClass - the component class
|
|
238
|
+
* @returns ComponentType or undefined
|
|
239
|
+
*/
|
|
228
240
|
static getComponentTypeOfMember(memberName: string, componentClass: Function): ComponentTypeEnum | undefined;
|
|
229
|
-
|
|
241
|
+
/**
|
|
242
|
+
* @private
|
|
243
|
+
* Mark the component as destroyed
|
|
244
|
+
*/
|
|
245
|
+
_destroy(): void;
|
|
230
246
|
}
|
|
@@ -104,5 +104,8 @@ export declare class Entity extends RnObject implements IEntity {
|
|
|
104
104
|
tryToGetSceneGraph(): SceneGraphComponent | undefined;
|
|
105
105
|
tryToGetSkeletal(): SkeletalComponent | undefined;
|
|
106
106
|
tryToGetTransform(): TransformComponent | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Mark the entity as destroyed
|
|
109
|
+
*/
|
|
107
110
|
destroy(): void;
|
|
108
111
|
}
|
|
@@ -14,6 +14,12 @@ export declare class EntityRepository {
|
|
|
14
14
|
* Creates an entity
|
|
15
15
|
*/
|
|
16
16
|
static createEntity(): IEntity;
|
|
17
|
+
/**
|
|
18
|
+
* Add a Component to the entity
|
|
19
|
+
* @param componentClass - a ComponentClass to add
|
|
20
|
+
* @param entity - the entity
|
|
21
|
+
* @returns the entity added a component
|
|
22
|
+
*/
|
|
17
23
|
static addComponentToEntity<ComponentType extends typeof Component, EntityType extends IEntity>(componentClass: ComponentType, entity: EntityType): EntityType & ComponentToComponentMethods<ComponentType>;
|
|
18
24
|
/**
|
|
19
25
|
* Remove components from the entity.
|
|
@@ -16,19 +16,23 @@ export declare class GlobalDataRepository {
|
|
|
16
16
|
private static __instance;
|
|
17
17
|
private __fields;
|
|
18
18
|
private constructor();
|
|
19
|
+
/**
|
|
20
|
+
* Initialize the GlobalDataRepository
|
|
21
|
+
* @param approach - ProcessApproachEnum for initialization
|
|
22
|
+
*/
|
|
19
23
|
initialize(approach: ProcessApproachEnum): void;
|
|
20
24
|
static getInstance(): GlobalDataRepository;
|
|
21
|
-
|
|
25
|
+
private __registerProperty;
|
|
22
26
|
takeOne(shaderSemantic: ShaderSemanticsEnum): any;
|
|
23
27
|
setValue(shaderSemantic: ShaderSemanticsEnum, countIndex: Index, value: any): void;
|
|
24
28
|
getValue(shaderSemantic: ShaderSemanticsEnum, countIndex: Index): any;
|
|
25
29
|
getGlobalPropertyStruct(propertyIndex: Index): GlobalPropertyStruct | undefined;
|
|
26
30
|
getGlobalProperties(): GlobalPropertyStruct[];
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
_setUniformLocationsForUniformModeOnly(shaderProgramUid: CGAPIResourceHandle): void;
|
|
32
|
+
_setUniformLocationsForFastestModeOnly(shaderProgramUid: CGAPIResourceHandle): void;
|
|
29
33
|
setUniformValues(shaderProgram: WebGLProgram): void;
|
|
30
34
|
getLocationOffsetOfProperty(propertyIndex: Index): IndexOf16Bytes;
|
|
31
35
|
getCurrentDataNumberOfTheProperty(propertyIndex: Index): number;
|
|
32
|
-
|
|
36
|
+
_addPropertiesStr(vertexPropertiesStr: string, pixelPropertiesStr: string, propertySetter: getShaderPropertyFunc, isWebGL2: boolean): string[];
|
|
33
37
|
}
|
|
34
38
|
export {};
|
|
@@ -45,6 +45,7 @@ export declare const ShaderSemantics: Readonly<{
|
|
|
45
45
|
LightPosition: ShaderSemanticsEnum;
|
|
46
46
|
LightDirection: ShaderSemanticsEnum;
|
|
47
47
|
LightIntensity: ShaderSemanticsEnum;
|
|
48
|
+
LightProperty: ShaderSemanticsEnum;
|
|
48
49
|
MetallicRoughnessFactor: ShaderSemanticsEnum;
|
|
49
50
|
BrdfLutTexture: ShaderSemanticsEnum;
|
|
50
51
|
DiffuseEnvTexture: ShaderSemanticsEnum;
|
|
@@ -55,8 +56,6 @@ export declare const ShaderSemantics: Readonly<{
|
|
|
55
56
|
Wireframe: ShaderSemanticsEnum;
|
|
56
57
|
DiffuseColorFactor: ShaderSemanticsEnum;
|
|
57
58
|
DiffuseColorTexture: ShaderSemanticsEnum;
|
|
58
|
-
SpecularColorFactor: ShaderSemanticsEnum;
|
|
59
|
-
SpecularColorTexture: ShaderSemanticsEnum;
|
|
60
59
|
Shininess: ShaderSemanticsEnum;
|
|
61
60
|
ShadingModel: ShaderSemanticsEnum;
|
|
62
61
|
SkinningMode: ShaderSemanticsEnum;
|
|
@@ -77,7 +76,11 @@ export declare const ShaderSemantics: Readonly<{
|
|
|
77
76
|
LightViewProjectionMatrix: ShaderSemanticsEnum;
|
|
78
77
|
Anisotropy: ShaderSemanticsEnum;
|
|
79
78
|
ClearCoatParameter: ShaderSemanticsEnum;
|
|
80
|
-
|
|
79
|
+
SheenColorFactor: ShaderSemanticsEnum;
|
|
80
|
+
SheenColorTexture: ShaderSemanticsEnum;
|
|
81
|
+
SheenRoughnessFactor: ShaderSemanticsEnum;
|
|
82
|
+
SheenRoughnessTexture: ShaderSemanticsEnum;
|
|
83
|
+
SheenLutTexture: ShaderSemanticsEnum;
|
|
81
84
|
SpecularGlossinessFactor: ShaderSemanticsEnum;
|
|
82
85
|
SpecularGlossinessTexture: ShaderSemanticsEnum;
|
|
83
86
|
ClearCoatFactor: ShaderSemanticsEnum;
|
|
@@ -121,5 +124,11 @@ export declare const ShaderSemantics: Readonly<{
|
|
|
121
124
|
envRotation: ShaderSemanticsClass;
|
|
122
125
|
EnvHdriFormat: ShaderSemanticsClass;
|
|
123
126
|
VrState: ShaderSemanticsClass;
|
|
127
|
+
EnableLinearToSrgb: ShaderSemanticsClass;
|
|
128
|
+
SpecularFactor: ShaderSemanticsClass;
|
|
129
|
+
SpecularTexture: ShaderSemanticsClass;
|
|
130
|
+
SpecularColorFactor: ShaderSemanticsClass;
|
|
131
|
+
SpecularColorTexture: ShaderSemanticsClass;
|
|
132
|
+
Ior: ShaderSemanticsClass;
|
|
124
133
|
}>;
|
|
125
134
|
export {};
|
|
@@ -2,7 +2,7 @@ import { EnumClass, EnumIO } from '../misc/EnumIO';
|
|
|
2
2
|
import { Count, Index } from '../../types/CommonTypes';
|
|
3
3
|
import { VectorComponentN } from '../../types/CommonTypes';
|
|
4
4
|
declare type ComponentChar = 'X' | 'Y' | 'Z' | 'W';
|
|
5
|
-
export declare type VertexAttributeTypeName = 'UNKNOWN' | 'POSITION' | 'NORMAL' | 'TANGENT' | 'TEXCOORD_0' | 'TEXCOORD_1' | 'COLOR_0' | 'JOINTS_0' | 'WEIGHTS_0' | 'INSTANCE' | 'FACE_NORMAL' | 'BARY_CENTRIC_COORD';
|
|
5
|
+
export declare type VertexAttributeTypeName = 'UNKNOWN' | 'POSITION' | 'NORMAL' | 'TANGENT' | 'TEXCOORD_0' | 'TEXCOORD_1' | 'TEXCOORD_2' | 'COLOR_0' | 'JOINTS_0' | 'WEIGHTS_0' | 'INSTANCE' | 'FACE_NORMAL' | 'BARY_CENTRIC_COORD';
|
|
6
6
|
export declare type VertexAttributeComponent = `${VertexAttributeTypeName}.${ComponentChar}`;
|
|
7
7
|
export declare type VertexAttributeSemanticsJoinedString = `${string}.${ComponentChar}` | `${string}.${ComponentChar},${string}.${ComponentChar}` | `${string}.${ComponentChar},${string}.${ComponentChar},${string}.${ComponentChar}` | `${string}.${ComponentChar},${string}.${ComponentChar},${string}.${ComponentChar},${string}.${ComponentChar}`;
|
|
8
8
|
export interface VertexAttributeEnum extends EnumIO {
|
|
@@ -15,22 +15,16 @@ export declare class Mesh implements IMesh {
|
|
|
15
15
|
private readonly __meshUID;
|
|
16
16
|
static readonly invalidateMeshUID = -1;
|
|
17
17
|
static __mesh_uid_count: number;
|
|
18
|
-
private __instanceIdx;
|
|
19
18
|
private __primitives;
|
|
20
19
|
private __opaquePrimitives;
|
|
21
20
|
private __transparentPrimitives;
|
|
22
21
|
private __morphPrimitives;
|
|
23
|
-
private __instanceOf?;
|
|
24
22
|
weights: number[];
|
|
25
23
|
private __localAABB;
|
|
26
24
|
private __vaoUids;
|
|
27
25
|
private __variationVBOUid;
|
|
28
|
-
private __instances;
|
|
29
|
-
_attachedEntityUID: number;
|
|
30
|
-
private __instancesDirty;
|
|
31
|
-
private static __originalMeshes;
|
|
32
26
|
private __latestPrimitivePositionAccessorVersion;
|
|
33
|
-
private
|
|
27
|
+
private __belongToEntities;
|
|
34
28
|
/**
|
|
35
29
|
* Specification of when calculate the tangent of a vertex to apply Normal texture (for pbr/MToon shader)
|
|
36
30
|
* 0: Not calculate tangent (not apply normal texture)
|
|
@@ -62,7 +56,7 @@ export declare class Mesh implements IMesh {
|
|
|
62
56
|
constructor();
|
|
63
57
|
getVaoUids(index: Index): CGAPIResourceHandle;
|
|
64
58
|
getVaoUidsByPrimitiveUid(primitiveUid: Index): CGAPIResourceHandle;
|
|
65
|
-
get
|
|
59
|
+
get meshEntitiesInner(): IMeshEntity[];
|
|
66
60
|
_belongToMeshComponent(meshComponent: MeshComponent): void;
|
|
67
61
|
/**
|
|
68
62
|
* Adds primitive.
|
|
@@ -70,11 +64,6 @@ export declare class Mesh implements IMesh {
|
|
|
70
64
|
*/
|
|
71
65
|
addPrimitive(primitive: Primitive): void;
|
|
72
66
|
private __setPrimitives;
|
|
73
|
-
/**
|
|
74
|
-
* Sets mesh.
|
|
75
|
-
* @param mesh The mesh.
|
|
76
|
-
*/
|
|
77
|
-
setOriginalMesh(mesh: Mesh): boolean;
|
|
78
67
|
/**
|
|
79
68
|
* Gets true if these primitives are all 'Blend' type
|
|
80
69
|
*/
|
|
@@ -87,12 +76,8 @@ export declare class Mesh implements IMesh {
|
|
|
87
76
|
* Gets true if these primitives are all 'Opaque' type
|
|
88
77
|
*/
|
|
89
78
|
isOpaque(): boolean;
|
|
90
|
-
isFirstOpaquePrimitiveAt(index: Index): boolean;
|
|
91
|
-
isFirstTransparentPrimitiveAt(index: Index): boolean;
|
|
92
79
|
getPrimitiveAt(i: number): Primitive;
|
|
93
80
|
getPrimitiveNumber(): number;
|
|
94
|
-
isInstanceMesh(): boolean;
|
|
95
|
-
isOriginalMesh(): boolean;
|
|
96
81
|
/**
|
|
97
82
|
* @private
|
|
98
83
|
* @returns true: updated, false: not changed (not dirty)
|
|
@@ -108,7 +93,6 @@ export declare class Mesh implements IMesh {
|
|
|
108
93
|
castRay(srcPointInLocal: IVector3, directionInLocal: IVector3, dotThreshold?: number): RaycastResultEx1;
|
|
109
94
|
get primitives(): Primitive[];
|
|
110
95
|
get meshUID(): number;
|
|
111
|
-
get instanceCountIncludeOriginal(): number;
|
|
112
96
|
/**
|
|
113
97
|
* @private
|
|
114
98
|
*/
|
|
@@ -117,13 +101,6 @@ export declare class Mesh implements IMesh {
|
|
|
117
101
|
* Gets AABB in local space.
|
|
118
102
|
*/
|
|
119
103
|
get AABB(): AABB;
|
|
120
|
-
get instanceIndex(): number;
|
|
121
|
-
/**
|
|
122
|
-
* @private
|
|
123
|
-
* Adds the other mesh to this mesh as instanced meshes.
|
|
124
|
-
* @param mesh The other mesh.
|
|
125
|
-
*/
|
|
126
|
-
_addMeshToInstanceArray(mesh: Mesh): void;
|
|
127
104
|
private __calcMorphPrimitives;
|
|
128
105
|
/**
|
|
129
106
|
* @private
|
|
@@ -40,10 +40,10 @@ export declare class ScaleGizmo extends Gizmo {
|
|
|
40
40
|
private static __zxPlaneMaterial;
|
|
41
41
|
private static __originalX;
|
|
42
42
|
private static __originalY;
|
|
43
|
-
private
|
|
44
|
-
private
|
|
45
|
-
private
|
|
46
|
-
private
|
|
43
|
+
private __pickStatedPoint;
|
|
44
|
+
private __deltaPoint;
|
|
45
|
+
private __targetScaleBackup;
|
|
46
|
+
private __isPointerDown;
|
|
47
47
|
private static __activeAxis;
|
|
48
48
|
private static __space;
|
|
49
49
|
private static __latestTargetEntity?;
|
|
@@ -31,13 +31,13 @@ export declare class TranslationGizmo extends Gizmo {
|
|
|
31
31
|
private static __zxPlaneMaterial;
|
|
32
32
|
private static __originalX;
|
|
33
33
|
private static __originalY;
|
|
34
|
-
private
|
|
35
|
-
private
|
|
36
|
-
private
|
|
37
|
-
private
|
|
34
|
+
private __pickStatedPoint;
|
|
35
|
+
private __deltaPoint;
|
|
36
|
+
private __targetPointBackup;
|
|
37
|
+
private __isPointerDown;
|
|
38
38
|
private static __activeAxis;
|
|
39
39
|
private static __space;
|
|
40
|
-
private
|
|
40
|
+
private __latestTargetEntity?;
|
|
41
41
|
private __onPointerDownFunc;
|
|
42
42
|
private __onPointerMoveFunc;
|
|
43
43
|
private __onPointerUpFunc;
|
|
@@ -11,7 +11,7 @@ import { IMeshRendererEntityMethods } from '../components/MeshRenderer/IMeshRend
|
|
|
11
11
|
declare function createMaterial(materialName: string, materialNode?: AbstractMaterialContent, maxInstancesNumber?: Count): Material;
|
|
12
12
|
declare function recreateMaterial(materialName: string, materialNode?: AbstractMaterialContent, maxInstancesNumber?: Count): Material;
|
|
13
13
|
declare function createEmptyMaterial(): Material;
|
|
14
|
-
declare function createPbrUberMaterial({ additionalName, isMorphing, isSkinning, isLighting, isClearCoat, isTransmission, isVolume, useTangentAttribute, useNormalTexture, alphaMode, maxInstancesNumber, }?: {
|
|
14
|
+
declare function createPbrUberMaterial({ additionalName, isMorphing, isSkinning, isLighting, isClearCoat, isTransmission, isVolume, isSheen, isSpecular, useTangentAttribute, useNormalTexture, alphaMode, maxInstancesNumber, }?: {
|
|
15
15
|
additionalName?: string | undefined;
|
|
16
16
|
isMorphing?: boolean | undefined;
|
|
17
17
|
isSkinning?: boolean | undefined;
|
|
@@ -19,6 +19,8 @@ declare function createPbrUberMaterial({ additionalName, isMorphing, isSkinning,
|
|
|
19
19
|
isClearCoat?: boolean | undefined;
|
|
20
20
|
isTransmission?: boolean | undefined;
|
|
21
21
|
isVolume?: boolean | undefined;
|
|
22
|
+
isSheen?: boolean | undefined;
|
|
23
|
+
isSpecular?: boolean | undefined;
|
|
22
24
|
useTangentAttribute?: boolean | undefined;
|
|
23
25
|
useNormalTexture?: boolean | undefined;
|
|
24
26
|
alphaMode?: import("../definitions/AlphaMode").AlphaModeEnum | undefined;
|
|
@@ -124,7 +126,6 @@ declare function createMToonMaterial({ additionalName, isMorphing, isSkinning, i
|
|
|
124
126
|
maxInstancesNumber?: Count;
|
|
125
127
|
makeOutputSrgb?: boolean;
|
|
126
128
|
}): Material;
|
|
127
|
-
declare function createPbrExtendedUberMaterial(maxInstancesNumber?: Count): Material;
|
|
128
129
|
declare function recreateCustomMaterial(vertexShaderStr: string, pixelShaderStr: string, { additionalName, isSkinning, isLighting, isMorphing, alphaMode, maxInstancesNumber, }?: {
|
|
129
130
|
additionalName?: string | undefined;
|
|
130
131
|
isSkinning?: boolean | undefined;
|
|
@@ -161,7 +162,6 @@ export declare const MaterialHelper: Readonly<{
|
|
|
161
162
|
createSynthesizeHDRMaterial: typeof createSynthesizeHDRMaterial;
|
|
162
163
|
createColorGradingUsingLUTsMaterial: typeof createColorGradingUsingLUTsMaterial;
|
|
163
164
|
createMatCapMaterial: typeof createMatCapMaterial;
|
|
164
|
-
createPbrExtendedUberMaterial: typeof createPbrExtendedUberMaterial;
|
|
165
165
|
changeMaterial: typeof changeMaterial;
|
|
166
166
|
}>;
|
|
167
167
|
export {};
|
|
@@ -26,7 +26,7 @@ export declare class Gltf2Importer {
|
|
|
26
26
|
static _getOptions(defaultOptions: GltfLoadOption, json: RnM2, options: GltfLoadOption): GltfLoadOption;
|
|
27
27
|
static importGlb(arrayBuffer: ArrayBuffer, files: GltfFileBuffers, options: GltfLoadOption): Promise<RnM2>;
|
|
28
28
|
static importGltf(gltfJson: RnM2, fileArrayBuffers: GltfFileBuffers, options: GltfLoadOption, uri?: string, callback?: RnPromiseCallback): Promise<RnM2>;
|
|
29
|
-
static _loadInner(gltfJson: RnM2, files: GltfFileBuffers, options: GltfLoadOption,
|
|
29
|
+
static _loadInner(gltfJson: RnM2, files: GltfFileBuffers, options: GltfLoadOption, uint8arrayOfGlb?: Uint8Array, basePath?: string, callback?: RnPromiseCallback): RnPromise<any[]>;
|
|
30
30
|
static _loadJsonContent(gltfJson: RnM2): void;
|
|
31
31
|
static _loadDependenciesOfScenes(gltfJson: RnM2): void;
|
|
32
32
|
static _loadDependenciesOfNodes(gltfJson: RnM2): void;
|
|
@@ -39,7 +39,7 @@ export declare class Gltf2Importer {
|
|
|
39
39
|
static _loadDependenciesOfAccessors(gltfJson: RnM2): void;
|
|
40
40
|
static _loadDependenciesOfBufferViews(gltfJson: RnM2): void;
|
|
41
41
|
static _mergeExtendedJson(gltfJson: RnM2, extendedData: ArrayBuffer | string | object): void;
|
|
42
|
-
static _loadResources(
|
|
42
|
+
static _loadResources(uint8ArrayOfGlb: Uint8Array, gltfJson: RnM2, files: GltfFileBuffers, options: GltfLoadOption, basePath?: string, callback?: RnPromiseCallback): RnPromise<any[]>;
|
|
43
43
|
private static __containsFileName;
|
|
44
44
|
private static __getFullPathOfFileName;
|
|
45
45
|
private static __loadImageUri;
|
|
@@ -4,14 +4,12 @@ import { ShaderSemanticsEnum } from '../definitions/ShaderSemantics';
|
|
|
4
4
|
import { Material } from '../materials/core/Material';
|
|
5
5
|
import { Accessor } from '../memory/Accessor';
|
|
6
6
|
import { RnM2, RnM2Accessor, RnM2Texture, RnM2TextureInfo, RnM2SparseIndices } from '../../types/RnM2';
|
|
7
|
-
import { GltfLoadOption } from '../../types/glTF2';
|
|
8
7
|
import { ISceneGraphEntity } from '../helpers/EntityHelper';
|
|
9
8
|
/**
|
|
10
9
|
* A converter class from glTF2 model to Rhodonite Native data
|
|
11
10
|
*/
|
|
12
11
|
export declare class ModelConverter {
|
|
13
12
|
private constructor();
|
|
14
|
-
static _getDefaultShader(options: GltfLoadOption): null;
|
|
15
13
|
private static __generateGroupEntity;
|
|
16
14
|
private static addTags;
|
|
17
15
|
private static __generateMeshEntity;
|
|
@@ -6,7 +6,7 @@ import { RenderingArg } from '../../../webgl/types/CommonTypes';
|
|
|
6
6
|
import { ShaderSemanticsInfo } from '../../definitions/ShaderSemanticsInfo';
|
|
7
7
|
export declare class CustomMaterialContent extends AbstractMaterialContent {
|
|
8
8
|
private static __globalDataRepository;
|
|
9
|
-
constructor({ name, isMorphing, isSkinning, isLighting, isClearCoat, isTransmission, isVolume, alphaMode, useTangentAttribute, useNormalTexture, vertexShader, pixelShader, additionalShaderSemanticInfo, }: {
|
|
9
|
+
constructor({ name, isMorphing, isSkinning, isLighting, isClearCoat, isTransmission, isVolume, isSheen, isSpecular, alphaMode, useTangentAttribute, useNormalTexture, vertexShader, pixelShader, additionalShaderSemanticInfo, }: {
|
|
10
10
|
name: string;
|
|
11
11
|
isMorphing: boolean;
|
|
12
12
|
isSkinning: boolean;
|
|
@@ -14,6 +14,8 @@ export declare class CustomMaterialContent extends AbstractMaterialContent {
|
|
|
14
14
|
isClearCoat?: boolean;
|
|
15
15
|
isTransmission?: boolean;
|
|
16
16
|
isVolume?: boolean;
|
|
17
|
+
isSheen?: boolean;
|
|
18
|
+
isSpecular?: boolean;
|
|
17
19
|
alphaMode: AlphaModeEnum;
|
|
18
20
|
useTangentAttribute: boolean;
|
|
19
21
|
useNormalTexture: boolean;
|
|
@@ -10,7 +10,6 @@ export * from './GaussianBlurForEncodedDepthMaterialContent';
|
|
|
10
10
|
export * from './GaussianBlurMaterialContent';
|
|
11
11
|
export * from './MToonMaterialContent';
|
|
12
12
|
export * from './MatCapMaterialContent';
|
|
13
|
-
export * from './PbrExtendedShadingMaterialContent';
|
|
14
13
|
export * from './PbrShadingMaterialContent';
|
|
15
14
|
export * from './ShaderityMaterialContent';
|
|
16
15
|
export * from './ShadowMapDecodeClassicMaterialContent';
|
|
@@ -55,12 +55,13 @@ export declare abstract class AbstractMaterialContent extends RnObject {
|
|
|
55
55
|
protected __definitions: string;
|
|
56
56
|
protected __webglResourceRepository: WebGLResourceRepository;
|
|
57
57
|
protected static __gl?: WebGLRenderingContext;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
static __dummyWhiteTexture: Texture;
|
|
59
|
+
static __dummyBlueTexture: Texture;
|
|
60
|
+
static __dummyBlackTexture: Texture;
|
|
61
|
+
static __dummyPbrKelemenSzirmayKalosBrdfLutTexture: Texture;
|
|
62
|
+
static __dummySRGBGrayTexture: Texture;
|
|
63
|
+
static __dummyBlackCubeTexture: CubeTexture;
|
|
64
|
+
static __sheenLutTextureUid: MaterialNodeUID;
|
|
64
65
|
protected static __tmp_vector4: MutableVector4;
|
|
65
66
|
protected static __tmp_vector2: MutableVector2;
|
|
66
67
|
private __isMorphing;
|
|
@@ -69,6 +70,7 @@ export declare abstract class AbstractMaterialContent extends RnObject {
|
|
|
69
70
|
private static __lightPositions;
|
|
70
71
|
private static __lightDirections;
|
|
71
72
|
private static __lightIntensities;
|
|
73
|
+
private static __lightProperties;
|
|
72
74
|
protected __vertexShaderityObject?: ShaderityObject;
|
|
73
75
|
protected __pixelShaderityObject?: ShaderityObject;
|
|
74
76
|
shaderType: ShaderTypeEnum;
|
|
@@ -101,7 +103,7 @@ export declare abstract class AbstractMaterialContent extends RnObject {
|
|
|
101
103
|
getPixelInputs(): ShaderSocket[];
|
|
102
104
|
getPixelOutput(name: string): ShaderSocket | undefined;
|
|
103
105
|
getPixelOutputs(): ShaderSocket[];
|
|
104
|
-
static initDefaultTextures(): void
|
|
106
|
+
static initDefaultTextures(): Promise<void>;
|
|
105
107
|
static get dummyWhiteTexture(): Texture;
|
|
106
108
|
static get dummyBlackTexture(): Texture;
|
|
107
109
|
static get dummyBlueTexture(): Texture;
|
|
@@ -15,6 +15,7 @@ export declare class MutableScalar_<T extends TypedArrayConstructor> extends Sca
|
|
|
15
15
|
*/
|
|
16
16
|
toString(): string;
|
|
17
17
|
setValue(value: number): this;
|
|
18
|
+
static get compositionType(): import("../definitions/CompositionType").CompositionTypeEnum;
|
|
18
19
|
}
|
|
19
20
|
export declare class MutableScalar extends MutableScalar_<Float32ArrayConstructor> {
|
|
20
21
|
constructor(x: TypedArray);
|
|
@@ -15,6 +15,7 @@ export declare class Scalar_<T extends TypedArrayConstructor> extends AbstractVe
|
|
|
15
15
|
get glslStrAsInt(): string;
|
|
16
16
|
static _fromCopyNumber(value: number, type: FloatTypedArrayConstructor): Scalar_<FloatTypedArrayConstructor>;
|
|
17
17
|
static _dummy(type: FloatTypedArrayConstructor): Scalar_<FloatTypedArrayConstructor>;
|
|
18
|
+
static get compositionType(): import("../definitions/CompositionType").CompositionTypeEnum;
|
|
18
19
|
}
|
|
19
20
|
export declare class Scalar extends Scalar_<Float32ArrayConstructor> implements IScalar {
|
|
20
21
|
constructor(x: TypedArray);
|
|
@@ -17,7 +17,7 @@ export declare class DataUtil {
|
|
|
17
17
|
static loadResourceAsync(resourceUri: string, isBinary: boolean, resolveCallback: Function, rejectCallback: Function): Promise<any>;
|
|
18
18
|
static toCRC32(str: string): number;
|
|
19
19
|
static accessBinaryAsImage(bufferViewIndex: number, json: any, buffer: ArrayBuffer | Uint8Array, mimeType: string): string;
|
|
20
|
-
static createBlobImageUriFromUint8Array(uint8Array: Uint8Array, mimeType: string):
|
|
20
|
+
static createBlobImageUriFromUint8Array(uint8Array: Uint8Array, mimeType: string): string;
|
|
21
21
|
static takeBufferViewAsUint8Array(json: RnM2, bufferViewIndex: number, buffer: ArrayBuffer | Uint8Array): Uint8Array;
|
|
22
22
|
static accessArrayBufferAsImage(arrayBuffer: ArrayBuffer | Uint8Array, imageType: string): string;
|
|
23
23
|
static uint8ArrayToStringInner(uint8: Uint8Array): string;
|
|
@@ -13,6 +13,15 @@ declare type SeamlessTextureData = {
|
|
|
13
13
|
};
|
|
14
14
|
declare function precomputations(input: TextureDataFloat, // input: example image
|
|
15
15
|
LUT_WIDTH?: Size): SeamlessTextureData;
|
|
16
|
+
export declare function convertHTMLImageElementToCanvas(image: HTMLImageElement, width: number, height: number): HTMLCanvasElement;
|
|
17
|
+
export declare function combineImages(data: {
|
|
18
|
+
r_image?: HTMLCanvasElement;
|
|
19
|
+
g_image?: HTMLCanvasElement;
|
|
20
|
+
b_image?: HTMLCanvasElement;
|
|
21
|
+
a_image?: HTMLCanvasElement;
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
}): HTMLCanvasElement;
|
|
16
25
|
export declare const ImageUtil: Readonly<{
|
|
17
26
|
precomputations: typeof precomputations;
|
|
18
27
|
}>;
|