ohzi-core 13.0.0 → 13.0.2
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/build/index.mjs +1 -1
- package/build/index.mjs.map +1 -1
- package/build/index.module.js +2 -0
- package/build/index.module.js.map +1 -0
- package/package.json +4 -4
- package/src/CameraManager.ts +0 -2
- package/src/CustomBezierCurve.ts +0 -11
- package/src/Debug.ts +1 -2
- package/src/OS.ts +2 -0
- package/src/ResourceContainer.ts +4 -6
- package/src/SceneManager.ts +0 -1
- package/src/action_sequencer/ActionSequencer.ts +0 -1
- package/src/components/Input.ts +11 -11
- package/src/utilities/OMath.ts +1 -7
- package/types/BaseApplication.d.ts +1 -7
- package/types/CameraManager.d.ts +7 -5
- package/types/CustomBezierCurve.d.ts +0 -11
- package/types/Debug.d.ts +11 -167
- package/types/Graphics.d.ts +20 -94
- package/types/Initializer.d.ts +2 -4
- package/types/KeyboardInput.d.ts +1 -37
- package/types/OScreen.d.ts +7 -18
- package/types/OrthographicCamera.d.ts +5 -15
- package/types/PerspectiveCamera.d.ts +3 -12
- package/types/RenderLoop.d.ts +6 -120
- package/types/ResourceContainer.d.ts +10 -26
- package/types/SceneManager.d.ts +10 -10
- package/types/Screen.d.ts +4 -16
- package/types/Time.d.ts +3 -5
- package/types/action_sequencer/ActionEvent.d.ts +0 -5
- package/types/action_sequencer/ActionInterpolator.d.ts +5 -11
- package/types/action_sequencer/ActionSequencer.d.ts +4 -63
- package/types/action_sequencer/NumberInterpolator.d.ts +4 -12
- package/types/action_sequencer/VectorInterpolator.d.ts +5 -9
- package/types/canvas_drawer/CanvasDrawer.d.ts +3 -33
- package/types/canvas_drawer/MultiLineTextDrawer.d.ts +8 -13
- package/types/canvas_drawer/SimpleTextDrawer.d.ts +4 -8
- package/types/components/AxisHelper.d.ts +2 -2
- package/types/components/BaseObject.d.ts +9 -12
- package/types/components/EdgeMesh.d.ts +16 -42
- package/types/components/GeometryEdgeVisualizer.d.ts +8 -12
- package/types/components/Grid.d.ts +2 -2
- package/types/components/Input.d.ts +11 -11
- package/types/components/Line.d.ts +7 -28
- package/types/components/MultiLinePath.d.ts +8 -10
- package/types/components/MultiLineText2D.d.ts +12 -22
- package/types/components/ObjectAxis.d.ts +5 -8
- package/types/components/ObjectOrientedBoundingBox.d.ts +20 -45
- package/types/components/PlaneHelper.d.ts +7 -6
- package/types/components/Shape2D.d.ts +7 -14
- package/types/components/Shape3D.d.ts +6 -10
- package/types/components/Text2D.d.ts +6 -11
- package/types/components/UpdatableMaterialMesh.d.ts +5 -8
- package/types/components/WorldImage.d.ts +4 -10
- package/types/components/mouse_interactors/ObjectRotator.d.ts +17 -12
- package/types/components/sdf_text/SDFText.d.ts +1 -5
- package/types/components/sdf_text/SDFTextBatch.d.ts +4 -3
- package/types/data_textures/CustomDataTexture.d.ts +11 -9
- package/types/data_textures/RGBADataTexture.d.ts +4 -3
- package/types/data_textures/RGBAFloatDataTexture.d.ts +4 -3
- package/types/data_textures/RGBDataTexture.d.ts +4 -3
- package/types/data_textures/RGBFloatDataTexture.d.ts +4 -3
- package/types/gpu_particles/GPUParticleSystem.d.ts +9 -12
- package/types/gpu_particles/ParticleAttribute.d.ts +5 -4
- package/types/html_utilities/CSSAnimator.d.ts +3 -2
- package/types/loaders/AsyncAbstractLoader.d.ts +4 -22
- package/types/loaders/assets_loader/AssetLoader.d.ts +6 -4
- package/types/loaders/assets_loader/AsyncAssetsLoaderWorker.d.ts +1 -1
- package/types/loaders/assets_loader/ResourceBatch.d.ts +16 -14
- package/types/loaders/assets_loader/ResourceLoaderChecker.d.ts +9 -8
- package/types/materials/BaseShaderMaterial.d.ts +1 -1
- package/types/materials/BlitMaterial.d.ts +1 -1
- package/types/materials/BloomComposeMaterial.d.ts +5 -4
- package/types/materials/DeferredRendererComposeMaterial.d.ts +10 -7
- package/types/materials/DepthNormalMaterial.d.ts +1 -1
- package/types/materials/FXAAMaterial.d.ts +5 -3
- package/types/materials/MedianFilterMaterial.d.ts +3 -2
- package/types/materials/SDFScreenTextMaterial.d.ts +8 -7
- package/types/materials/SSAOMaterial.d.ts +2 -3
- package/types/materials/ScreenSpaceTextureMaterial.d.ts +9 -7
- package/types/materials/UnrealBlurMaterial.d.ts +5 -4
- package/types/materials/UnrealComposeMaterial.d.ts +5 -4
- package/types/materials/ViewPositionMaterial.d.ts +5 -4
- package/types/materials/deferred/DeferredPointLightMaterial.d.ts +10 -9
- package/types/materials/gpu_particles/AttributeUpdateMaterial.d.ts +8 -7
- package/types/materials/gpu_particles/BasicParticleMaterial.d.ts +5 -4
- package/types/materials/gpu_particles/PositionStorageMaterial.d.ts +5 -3
- package/types/primitives/Arrow.d.ts +5 -8
- package/types/primitives/Cube.d.ts +3 -8
- package/types/primitives/HorizontalPlane.d.ts +3 -9
- package/types/primitives/Sphere.d.ts +5 -7
- package/types/primitives/VerticalPlane.d.ts +3 -9
- package/types/raycast/GroupRaycaster.d.ts +20 -15
- package/types/raycast/PlaneDragResolver.d.ts +21 -16
- package/types/raycast/PlaneRaycastResolver.d.ts +8 -5
- package/types/raycast/PlaneRaycaster.d.ts +10 -9
- package/types/raycast/RaycastResolver.d.ts +8 -5
- package/types/raycast/SurfaceDragResolver.d.ts +19 -15
- package/types/raycast/states/BaseState.d.ts +7 -5
- package/types/raycast/states/IdleState.d.ts +7 -3
- package/types/raycast/states/OnRaycastEnter.d.ts +7 -3
- package/types/raycast/states/OnRaycastExit.d.ts +7 -3
- package/types/raycast/states/OnRaycastHover.d.ts +8 -3
- package/types/render_mode/BloomRender.d.ts +15 -12
- package/types/render_mode/DeferredRender.d.ts +15 -13
- package/types/render_mode/NormalAORender.d.ts +9 -8
- package/types/render_mode/UnrealBloomRender.d.ts +8 -7
- package/types/render_utilities/Blitter.d.ts +5 -6
- package/types/render_utilities/Blurrer.d.ts +5 -4
- package/types/render_utilities/DepthAndNormalsRenderer.d.ts +6 -5
- package/types/render_utilities/DualFilteringBlurrer.d.ts +8 -9
- package/types/render_utilities/GaussianBlurrer.d.ts +5 -3
- package/types/render_utilities/MedianFilter.d.ts +7 -6
- package/types/render_utilities/ViewPositionRenderer.d.ts +12 -10
- package/types/resource_loader/CubemapLoader.d.ts +2 -2
- package/types/resource_loader/DDSLoader.d.ts +9 -7
- package/types/resource_loader/FileLoader.d.ts +2 -2
- package/types/resource_loader/PointArrayLoader.d.ts +2 -3
- package/types/resource_loader/SVGLoader.d.ts +9 -7
- package/types/resource_loader/TextLoader.d.ts +2 -2
- package/types/scenes/AbstractScene.d.ts +5 -4
- package/types/shaders/grid/grid.tsl.d.ts +5 -2
- package/types/utilities/CameraUtilities.d.ts +2 -4
- package/types/utilities/FrustumPointFitter.d.ts +1 -2
- package/types/utilities/GeometryUtilities.d.ts +2 -2
- package/types/utilities/ImageUtilities.d.ts +1 -1
- package/types/utilities/OrthographicFrustumPointFitter.d.ts +1 -1
- package/types/utilities/PerspectiveFrustumPointFitter.d.ts +1 -2
- package/types/view_components/ApplicationView.d.ts +1 -1
- package/types/view_components/TransitionManager.d.ts +6 -4
- package/types/view_components/ViewManager.d.ts +5 -2
- package/types/view_components/transition/TransitionTable.d.ts +4 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { CustomDataTexture } from './CustomDataTexture';
|
|
2
|
+
declare class RGBFloatDataTexture extends CustomDataTexture {
|
|
3
|
+
constructor(width: number, height: number);
|
|
3
4
|
}
|
|
4
|
-
|
|
5
|
+
export { RGBFloatDataTexture };
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import type { InstancedBufferAttribute, Mesh, Points, Scene } from "three";
|
|
2
|
+
import { Object3D } from "three";
|
|
3
|
+
|
|
4
|
+
export class GPUParticleSystem extends Object3D {
|
|
2
5
|
constructor(particle_count: any, material: any);
|
|
3
6
|
attributes: any[];
|
|
4
|
-
mesh: Mesh
|
|
5
|
-
attribute_writter_mesh: Points
|
|
7
|
+
mesh: Mesh;
|
|
8
|
+
attribute_writter_mesh: Points;
|
|
6
9
|
attribute_writter_scene: Scene;
|
|
10
|
+
|
|
7
11
|
add_texture_attribute(buffer_attribute: any): void;
|
|
8
12
|
add_update_attribute_array(name: any, array: any, item_size: any): void;
|
|
9
13
|
add_attribute_array(name: any, array: any, item_size: any): void;
|
|
10
14
|
update(): void;
|
|
11
15
|
dispose(): void;
|
|
12
|
-
build_point_mesh(instance_count: number, material: any): Mesh
|
|
13
|
-
build_attribute_writter_mesh(particle_count: any): Points
|
|
16
|
+
build_point_mesh(instance_count: number, material: any): Mesh;
|
|
17
|
+
build_attribute_writter_mesh(particle_count: any): Points;
|
|
14
18
|
build_uv_storage_attribute(particle_count: any): InstancedBufferAttribute;
|
|
15
19
|
}
|
|
16
|
-
import { Object3D } from "three/src/core/Object3D";
|
|
17
|
-
import { InstancedBufferGeometry } from "three/src/core/InstancedBufferGeometry";
|
|
18
|
-
import { Mesh } from "three/src/objects/Mesh";
|
|
19
|
-
import { BufferGeometry } from "three/src/core/BufferGeometry";
|
|
20
|
-
import { Points } from "three/src/objects/Points";
|
|
21
|
-
import { Scene } from "three/src/scenes/Scene";
|
|
22
|
-
import { InstancedBufferAttribute } from "three/src/core/InstancedBufferAttribute";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { RenderTarget, Texture } from "three";
|
|
2
|
+
|
|
1
3
|
export class ParticleAttribute {
|
|
2
4
|
static calculate_resolution(particle_count: any): {
|
|
3
5
|
width: number;
|
|
@@ -10,10 +12,9 @@ export class ParticleAttribute {
|
|
|
10
12
|
update_material: any;
|
|
11
13
|
init_from_geometry(geometry: any): void;
|
|
12
14
|
init_from_attribute(particle_attribute: any): void;
|
|
13
|
-
build_RT(particle_count: any):
|
|
15
|
+
build_RT(particle_count: any): RenderTarget<Texture>;
|
|
14
16
|
swap_RT(): void;
|
|
15
17
|
update(attribute_writter_scene: any): void;
|
|
16
|
-
store_geometry_attribute_in_RT(attribute: any, RT:
|
|
17
|
-
get_texture():
|
|
18
|
+
store_geometry_attribute_in_RT(attribute: any, RT: RenderTarget<Texture>, storage_material: any, attribute_writter_scene: any): void;
|
|
19
|
+
get_texture(): Texture;
|
|
18
20
|
}
|
|
19
|
-
import { WebGLRenderTarget } from "three/src/renderers/WebGLRenderTarget";
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { EasingFunctions } from "../utilities/EasingFunctions";
|
|
2
|
+
import type { Idle } from "./css_animator_states/Idle";
|
|
3
|
+
|
|
1
4
|
export class CSSAnimator {
|
|
2
5
|
constructor({ element, css_property, from, to, duration, value_prefix, value_suffix, easing_function, finished_callback }: {
|
|
3
6
|
element: any;
|
|
@@ -27,5 +30,3 @@ export class CSSAnimator {
|
|
|
27
30
|
get is_animating(): boolean;
|
|
28
31
|
set_current_state(state: any): void;
|
|
29
32
|
}
|
|
30
|
-
import { EasingFunctions } from "../utilities/EasingFunctions";
|
|
31
|
-
import { Idle } from "./css_animator_states/Idle";
|
|
@@ -1,24 +1,15 @@
|
|
|
1
|
+
import type { ResourceContainer } from "../../src/loaders/assets_loader/ResourceContainer";
|
|
2
|
+
|
|
1
3
|
export class AsyncAbstractLoader {
|
|
2
4
|
static create_worker(): Worker;
|
|
3
|
-
/**
|
|
4
|
-
* @param {string} name
|
|
5
|
-
* @param {any[]} assets
|
|
6
|
-
* @param {Worker} worker
|
|
7
|
-
*/
|
|
8
5
|
constructor(name: string, assets: any[], worker: Worker);
|
|
9
|
-
resource_container:
|
|
10
|
-
init(): void;
|
|
11
|
-
resources: Record<string, import("../ResourceContainer").Resource>;
|
|
12
|
-
resources_by_url: Record<string, any>;
|
|
13
|
-
set_resource(name: string, url: string, resource: import("../ResourceContainer").Resource): void;
|
|
14
|
-
get_resource(name: string): import("../ResourceContainer").Resource;
|
|
15
|
-
get(name: string): import("../ResourceContainer").Resource;
|
|
16
|
-
};
|
|
6
|
+
resource_container: ResourceContainer;
|
|
17
7
|
assets: any[];
|
|
18
8
|
name: string;
|
|
19
9
|
worker: Worker;
|
|
20
10
|
bound_on_message: any;
|
|
21
11
|
assets_loaders: any[];
|
|
12
|
+
|
|
22
13
|
load(): void;
|
|
23
14
|
is_loaded(): boolean;
|
|
24
15
|
get_progress(): number;
|
|
@@ -26,16 +17,7 @@ export class AsyncAbstractLoader {
|
|
|
26
17
|
__get_total_bytes(): number;
|
|
27
18
|
get_assets_names(): any[];
|
|
28
19
|
__setup_worker(): void;
|
|
29
|
-
/**
|
|
30
|
-
* @param {MessageEvent} e
|
|
31
|
-
*/
|
|
32
20
|
on_message(e: MessageEvent): void;
|
|
33
|
-
/**
|
|
34
|
-
* @param {any} resources
|
|
35
|
-
*/
|
|
36
21
|
__on_assets_loaded(resources: any): void;
|
|
37
|
-
/**
|
|
38
|
-
* @returns {any[]}
|
|
39
|
-
*/
|
|
40
22
|
__setup_loaders(): any[];
|
|
41
23
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { AbstractLoader } from '../../resource_loader/AbstractLoader';
|
|
2
|
+
import type { ResourceContainer } from './ResourceContainer';
|
|
3
|
+
export declare class AssetLoader extends AbstractLoader {
|
|
4
|
+
constructor(resource_id: string, url: string, size: number);
|
|
5
|
+
on_preloaded_finished(resource_container: ResourceContainer, response: Response): void;
|
|
6
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
resource_loaders: any
|
|
4
|
-
batch_name:
|
|
5
|
-
resource_container:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
get
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import type { ResourceContainer } from "./ResourceContainer";
|
|
2
|
+
declare class ResourceBatch {
|
|
3
|
+
resource_loaders: Array<any>;
|
|
4
|
+
batch_name: string;
|
|
5
|
+
resource_container: ResourceContainer;
|
|
6
|
+
constructor(batch_name: string, resource_container: ResourceContainer);
|
|
7
|
+
add_loader(loader: any): void;
|
|
8
|
+
load(): void;
|
|
9
|
+
get loading_finished(): boolean;
|
|
10
|
+
get has_errors(): boolean;
|
|
11
|
+
print_errors(): void;
|
|
12
|
+
get_progress(): number;
|
|
13
|
+
get_loaded_bytes(): number;
|
|
14
|
+
get_total_bytes(): number;
|
|
15
|
+
}
|
|
16
|
+
export { ResourceBatch };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
setup(on_resources_loaded:
|
|
7
|
-
check(): void;
|
|
8
|
-
}
|
|
1
|
+
declare class ResourceLoaderChecker {
|
|
2
|
+
batch: any;
|
|
3
|
+
on_resources_loaded: (() => void) | undefined;
|
|
4
|
+
timeout: number;
|
|
5
|
+
constructor(batch: any);
|
|
6
|
+
setup(on_resources_loaded: () => void, timeout?: number): void;
|
|
7
|
+
check(): void;
|
|
8
|
+
}
|
|
9
|
+
export { ResourceLoaderChecker };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { BlitMaterial } from './BlitMaterial';
|
|
2
|
+
declare class BloomComposeMaterial extends BlitMaterial {
|
|
3
|
+
constructor(alpha_blending?: boolean);
|
|
4
|
+
}
|
|
5
|
+
export { BloomComposeMaterial };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { BlitMaterial } from '../materials/BlitMaterial';
|
|
2
|
+
import type { RenderTarget, Texture } from 'three';
|
|
3
|
+
import { Matrix4 } from 'three';
|
|
4
|
+
declare class DeferredRendererComposeMaterial extends BlitMaterial {
|
|
5
|
+
constructor();
|
|
6
|
+
set_normal_depth_rt(rt: RenderTarget): void;
|
|
7
|
+
set_albedo_rt(tex: Texture): void;
|
|
8
|
+
set_proj_matrix(mat4: Matrix4): void;
|
|
9
|
+
}
|
|
10
|
+
export { DeferredRendererComposeMaterial };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { Vector2 } from "three";
|
|
2
|
+
import { BlitMaterial } from "../materials/BlitMaterial";
|
|
3
|
+
|
|
1
4
|
export class MedianFilterMaterial extends BlitMaterial {
|
|
2
5
|
constructor();
|
|
3
6
|
set_texture(tex: any): void;
|
|
4
7
|
get_size(tex: any): Vector2;
|
|
5
8
|
}
|
|
6
|
-
import { BlitMaterial } from "../materials/BlitMaterial";
|
|
7
|
-
import { Vector2 } from "three/src/math/Vector2";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { BaseShaderMaterial } from './BaseShaderMaterial';
|
|
2
|
+
import type { Texture } from 'three';
|
|
3
|
+
import { Vector2 } from 'three';
|
|
4
|
+
declare class SDFScreenTextMaterial extends BaseShaderMaterial {
|
|
5
|
+
constructor(texture: Texture);
|
|
6
|
+
set_atlas_size(size: Vector2): void;
|
|
7
|
+
}
|
|
8
|
+
export { SDFScreenTextMaterial };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import type { DataTexture, Vector3 } from "three";
|
|
2
|
+
import { BlitMaterial } from "../materials/BlitMaterial";
|
|
1
3
|
export class SSAOMaterial extends BlitMaterial {
|
|
2
4
|
constructor();
|
|
3
5
|
__get_sample_kernel(): Vector3[];
|
|
4
6
|
__get_rotation_kernel(): DataTexture;
|
|
5
7
|
}
|
|
6
|
-
import { BlitMaterial } from "../materials/BlitMaterial";
|
|
7
|
-
import { Vector3 } from "three/src/math/Vector3";
|
|
8
|
-
import { DataTexture } from "three/src/textures/DataTexture";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import type { Texture } from 'three';
|
|
2
|
+
import { BaseShaderMaterial } from './BaseShaderMaterial';
|
|
3
|
+
declare class ScreenSpaceTextureMaterial extends BaseShaderMaterial {
|
|
4
|
+
constructor();
|
|
5
|
+
set_position(x: number, y: number): void;
|
|
6
|
+
set_texture(tex: Texture, w: number, h: number): void;
|
|
7
|
+
set_screen_size(w: number, h: number): void;
|
|
8
|
+
}
|
|
9
|
+
export { ScreenSpaceTextureMaterial };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { BlitMaterial } from '../materials/BlitMaterial';
|
|
2
|
+
declare class UnrealBlurMaterial extends BlitMaterial {
|
|
3
|
+
constructor(kernel_radius: number);
|
|
4
|
+
}
|
|
5
|
+
export { UnrealBlurMaterial };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { BlitMaterial } from '../materials/BlitMaterial';
|
|
2
|
+
declare class UnrealComposeMaterial extends BlitMaterial {
|
|
3
|
+
constructor(nMips: number);
|
|
4
|
+
}
|
|
5
|
+
export { UnrealComposeMaterial };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ShaderMaterial } from 'three';
|
|
2
|
+
declare class ViewPositionMaterial extends ShaderMaterial {
|
|
3
|
+
constructor();
|
|
4
|
+
}
|
|
5
|
+
export { ViewPositionMaterial };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { BaseShaderMaterial } from '../../materials/BaseShaderMaterial';
|
|
2
|
+
import type { RenderTarget } from 'three';
|
|
3
|
+
import { Matrix4 } from 'three';
|
|
4
|
+
declare class DeferredPointLightMaterial extends BaseShaderMaterial {
|
|
5
|
+
constructor(intensity?: number);
|
|
6
|
+
set_inverse_proj_matrix(mat4: Matrix4): void;
|
|
7
|
+
set_normal_depth_rt(rt: RenderTarget): void;
|
|
8
|
+
set_albedo_rt(rt: RenderTarget): void;
|
|
9
|
+
}
|
|
10
|
+
export { DeferredPointLightMaterial };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
multiplier: number;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { BlitMaterial } from '../../materials/BlitMaterial';
|
|
2
|
+
declare class AttributeUpdateMaterial extends BlitMaterial {
|
|
3
|
+
multiplier: number;
|
|
4
|
+
constructor(custom_frag?: string);
|
|
5
|
+
update(): void;
|
|
6
|
+
set_multiplier(val: number): void;
|
|
7
|
+
}
|
|
8
|
+
export { AttributeUpdateMaterial };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ShaderMaterial } from 'three';
|
|
2
|
+
declare class BasicParticleMaterial extends ShaderMaterial {
|
|
3
|
+
constructor();
|
|
4
|
+
}
|
|
5
|
+
export { BasicParticleMaterial };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ParticleStorageMaterial } from '../../materials/gpu_particles/ParticleStorageMaterial';
|
|
2
|
+
declare class PositionStorageMaterial extends ParticleStorageMaterial {
|
|
3
|
+
constructor();
|
|
4
|
+
}
|
|
5
|
+
export { PositionStorageMaterial };
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* @param {Vector3} [dir]
|
|
6
|
-
*/
|
|
1
|
+
import type { Vector3 } from "three";
|
|
2
|
+
import { Mesh } from "three";
|
|
3
|
+
|
|
4
|
+
export class Arrow extends Mesh {
|
|
7
5
|
constructor(color?: string | number, length?: number, dir?: Vector3);
|
|
8
6
|
_dir: Vector3;
|
|
7
|
+
|
|
9
8
|
set dir(arg: Vector3);
|
|
10
9
|
get dir(): Vector3;
|
|
11
10
|
set length(arg: number);
|
|
12
11
|
get length(): number;
|
|
13
12
|
}
|
|
14
|
-
import { Mesh } from "three/src/objects/Mesh";
|
|
15
|
-
import { Vector3 } from "three/src/math/Vector3";
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @param {Vector3} [segments]
|
|
5
|
-
* @param {number | string} [color]
|
|
6
|
-
*/
|
|
1
|
+
import type { Vector3 } from "three";
|
|
2
|
+
import { Mesh } from "three";
|
|
3
|
+
export class Cube extends Mesh {
|
|
7
4
|
constructor(size?: Vector3, segments?: Vector3, color?: number | string);
|
|
8
5
|
}
|
|
9
|
-
import { Mesh } from "three/src/objects/Mesh";
|
|
10
|
-
import { Vector3 } from "three/src/math/Vector3";
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @param {number} [height]
|
|
5
|
-
* @param {number | string} [color]
|
|
6
|
-
* @param {Material} [material]
|
|
7
|
-
*/
|
|
1
|
+
import type { Material } from "three";
|
|
2
|
+
import { Mesh } from "three";
|
|
3
|
+
export class HorizontalPlane extends Mesh {
|
|
8
4
|
constructor(width?: number, height?: number, color?: number | string, material?: Material);
|
|
9
5
|
}
|
|
10
|
-
import { Material } from "three/src/materials/Material";
|
|
11
|
-
import { Mesh } from "three/src/objects/Mesh";
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @param {number | string} color
|
|
5
|
-
*/
|
|
1
|
+
import type { Vector3 } from "three";
|
|
2
|
+
import { Mesh } from "three";
|
|
3
|
+
export class Sphere extends Mesh {
|
|
6
4
|
constructor(radius: number, color: number | string);
|
|
5
|
+
|
|
7
6
|
radius: number;
|
|
8
7
|
color: string | number;
|
|
9
|
-
center:
|
|
8
|
+
center: Vector3;
|
|
10
9
|
}
|
|
11
|
-
import { Mesh } from "three/src/objects/Mesh";
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @param {number} [height]
|
|
5
|
-
* @param {number | string} [color]
|
|
6
|
-
* @param {Material} [material]
|
|
7
|
-
*/
|
|
1
|
+
import type { Material } from "three";
|
|
2
|
+
import { Mesh } from "three";
|
|
3
|
+
export class VerticalPlane extends Mesh {
|
|
8
4
|
constructor(width?: number, height?: number, color?: number | string, material?: Material);
|
|
9
5
|
}
|
|
10
|
-
import { Material } from "three/src/materials/Material";
|
|
11
|
-
import { Mesh } from "three/src/objects/Mesh";
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
current_intersections:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import type { Input } from '../components/Input';
|
|
2
|
+
import { RaycastResolver } from './RaycastResolver';
|
|
3
|
+
import { IdleState } from './states/IdleState';
|
|
4
|
+
import type { Camera, Intersection, Object3D } from 'three';
|
|
5
|
+
import { Raycaster } from 'three';
|
|
6
|
+
import type { BaseState } from './states/BaseState';
|
|
7
|
+
declare class GroupRaycaster {
|
|
8
|
+
camera: Camera;
|
|
9
|
+
current_intersections: Intersection[];
|
|
10
|
+
current_state: IdleState;
|
|
11
|
+
input: Input;
|
|
12
|
+
raycast_resolver: RaycastResolver;
|
|
13
|
+
raycastee_group: Object3D[];
|
|
14
|
+
raycaster: Raycaster;
|
|
15
|
+
constructor(raycastee_group: Object3D[], raycast_resolver: RaycastResolver, camera: Camera, input: Input);
|
|
16
|
+
set_raycastee_group(raycastee_group: Object3D[]): void;
|
|
17
|
+
update(): void;
|
|
18
|
+
set_state(new_state: BaseState): void;
|
|
19
|
+
}
|
|
20
|
+
export { GroupRaycaster };
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import type { Vector3 } from 'three';
|
|
2
|
+
import type { Input } from '../components/Input';
|
|
3
|
+
import { PlaneRaycaster } from './PlaneRaycaster';
|
|
4
|
+
import { PlaneRaycastResolver } from './PlaneRaycastResolver';
|
|
5
|
+
declare class PlaneDragResolver extends PlaneRaycastResolver {
|
|
6
|
+
_drag_started: boolean;
|
|
7
|
+
_plane_raycaster: PlaneRaycaster;
|
|
8
|
+
input: Input;
|
|
9
|
+
constructor(input: Input);
|
|
10
|
+
on_drag_start(contact_point: any): void;
|
|
11
|
+
on_drag_move(contact_point: any): void;
|
|
12
|
+
on_drag_end(): void;
|
|
13
|
+
on_update(): void;
|
|
14
|
+
on_drag_button_pressed(): boolean;
|
|
15
|
+
on_drag_button_released(): boolean;
|
|
16
|
+
on_hover(intersection_point: Vector3): void;
|
|
17
|
+
get drag_started(): boolean;
|
|
18
|
+
on_exit(): void;
|
|
19
|
+
update(reference_position: any, plane_normal: any): void;
|
|
20
|
+
}
|
|
21
|
+
export { PlaneDragResolver };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import type { Vector3 } from "three";
|
|
2
|
+
declare class PlaneRaycastResolver {
|
|
3
|
+
constructor();
|
|
4
|
+
on_enter(intersected_point: Vector3): void;
|
|
5
|
+
on_hover(intersected_point: Vector3): void;
|
|
6
|
+
on_exit(): void;
|
|
7
|
+
}
|
|
8
|
+
export { PlaneRaycastResolver };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { Raycaster, Vector3 } from 'three';
|
|
2
|
+
import type { RaycastResolver } from './RaycastResolver';
|
|
3
|
+
declare class PlaneRaycaster {
|
|
4
|
+
current_intersected_point: Vector3;
|
|
5
|
+
raycast_resolver: RaycastResolver;
|
|
6
|
+
raycaster: Raycaster;
|
|
7
|
+
constructor(raycast_resolver: RaycastResolver);
|
|
8
|
+
update(reference_position: any, plane_normal: any): void;
|
|
9
|
+
}
|
|
10
|
+
export { PlaneRaycaster };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import type { Vector3 } from "three";
|
|
2
|
+
declare class RaycastResolver {
|
|
3
|
+
constructor();
|
|
4
|
+
on_enter(intersected_point: Vector3): void;
|
|
5
|
+
on_hover(intersected_point: Vector3): void;
|
|
6
|
+
on_exit(): void;
|
|
7
|
+
}
|
|
8
|
+
export { RaycastResolver };
|