three-stdlib 2.35.8 → 2.35.9
Sign up to get free protection for your applications and to get access to all the features.
- package/_polyfill/constants.d.cts +1 -1
- package/_polyfill/constants.d.ts +1 -1
- package/_polyfill/uv1.d.cts +1 -1
- package/_polyfill/uv1.d.ts +1 -1
- package/controls/ArcballControls.d.cts +1 -1
- package/controls/ArcballControls.d.ts +1 -1
- package/controls/DeviceOrientationControls.d.cts +1 -1
- package/controls/DeviceOrientationControls.d.ts +1 -1
- package/controls/DragControls.d.cts +1 -1
- package/controls/DragControls.d.ts +1 -1
- package/controls/EventDispatcher.d.cts +1 -1
- package/controls/EventDispatcher.d.ts +1 -1
- package/controls/FirstPersonControls.d.cts +1 -1
- package/controls/FirstPersonControls.d.ts +1 -1
- package/controls/FlyControls.d.cts +1 -1
- package/controls/FlyControls.d.ts +1 -1
- package/controls/OrbitControls.d.cts +1 -1
- package/controls/OrbitControls.d.ts +1 -1
- package/controls/PointerLockControls.d.cts +1 -1
- package/controls/PointerLockControls.d.ts +1 -1
- package/controls/TrackballControls.d.cts +1 -1
- package/controls/TrackballControls.d.ts +1 -1
- package/controls/TransformControls.d.cts +1 -1
- package/controls/TransformControls.d.ts +1 -1
- package/controls/experimental/CameraControls.d.cts +2 -2
- package/controls/experimental/CameraControls.d.ts +2 -2
- package/csm/CSMFrustum.d.cts +1 -1
- package/csm/CSMFrustum.d.ts +1 -1
- package/environments/RoomEnvironment.d.cts +1 -1
- package/environments/RoomEnvironment.d.ts +1 -1
- package/exporters/ColladaExporter.d.cts +1 -1
- package/exporters/ColladaExporter.d.ts +1 -1
- package/exporters/DRACOExporter.d.cts +1 -1
- package/exporters/DRACOExporter.d.ts +1 -1
- package/exporters/GLTFExporter.d.cts +3 -3
- package/exporters/GLTFExporter.d.ts +3 -3
- package/exporters/MMDExporter.d.cts +1 -1
- package/exporters/MMDExporter.d.ts +1 -1
- package/exporters/OBJExporter.d.cts +1 -1
- package/exporters/OBJExporter.d.ts +1 -1
- package/exporters/PLYExporter.d.cts +1 -1
- package/exporters/PLYExporter.d.ts +1 -1
- package/exporters/STLExporter.d.cts +1 -1
- package/exporters/STLExporter.d.ts +1 -1
- package/exporters/USDZExporter.d.cts +1 -1
- package/exporters/USDZExporter.d.ts +1 -1
- package/geometries/ParametricGeometries.d.cts +1 -1
- package/geometries/ParametricGeometries.d.ts +1 -1
- package/geometries/ParametricGeometry.d.cts +1 -1
- package/geometries/ParametricGeometry.d.ts +1 -1
- package/geometries/TextGeometry.d.cts +2 -2
- package/geometries/TextGeometry.d.ts +2 -2
- package/helpers/RaycasterHelper.d.cts +1 -1
- package/helpers/RaycasterHelper.d.ts +1 -1
- package/index.d.cts +262 -262
- package/index.d.ts +262 -262
- package/libs/MeshoptDecoder.d.cts +1 -1
- package/libs/MeshoptDecoder.d.ts +1 -1
- package/libs/MotionControllers.d.cts +1 -1
- package/libs/MotionControllers.d.ts +1 -1
- package/libs/zstddec.d.cts +1 -1
- package/libs/zstddec.d.ts +1 -1
- package/lights/LightProbeGenerator.d.cts +1 -1
- package/lights/LightProbeGenerator.d.ts +1 -1
- package/lights/RectAreaLightUniformsLib.d.cts +1 -1
- package/lights/RectAreaLightUniformsLib.d.ts +1 -1
- package/loaders/FontLoader.d.cts +3 -3
- package/loaders/FontLoader.d.ts +3 -3
- package/math/ColorConverter.d.cts +1 -1
- package/math/ColorConverter.d.ts +1 -1
- package/math/SimplexNoise.d.cts +1 -1
- package/math/SimplexNoise.d.ts +1 -1
- package/misc/Timer.d.cts +1 -1
- package/misc/Timer.d.ts +1 -1
- package/misc/WebGL.d.cts +5 -5
- package/misc/WebGL.d.ts +5 -5
- package/modifiers/CurveModifier.d.cts +6 -6
- package/modifiers/CurveModifier.d.ts +6 -6
- package/modifiers/EdgeSplitModifier.d.cts +1 -1
- package/modifiers/EdgeSplitModifier.d.ts +1 -1
- package/modifiers/SimplifyModifier.d.cts +1 -1
- package/modifiers/SimplifyModifier.d.ts +1 -1
- package/modifiers/TessellateModifier.d.cts +1 -1
- package/modifiers/TessellateModifier.d.ts +1 -1
- package/objects/BatchedMesh.d.cts +1 -1
- package/objects/BatchedMesh.d.ts +1 -1
- package/objects/GroundProjectedEnv.d.cts +1 -1
- package/objects/GroundProjectedEnv.d.ts +1 -1
- package/objects/ReflectorRTT.d.cts +1 -1
- package/objects/ReflectorRTT.d.ts +1 -1
- package/objects/Sky.d.cts +1 -1
- package/objects/Sky.d.ts +1 -1
- package/package.json +1 -1
- package/postprocessing/AfterimagePass.d.cts +1 -1
- package/postprocessing/AfterimagePass.d.ts +1 -1
- package/postprocessing/BloomPass.d.cts +1 -1
- package/postprocessing/BloomPass.d.ts +1 -1
- package/postprocessing/BokehPass.d.cts +1 -1
- package/postprocessing/BokehPass.d.ts +1 -1
- package/postprocessing/ClearPass.d.cts +1 -1
- package/postprocessing/ClearPass.d.ts +1 -1
- package/postprocessing/DotScreenPass.d.cts +1 -1
- package/postprocessing/DotScreenPass.d.ts +1 -1
- package/postprocessing/EffectComposer.d.cts +1 -1
- package/postprocessing/EffectComposer.d.ts +1 -1
- package/postprocessing/FilmPass.d.cts +1 -1
- package/postprocessing/FilmPass.d.ts +1 -1
- package/postprocessing/GlitchPass.d.cts +1 -1
- package/postprocessing/GlitchPass.d.ts +1 -1
- package/postprocessing/HalftonePass.d.cts +1 -1
- package/postprocessing/HalftonePass.d.ts +1 -1
- package/postprocessing/MaskPass.d.cts +1 -1
- package/postprocessing/MaskPass.d.ts +1 -1
- package/postprocessing/OutlinePass.d.cts +1 -1
- package/postprocessing/OutlinePass.d.ts +1 -1
- package/postprocessing/Pass.d.cts +1 -1
- package/postprocessing/Pass.d.ts +1 -1
- package/postprocessing/RenderPass.d.cts +1 -1
- package/postprocessing/RenderPass.d.ts +1 -1
- package/postprocessing/ShaderPass.d.cts +1 -1
- package/postprocessing/ShaderPass.d.ts +1 -1
- package/postprocessing/WaterPass.d.cts +1 -1
- package/postprocessing/WaterPass.d.ts +1 -1
- package/shaders/ACESFilmicToneMappingShader.d.cts +1 -1
- package/shaders/ACESFilmicToneMappingShader.d.ts +1 -1
- package/shaders/AfterimageShader.d.cts +1 -1
- package/shaders/AfterimageShader.d.ts +1 -1
- package/shaders/BasicShader.d.cts +1 -1
- package/shaders/BasicShader.d.ts +1 -1
- package/shaders/BleachBypassShader.d.cts +1 -1
- package/shaders/BleachBypassShader.d.ts +1 -1
- package/shaders/BlendShader.d.cts +1 -1
- package/shaders/BlendShader.d.ts +1 -1
- package/shaders/BokehShader.d.cts +1 -1
- package/shaders/BokehShader.d.ts +1 -1
- package/shaders/BokehShader2.d.cts +2 -2
- package/shaders/BokehShader2.d.ts +2 -2
- package/shaders/BrightnessContrastShader.d.cts +1 -1
- package/shaders/BrightnessContrastShader.d.ts +1 -1
- package/shaders/ColorCorrectionShader.d.cts +1 -1
- package/shaders/ColorCorrectionShader.d.ts +1 -1
- package/shaders/ColorifyShader.d.cts +1 -1
- package/shaders/ColorifyShader.d.ts +1 -1
- package/shaders/ConvolutionShader.d.cts +1 -1
- package/shaders/ConvolutionShader.d.ts +1 -1
- package/shaders/CopyShader.d.cts +1 -1
- package/shaders/CopyShader.d.ts +1 -1
- package/shaders/DOFMipMapShader.d.cts +1 -1
- package/shaders/DOFMipMapShader.d.ts +1 -1
- package/shaders/DepthLimitedBlurShader.d.cts +2 -2
- package/shaders/DepthLimitedBlurShader.d.ts +2 -2
- package/shaders/DigitalGlitch.d.cts +1 -1
- package/shaders/DigitalGlitch.d.ts +1 -1
- package/shaders/DotScreenShader.d.cts +1 -1
- package/shaders/DotScreenShader.d.ts +1 -1
- package/shaders/FXAAShader.d.cts +1 -1
- package/shaders/FXAAShader.d.ts +1 -1
- package/shaders/FilmShader.d.cts +1 -1
- package/shaders/FilmShader.d.ts +1 -1
- package/shaders/FocusShader.d.cts +1 -1
- package/shaders/FocusShader.d.ts +1 -1
- package/shaders/FreiChenShader.d.cts +1 -1
- package/shaders/FreiChenShader.d.ts +1 -1
- package/shaders/FresnelShader.d.cts +1 -1
- package/shaders/FresnelShader.d.ts +1 -1
- package/shaders/GammaCorrectionShader.d.cts +1 -1
- package/shaders/GammaCorrectionShader.d.ts +1 -1
- package/shaders/GodRaysShader.d.cts +4 -4
- package/shaders/GodRaysShader.d.ts +4 -4
- package/shaders/HalftoneShader.d.cts +1 -1
- package/shaders/HalftoneShader.d.ts +1 -1
- package/shaders/HorizontalBlurShader.d.cts +1 -1
- package/shaders/HorizontalBlurShader.d.ts +1 -1
- package/shaders/HorizontalTiltShiftShader.d.cts +1 -1
- package/shaders/HorizontalTiltShiftShader.d.ts +1 -1
- package/shaders/HueSaturationShader.d.cts +1 -1
- package/shaders/HueSaturationShader.d.ts +1 -1
- package/shaders/KaleidoShader.d.cts +1 -1
- package/shaders/KaleidoShader.d.ts +1 -1
- package/shaders/LuminosityHighPassShader.d.cts +1 -1
- package/shaders/LuminosityHighPassShader.d.ts +1 -1
- package/shaders/LuminosityShader.d.cts +1 -1
- package/shaders/LuminosityShader.d.ts +1 -1
- package/shaders/MirrorShader.d.cts +1 -1
- package/shaders/MirrorShader.d.ts +1 -1
- package/shaders/NormalMapShader.d.cts +1 -1
- package/shaders/NormalMapShader.d.ts +1 -1
- package/shaders/ParallaxShader.d.cts +1 -1
- package/shaders/ParallaxShader.d.ts +1 -1
- package/shaders/PixelShader.d.cts +1 -1
- package/shaders/PixelShader.d.ts +1 -1
- package/shaders/RGBShiftShader.d.cts +1 -1
- package/shaders/RGBShiftShader.d.ts +1 -1
- package/shaders/SAOShader.d.cts +1 -1
- package/shaders/SAOShader.d.ts +1 -1
- package/shaders/SMAAShader.d.cts +3 -3
- package/shaders/SMAAShader.d.ts +3 -3
- package/shaders/SSAOShader.d.cts +3 -3
- package/shaders/SSAOShader.d.ts +3 -3
- package/shaders/SSRShader.d.cts +3 -3
- package/shaders/SSRShader.d.ts +3 -3
- package/shaders/SepiaShader.d.cts +1 -1
- package/shaders/SepiaShader.d.ts +1 -1
- package/shaders/SobelOperatorShader.d.cts +1 -1
- package/shaders/SobelOperatorShader.d.ts +1 -1
- package/shaders/SubsurfaceScatteringShader.d.cts +1 -1
- package/shaders/SubsurfaceScatteringShader.d.ts +1 -1
- package/shaders/TechnicolorShader.d.cts +1 -1
- package/shaders/TechnicolorShader.d.ts +1 -1
- package/shaders/ToneMapShader.d.cts +1 -1
- package/shaders/ToneMapShader.d.ts +1 -1
- package/shaders/ToonShader.d.cts +4 -4
- package/shaders/ToonShader.d.ts +4 -4
- package/shaders/TriangleBlurShader.d.cts +1 -1
- package/shaders/TriangleBlurShader.d.ts +1 -1
- package/shaders/UnpackDepthRGBAShader.d.cts +1 -1
- package/shaders/UnpackDepthRGBAShader.d.ts +1 -1
- package/shaders/VerticalBlurShader.d.cts +1 -1
- package/shaders/VerticalBlurShader.d.ts +1 -1
- package/shaders/VerticalTiltShiftShader.d.cts +1 -1
- package/shaders/VerticalTiltShiftShader.d.ts +1 -1
- package/shaders/VignetteShader.d.cts +1 -1
- package/shaders/VignetteShader.d.ts +1 -1
- package/shaders/VolumeShader.d.cts +1 -1
- package/shaders/VolumeShader.d.ts +1 -1
- package/shaders/WaterRefractionShader.d.cts +1 -1
- package/shaders/WaterRefractionShader.d.ts +1 -1
- package/textures/FlakesTexture.d.cts +1 -1
- package/textures/FlakesTexture.d.ts +1 -1
- package/types/helpers.d.cts +1 -1
- package/types/helpers.d.ts +1 -1
- package/types/shared.d.cts +1 -1
- package/types/shared.d.ts +1 -1
- package/utils/BufferGeometryUtils.d.cts +8 -8
- package/utils/BufferGeometryUtils.d.ts +8 -8
- package/utils/GeometryCompressionUtils.d.cts +1 -1
- package/utils/GeometryCompressionUtils.d.ts +1 -1
- package/utils/GeometryUtils.d.cts +1 -1
- package/utils/GeometryUtils.d.ts +1 -1
- package/utils/LDrawUtils.d.cts +1 -1
- package/utils/LDrawUtils.d.ts +1 -1
- package/utils/SceneUtils.d.cts +1 -1
- package/utils/SceneUtils.d.ts +1 -1
- package/utils/SkeletonUtils.d.cts +1 -1
- package/utils/SkeletonUtils.d.ts +1 -1
- package/webxr/ARButton.d.cts +1 -1
- package/webxr/ARButton.d.ts +1 -1
- package/webxr/OculusHandModel.d.cts +1 -1
- package/webxr/OculusHandModel.d.ts +1 -1
- package/webxr/VRButton.d.cts +1 -1
- package/webxr/VRButton.d.ts +1 -1
- package/webxr/XRControllerModelFactory.d.cts +1 -1
- package/webxr/XRControllerModelFactory.d.ts +1 -1
- package/webxr/XRHandMeshModel.d.cts +1 -1
- package/webxr/XRHandMeshModel.d.ts +1 -1
package/shaders/SAOShader.d.cts
CHANGED
package/shaders/SAOShader.d.ts
CHANGED
package/shaders/SMAAShader.d.cts
CHANGED
@@ -4,7 +4,7 @@ import type { Vector2 } from 'three';
|
|
4
4
|
* Preset: SMAA 1x Medium (with color edge detection)
|
5
5
|
* https://github.com/iryoku/smaa/releases/tag/v2.8
|
6
6
|
*/
|
7
|
-
export declare const SMAAEdgesShader: {
|
7
|
+
export type declare const SMAAEdgesShader: {
|
8
8
|
defines: {
|
9
9
|
SMAA_THRESHOLD: string;
|
10
10
|
};
|
@@ -19,7 +19,7 @@ export declare const SMAAEdgesShader: {
|
|
19
19
|
vertexShader: string;
|
20
20
|
fragmentShader: string;
|
21
21
|
};
|
22
|
-
export declare const SMAAWeightsShader: {
|
22
|
+
export type declare const SMAAWeightsShader: {
|
23
23
|
defines: {
|
24
24
|
SMAA_MAX_SEARCH_STEPS: string;
|
25
25
|
SMAA_AREATEX_MAX_DISTANCE: string;
|
@@ -43,7 +43,7 @@ export declare const SMAAWeightsShader: {
|
|
43
43
|
vertexShader: string;
|
44
44
|
fragmentShader: string;
|
45
45
|
};
|
46
|
-
export declare const SMAABlendShader: {
|
46
|
+
export type declare const SMAABlendShader: {
|
47
47
|
uniforms: {
|
48
48
|
tDiffuse: {
|
49
49
|
value: null;
|
package/shaders/SMAAShader.d.ts
CHANGED
@@ -4,7 +4,7 @@ import type { Vector2 } from 'three';
|
|
4
4
|
* Preset: SMAA 1x Medium (with color edge detection)
|
5
5
|
* https://github.com/iryoku/smaa/releases/tag/v2.8
|
6
6
|
*/
|
7
|
-
export declare const SMAAEdgesShader: {
|
7
|
+
export type declare const SMAAEdgesShader: {
|
8
8
|
defines: {
|
9
9
|
SMAA_THRESHOLD: string;
|
10
10
|
};
|
@@ -19,7 +19,7 @@ export declare const SMAAEdgesShader: {
|
|
19
19
|
vertexShader: string;
|
20
20
|
fragmentShader: string;
|
21
21
|
};
|
22
|
-
export declare const SMAAWeightsShader: {
|
22
|
+
export type declare const SMAAWeightsShader: {
|
23
23
|
defines: {
|
24
24
|
SMAA_MAX_SEARCH_STEPS: string;
|
25
25
|
SMAA_AREATEX_MAX_DISTANCE: string;
|
@@ -43,7 +43,7 @@ export declare const SMAAWeightsShader: {
|
|
43
43
|
vertexShader: string;
|
44
44
|
fragmentShader: string;
|
45
45
|
};
|
46
|
-
export declare const SMAABlendShader: {
|
46
|
+
export type declare const SMAABlendShader: {
|
47
47
|
uniforms: {
|
48
48
|
tDiffuse: {
|
49
49
|
value: null;
|
package/shaders/SSAOShader.d.cts
CHANGED
@@ -5,7 +5,7 @@ import type { Matrix4, Vector2 } from 'three';
|
|
5
5
|
* https://learnopengl.com/Advanced-Lighting/SSAO
|
6
6
|
* https://github.com/McNopper/OpenGL/blob/master/Example28/shader/ssao.frag.glsl
|
7
7
|
*/
|
8
|
-
export declare const SSAOShader: {
|
8
|
+
export type declare const SSAOShader: {
|
9
9
|
defines: {
|
10
10
|
PERSPECTIVE_CAMERA: number;
|
11
11
|
KERNEL_SIZE: number;
|
@@ -54,7 +54,7 @@ export declare const SSAOShader: {
|
|
54
54
|
vertexShader: string;
|
55
55
|
fragmentShader: string;
|
56
56
|
};
|
57
|
-
export declare const SSAODepthShader: {
|
57
|
+
export type declare const SSAODepthShader: {
|
58
58
|
defines: {
|
59
59
|
PERSPECTIVE_CAMERA: number;
|
60
60
|
};
|
@@ -72,7 +72,7 @@ export declare const SSAODepthShader: {
|
|
72
72
|
vertexShader: string;
|
73
73
|
fragmentShader: string;
|
74
74
|
};
|
75
|
-
export declare const SSAOBlurShader: {
|
75
|
+
export type declare const SSAOBlurShader: {
|
76
76
|
uniforms: {
|
77
77
|
tDiffuse: {
|
78
78
|
value: null;
|
package/shaders/SSAOShader.d.ts
CHANGED
@@ -5,7 +5,7 @@ import type { Matrix4, Vector2 } from 'three';
|
|
5
5
|
* https://learnopengl.com/Advanced-Lighting/SSAO
|
6
6
|
* https://github.com/McNopper/OpenGL/blob/master/Example28/shader/ssao.frag.glsl
|
7
7
|
*/
|
8
|
-
export declare const SSAOShader: {
|
8
|
+
export type declare const SSAOShader: {
|
9
9
|
defines: {
|
10
10
|
PERSPECTIVE_CAMERA: number;
|
11
11
|
KERNEL_SIZE: number;
|
@@ -54,7 +54,7 @@ export declare const SSAOShader: {
|
|
54
54
|
vertexShader: string;
|
55
55
|
fragmentShader: string;
|
56
56
|
};
|
57
|
-
export declare const SSAODepthShader: {
|
57
|
+
export type declare const SSAODepthShader: {
|
58
58
|
defines: {
|
59
59
|
PERSPECTIVE_CAMERA: number;
|
60
60
|
};
|
@@ -72,7 +72,7 @@ export declare const SSAODepthShader: {
|
|
72
72
|
vertexShader: string;
|
73
73
|
fragmentShader: string;
|
74
74
|
};
|
75
|
-
export declare const SSAOBlurShader: {
|
75
|
+
export type declare const SSAOBlurShader: {
|
76
76
|
uniforms: {
|
77
77
|
tDiffuse: {
|
78
78
|
value: null;
|
package/shaders/SSRShader.d.cts
CHANGED
@@ -3,7 +3,7 @@ import type { Matrix4, Vector2 } from 'three';
|
|
3
3
|
* References:
|
4
4
|
* https://lettier.github.io/3d-game-shaders-for-beginners/screen-space-reflection.html
|
5
5
|
*/
|
6
|
-
export declare const SSRShader: {
|
6
|
+
export type declare const SSRShader: {
|
7
7
|
defines: {
|
8
8
|
MAX_STEP: number;
|
9
9
|
isPerspectiveCamera: boolean;
|
@@ -59,7 +59,7 @@ export declare const SSRShader: {
|
|
59
59
|
vertexShader: string;
|
60
60
|
fragmentShader: string;
|
61
61
|
};
|
62
|
-
export declare const SSRDepthShader: {
|
62
|
+
export type declare const SSRDepthShader: {
|
63
63
|
defines: {
|
64
64
|
PERSPECTIVE_CAMERA: number;
|
65
65
|
};
|
@@ -77,7 +77,7 @@ export declare const SSRDepthShader: {
|
|
77
77
|
vertexShader: string;
|
78
78
|
fragmentShader: string;
|
79
79
|
};
|
80
|
-
export declare const SSRBlurShader: {
|
80
|
+
export type declare const SSRBlurShader: {
|
81
81
|
uniforms: {
|
82
82
|
tDiffuse: {
|
83
83
|
value: null;
|
package/shaders/SSRShader.d.ts
CHANGED
@@ -3,7 +3,7 @@ import type { Matrix4, Vector2 } from 'three';
|
|
3
3
|
* References:
|
4
4
|
* https://lettier.github.io/3d-game-shaders-for-beginners/screen-space-reflection.html
|
5
5
|
*/
|
6
|
-
export declare const SSRShader: {
|
6
|
+
export type declare const SSRShader: {
|
7
7
|
defines: {
|
8
8
|
MAX_STEP: number;
|
9
9
|
isPerspectiveCamera: boolean;
|
@@ -59,7 +59,7 @@ export declare const SSRShader: {
|
|
59
59
|
vertexShader: string;
|
60
60
|
fragmentShader: string;
|
61
61
|
};
|
62
|
-
export declare const SSRDepthShader: {
|
62
|
+
export type declare const SSRDepthShader: {
|
63
63
|
defines: {
|
64
64
|
PERSPECTIVE_CAMERA: number;
|
65
65
|
};
|
@@ -77,7 +77,7 @@ export declare const SSRDepthShader: {
|
|
77
77
|
vertexShader: string;
|
78
78
|
fragmentShader: string;
|
79
79
|
};
|
80
|
-
export declare const SSRBlurShader: {
|
80
|
+
export type declare const SSRBlurShader: {
|
81
81
|
uniforms: {
|
82
82
|
tDiffuse: {
|
83
83
|
value: null;
|
package/shaders/SepiaShader.d.ts
CHANGED
@@ -5,7 +5,7 @@ import type { Vector2 } from 'three';
|
|
5
5
|
* As mentioned in the video the Sobel operator expects a grayscale image as input.
|
6
6
|
*
|
7
7
|
*/
|
8
|
-
export declare const SobelOperatorShader: {
|
8
|
+
export type declare const SobelOperatorShader: {
|
9
9
|
uniforms: {
|
10
10
|
tDiffuse: {
|
11
11
|
value: null;
|
@@ -5,7 +5,7 @@ import type { Vector2 } from 'three';
|
|
5
5
|
* As mentioned in the video the Sobel operator expects a grayscale image as input.
|
6
6
|
*
|
7
7
|
*/
|
8
|
-
export declare const SobelOperatorShader: {
|
8
|
+
export type declare const SobelOperatorShader: {
|
9
9
|
uniforms: {
|
10
10
|
tDiffuse: {
|
11
11
|
value: null;
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* More historical info here: http://www.widescreenmuseum.com/oldcolor/technicolor1.htm
|
5
5
|
* Demo here: http://charliehoey.com/technicolor_shader/shader_test.html
|
6
6
|
*/
|
7
|
-
export declare const TechnicolorShader: {
|
7
|
+
export type declare const TechnicolorShader: {
|
8
8
|
uniforms: {
|
9
9
|
tDiffuse: {
|
10
10
|
value: null;
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* More historical info here: http://www.widescreenmuseum.com/oldcolor/technicolor1.htm
|
5
5
|
* Demo here: http://charliehoey.com/technicolor_shader/shader_test.html
|
6
6
|
*/
|
7
|
-
export declare const TechnicolorShader: {
|
7
|
+
export type declare const TechnicolorShader: {
|
8
8
|
uniforms: {
|
9
9
|
tDiffuse: {
|
10
10
|
value: null;
|
package/shaders/ToonShader.d.cts
CHANGED
@@ -7,7 +7,7 @@ import type { Color, Vector3 } from 'three';
|
|
7
7
|
* hatching
|
8
8
|
* dotted
|
9
9
|
*/
|
10
|
-
export declare const ToonShader1: {
|
10
|
+
export type declare const ToonShader1: {
|
11
11
|
uniforms: {
|
12
12
|
uDirLightPos: {
|
13
13
|
value: Vector3;
|
@@ -25,7 +25,7 @@ export declare const ToonShader1: {
|
|
25
25
|
vertexShader: string;
|
26
26
|
fragmentShader: string;
|
27
27
|
};
|
28
|
-
export declare const ToonShader2: {
|
28
|
+
export type declare const ToonShader2: {
|
29
29
|
uniforms: {
|
30
30
|
uDirLightPos: {
|
31
31
|
value: Vector3;
|
@@ -55,7 +55,7 @@ export declare const ToonShader2: {
|
|
55
55
|
vertexShader: string;
|
56
56
|
fragmentShader: string;
|
57
57
|
};
|
58
|
-
export declare const ToonShaderHatching: {
|
58
|
+
export type declare const ToonShaderHatching: {
|
59
59
|
uniforms: {
|
60
60
|
uDirLightPos: {
|
61
61
|
value: Vector3;
|
@@ -85,7 +85,7 @@ export declare const ToonShaderHatching: {
|
|
85
85
|
vertexShader: string;
|
86
86
|
fragmentShader: string;
|
87
87
|
};
|
88
|
-
export declare const ToonShaderDotted: {
|
88
|
+
export type declare const ToonShaderDotted: {
|
89
89
|
uniforms: {
|
90
90
|
uDirLightPos: {
|
91
91
|
value: Vector3;
|
package/shaders/ToonShader.d.ts
CHANGED
@@ -7,7 +7,7 @@ import type { Color, Vector3 } from 'three';
|
|
7
7
|
* hatching
|
8
8
|
* dotted
|
9
9
|
*/
|
10
|
-
export declare const ToonShader1: {
|
10
|
+
export type declare const ToonShader1: {
|
11
11
|
uniforms: {
|
12
12
|
uDirLightPos: {
|
13
13
|
value: Vector3;
|
@@ -25,7 +25,7 @@ export declare const ToonShader1: {
|
|
25
25
|
vertexShader: string;
|
26
26
|
fragmentShader: string;
|
27
27
|
};
|
28
|
-
export declare const ToonShader2: {
|
28
|
+
export type declare const ToonShader2: {
|
29
29
|
uniforms: {
|
30
30
|
uDirLightPos: {
|
31
31
|
value: Vector3;
|
@@ -55,7 +55,7 @@ export declare const ToonShader2: {
|
|
55
55
|
vertexShader: string;
|
56
56
|
fragmentShader: string;
|
57
57
|
};
|
58
|
-
export declare const ToonShaderHatching: {
|
58
|
+
export type declare const ToonShaderHatching: {
|
59
59
|
uniforms: {
|
60
60
|
uDirLightPos: {
|
61
61
|
value: Vector3;
|
@@ -85,7 +85,7 @@ export declare const ToonShaderHatching: {
|
|
85
85
|
vertexShader: string;
|
86
86
|
fragmentShader: string;
|
87
87
|
};
|
88
|
-
export declare const ToonShaderDotted: {
|
88
|
+
export type declare const ToonShaderDotted: {
|
89
89
|
uniforms: {
|
90
90
|
uDirLightPos: {
|
91
91
|
value: Vector3;
|
@@ -8,7 +8,7 @@ import type { Vector2 } from 'three';
|
|
8
8
|
* pyramid filter. The pyramid filter is separable and is applied as two
|
9
9
|
* perpendicular triangle filters.
|
10
10
|
*/
|
11
|
-
export declare const TriangleBlurShader: {
|
11
|
+
export type declare const TriangleBlurShader: {
|
12
12
|
uniforms: {
|
13
13
|
texture: {
|
14
14
|
value: null;
|
@@ -8,7 +8,7 @@ import type { Vector2 } from 'three';
|
|
8
8
|
* pyramid filter. The pyramid filter is separable and is applied as two
|
9
9
|
* perpendicular triangle filters.
|
10
10
|
*/
|
11
|
-
export declare const TriangleBlurShader: {
|
11
|
+
export type declare const TriangleBlurShader: {
|
12
12
|
uniforms: {
|
13
13
|
texture: {
|
14
14
|
value: null;
|
@@ -15,4 +15,4 @@ export type VerticalBlurShaderUniforms = {
|
|
15
15
|
};
|
16
16
|
export interface IVerticalBlurShader extends IShader<VerticalBlurShaderUniforms> {
|
17
17
|
}
|
18
|
-
export declare const VerticalBlurShader: IVerticalBlurShader;
|
18
|
+
export type declare const VerticalBlurShader: IVerticalBlurShader;
|
@@ -15,4 +15,4 @@ export type VerticalBlurShaderUniforms = {
|
|
15
15
|
};
|
16
16
|
export interface IVerticalBlurShader extends IShader<VerticalBlurShaderUniforms> {
|
17
17
|
}
|
18
|
-
export declare const VerticalBlurShader: IVerticalBlurShader;
|
18
|
+
export type declare const VerticalBlurShader: IVerticalBlurShader;
|
@@ -6,7 +6,7 @@
|
|
6
6
|
* - "h" and "v" parameters should be set to "1 / width" and "1 / height"
|
7
7
|
* - "r" parameter control where "focused" horizontal line lies
|
8
8
|
*/
|
9
|
-
export declare const VerticalTiltShiftShader: {
|
9
|
+
export type declare const VerticalTiltShiftShader: {
|
10
10
|
uniforms: {
|
11
11
|
tDiffuse: {
|
12
12
|
value: null;
|
@@ -6,7 +6,7 @@
|
|
6
6
|
* - "h" and "v" parameters should be set to "1 / width" and "1 / height"
|
7
7
|
* - "r" parameter control where "focused" horizontal line lies
|
8
8
|
*/
|
9
|
-
export declare const VerticalTiltShiftShader: {
|
9
|
+
export type declare const VerticalTiltShiftShader: {
|
10
10
|
uniforms: {
|
11
11
|
tDiffuse: {
|
12
12
|
value: null;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* based on PaintEffect postprocess from ro.me
|
4
4
|
* http://code.google.com/p/3-dreams-of-black/source/browse/deploy/js/effects/PaintEffect.js
|
5
5
|
*/
|
6
|
-
export declare const VignetteShader: {
|
6
|
+
export type declare const VignetteShader: {
|
7
7
|
uniforms: {
|
8
8
|
tDiffuse: {
|
9
9
|
value: null;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* based on PaintEffect postprocess from ro.me
|
4
4
|
* http://code.google.com/p/3-dreams-of-black/source/browse/deploy/js/effects/PaintEffect.js
|
5
5
|
*/
|
6
|
-
export declare const VignetteShader: {
|
6
|
+
export type declare const VignetteShader: {
|
7
7
|
uniforms: {
|
8
8
|
tDiffuse: {
|
9
9
|
value: null;
|
@@ -4,7 +4,7 @@ import type { Vector2, Vector3 } from 'three';
|
|
4
4
|
* The applied techniques are based on similar implementations in the Visvis and Vispy projects.
|
5
5
|
* This is not the only approach, therefore it's marked 1.
|
6
6
|
*/
|
7
|
-
export declare const VolumeRenderShader1: {
|
7
|
+
export type declare const VolumeRenderShader1: {
|
8
8
|
uniforms: {
|
9
9
|
u_size: {
|
10
10
|
value: Vector3;
|
@@ -4,7 +4,7 @@ import type { Vector2, Vector3 } from 'three';
|
|
4
4
|
* The applied techniques are based on similar implementations in the Visvis and Vispy projects.
|
5
5
|
* This is not the only approach, therefore it's marked 1.
|
6
6
|
*/
|
7
|
-
export declare const VolumeRenderShader1: {
|
7
|
+
export type declare const VolumeRenderShader1: {
|
8
8
|
uniforms: {
|
9
9
|
u_size: {
|
10
10
|
value: Vector3;
|
package/types/helpers.d.cts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const getWithKey: <T, K extends keyof T>(obj: T, key: K) => T[K];
|
1
|
+
export type declare const getWithKey: <T, K extends keyof T>(obj: T, key: K) => T[K];
|
package/types/helpers.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const getWithKey: <T, K extends keyof T>(obj: T, key: K) => T[K];
|
1
|
+
export type declare const getWithKey: <T, K extends keyof T>(obj: T, key: K) => T[K];
|
package/types/shared.d.cts
CHANGED
package/types/shared.d.ts
CHANGED
@@ -4,34 +4,34 @@ import type { BufferAttribute, BufferGeometry, Float32BufferAttribute, Interleav
|
|
4
4
|
* @param {Boolean} useGroups
|
5
5
|
* @return {BufferGeometry}
|
6
6
|
*/
|
7
|
-
export declare const mergeBufferGeometries: (geometries: BufferGeometry[], useGroups?: boolean) => BufferGeometry | null;
|
7
|
+
export type declare const mergeBufferGeometries: (geometries: BufferGeometry[], useGroups?: boolean) => BufferGeometry | null;
|
8
8
|
/**
|
9
9
|
* @param {Array<BufferAttribute>} attributes
|
10
10
|
* @return {BufferAttribute}
|
11
11
|
*/
|
12
|
-
export declare const mergeBufferAttributes: (attributes: BufferAttribute[]) => BufferAttribute | null | undefined;
|
12
|
+
export type declare const mergeBufferAttributes: (attributes: BufferAttribute[]) => BufferAttribute | null | undefined;
|
13
13
|
/**
|
14
14
|
* @param {Array<BufferAttribute>} attributes
|
15
15
|
* @return {Array<InterleavedBufferAttribute>}
|
16
16
|
*/
|
17
|
-
export declare const interleaveAttributes: (attributes: BufferAttribute[]) => InterleavedBufferAttribute[] | null;
|
17
|
+
export type declare const interleaveAttributes: (attributes: BufferAttribute[]) => InterleavedBufferAttribute[] | null;
|
18
18
|
/**
|
19
19
|
* @param {Array<BufferGeometry>} geometry
|
20
20
|
* @return {number}
|
21
21
|
*/
|
22
|
-
export declare function estimateBytesUsed(geometry: BufferGeometry): number;
|
22
|
+
export type declare function estimateBytesUsed(geometry: BufferGeometry): number;
|
23
23
|
/**
|
24
24
|
* @param {BufferGeometry} geometry
|
25
25
|
* @param {number} tolerance
|
26
26
|
* @return {BufferGeometry>}
|
27
27
|
*/
|
28
|
-
export declare function mergeVertices(geometry: BufferGeometry, tolerance?: number): BufferGeometry;
|
28
|
+
export type declare function mergeVertices(geometry: BufferGeometry, tolerance?: number): BufferGeometry;
|
29
29
|
/**
|
30
30
|
* @param {BufferGeometry} geometry
|
31
31
|
* @param {number} drawMode
|
32
32
|
* @return {BufferGeometry}
|
33
33
|
*/
|
34
|
-
export declare function toTrianglesDrawMode(geometry: BufferGeometry, drawMode: number): BufferGeometry;
|
34
|
+
export type declare function toTrianglesDrawMode(geometry: BufferGeometry, drawMode: number): BufferGeometry;
|
35
35
|
/**
|
36
36
|
* Calculates the morphed attributes of a morphed/skinned BufferGeometry.
|
37
37
|
* Helpful for Raytracing or Decals.
|
@@ -44,7 +44,7 @@ export type ComputedMorphedAttribute = {
|
|
44
44
|
morphedPositionAttribute: Float32BufferAttribute;
|
45
45
|
morphedNormalAttribute: Float32BufferAttribute;
|
46
46
|
};
|
47
|
-
export declare function computeMorphedAttributes(object: Mesh | Line | Points): ComputedMorphedAttribute | null;
|
47
|
+
export type declare function computeMorphedAttributes(object: Mesh | Line | Points): ComputedMorphedAttribute | null;
|
48
48
|
/**
|
49
49
|
* Modifies the supplied geometry if it is non-indexed, otherwise creates a new,
|
50
50
|
* non-indexed geometry. Returns the geometry with smooth normals everywhere except
|
@@ -60,4 +60,4 @@ export declare function computeMorphedAttributes(object: Mesh | Line | Points):
|
|
60
60
|
* @param geometry
|
61
61
|
* @param creaseAngle
|
62
62
|
*/
|
63
|
-
export declare function toCreasedNormals(geometry: BufferGeometry, creaseAngle?: number): BufferGeometry;
|
63
|
+
export type declare function toCreasedNormals(geometry: BufferGeometry, creaseAngle?: number): BufferGeometry;
|
@@ -4,34 +4,34 @@ import type { BufferAttribute, BufferGeometry, Float32BufferAttribute, Interleav
|
|
4
4
|
* @param {Boolean} useGroups
|
5
5
|
* @return {BufferGeometry}
|
6
6
|
*/
|
7
|
-
export declare const mergeBufferGeometries: (geometries: BufferGeometry[], useGroups?: boolean) => BufferGeometry | null;
|
7
|
+
export type declare const mergeBufferGeometries: (geometries: BufferGeometry[], useGroups?: boolean) => BufferGeometry | null;
|
8
8
|
/**
|
9
9
|
* @param {Array<BufferAttribute>} attributes
|
10
10
|
* @return {BufferAttribute}
|
11
11
|
*/
|
12
|
-
export declare const mergeBufferAttributes: (attributes: BufferAttribute[]) => BufferAttribute | null | undefined;
|
12
|
+
export type declare const mergeBufferAttributes: (attributes: BufferAttribute[]) => BufferAttribute | null | undefined;
|
13
13
|
/**
|
14
14
|
* @param {Array<BufferAttribute>} attributes
|
15
15
|
* @return {Array<InterleavedBufferAttribute>}
|
16
16
|
*/
|
17
|
-
export declare const interleaveAttributes: (attributes: BufferAttribute[]) => InterleavedBufferAttribute[] | null;
|
17
|
+
export type declare const interleaveAttributes: (attributes: BufferAttribute[]) => InterleavedBufferAttribute[] | null;
|
18
18
|
/**
|
19
19
|
* @param {Array<BufferGeometry>} geometry
|
20
20
|
* @return {number}
|
21
21
|
*/
|
22
|
-
export declare function estimateBytesUsed(geometry: BufferGeometry): number;
|
22
|
+
export type declare function estimateBytesUsed(geometry: BufferGeometry): number;
|
23
23
|
/**
|
24
24
|
* @param {BufferGeometry} geometry
|
25
25
|
* @param {number} tolerance
|
26
26
|
* @return {BufferGeometry>}
|
27
27
|
*/
|
28
|
-
export declare function mergeVertices(geometry: BufferGeometry, tolerance?: number): BufferGeometry;
|
28
|
+
export type declare function mergeVertices(geometry: BufferGeometry, tolerance?: number): BufferGeometry;
|
29
29
|
/**
|
30
30
|
* @param {BufferGeometry} geometry
|
31
31
|
* @param {number} drawMode
|
32
32
|
* @return {BufferGeometry}
|
33
33
|
*/
|
34
|
-
export declare function toTrianglesDrawMode(geometry: BufferGeometry, drawMode: number): BufferGeometry;
|
34
|
+
export type declare function toTrianglesDrawMode(geometry: BufferGeometry, drawMode: number): BufferGeometry;
|
35
35
|
/**
|
36
36
|
* Calculates the morphed attributes of a morphed/skinned BufferGeometry.
|
37
37
|
* Helpful for Raytracing or Decals.
|
@@ -44,7 +44,7 @@ export type ComputedMorphedAttribute = {
|
|
44
44
|
morphedPositionAttribute: Float32BufferAttribute;
|
45
45
|
morphedNormalAttribute: Float32BufferAttribute;
|
46
46
|
};
|
47
|
-
export declare function computeMorphedAttributes(object: Mesh | Line | Points): ComputedMorphedAttribute | null;
|
47
|
+
export type declare function computeMorphedAttributes(object: Mesh | Line | Points): ComputedMorphedAttribute | null;
|
48
48
|
/**
|
49
49
|
* Modifies the supplied geometry if it is non-indexed, otherwise creates a new,
|
50
50
|
* non-indexed geometry. Returns the geometry with smooth normals everywhere except
|
@@ -60,4 +60,4 @@ export declare function computeMorphedAttributes(object: Mesh | Line | Points):
|
|
60
60
|
* @param geometry
|
61
61
|
* @param creaseAngle
|
62
62
|
*/
|
63
|
-
export declare function toCreasedNormals(geometry: BufferGeometry, creaseAngle?: number): BufferGeometry;
|
63
|
+
export type declare function toCreasedNormals(geometry: BufferGeometry, creaseAngle?: number): BufferGeometry;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Mesh } from 'three'
|
2
2
|
|
3
|
-
export namespace GeometryCompressionUtils {
|
3
|
+
export type namespace GeometryCompressionUtils {
|
4
4
|
function compressNormals(mesh: Mesh, encodeMethod: string): void
|
5
5
|
function compressPositions(mesh: Mesh): void
|
6
6
|
function compressUvs(mesh: Mesh): void
|