@types/three 0.167.2 → 0.168.0
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.
- three/README.md +2 -2
- three/examples/jsm/Addons.d.ts +5 -1
- three/examples/jsm/capabilities/WebGL.d.ts +11 -3
- three/examples/jsm/controls/ArcballControls.d.ts +111 -77
- three/examples/jsm/controls/DragControls.d.ts +56 -27
- three/examples/jsm/controls/FirstPersonControls.d.ts +82 -12
- three/examples/jsm/controls/FlyControls.d.ts +35 -11
- three/examples/jsm/controls/OrbitControls.d.ts +84 -137
- three/examples/jsm/controls/PointerLockControls.d.ts +68 -9
- three/examples/jsm/controls/TrackballControls.d.ts +110 -26
- three/examples/jsm/effects/AnaglyphEffect.d.ts +11 -5
- three/examples/jsm/effects/ParallaxBarrierEffect.d.ts +7 -4
- three/examples/jsm/environments/RoomEnvironment.d.ts +2 -2
- three/examples/jsm/loaders/KTX2Loader.d.ts +4 -0
- three/examples/jsm/objects/SkyMesh.d.ts +17 -0
- three/examples/jsm/objects/Water2.d.ts +2 -2
- three/examples/jsm/objects/Water2Mesh.d.ts +42 -0
- three/examples/jsm/objects/WaterMesh.d.ts +31 -0
- three/examples/jsm/postprocessing/OutlinePass.d.ts +1 -1
- three/examples/jsm/postprocessing/SSAARenderPass.d.ts +11 -2
- three/package.json +4 -3
- three/src/Three.WebGPU.d.ts +6 -0
- three/src/Three.d.ts +1 -0
- three/src/core/EventDispatcher.d.ts +0 -3
- three/src/core/Object3D.d.ts +2 -0
- three/src/extras/Controls.d.ts +54 -0
- three/src/{nodes/loaders → loaders/nodes}/NodeLoader.d.ts +3 -3
- three/src/{nodes/loaders → loaders/nodes}/NodeMaterialLoader.d.ts +1 -1
- three/src/{nodes/loaders → loaders/nodes}/NodeObjectLoader.d.ts +1 -1
- three/src/materials/Material.d.ts +17 -13
- three/src/materials/nodes/InstancedPointsNodeMaterial.d.ts +33 -0
- three/src/{nodes/materials → materials/nodes}/Line2NodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/LineBasicNodeMaterial.d.ts +1 -1
- three/src/materials/nodes/LineDashedNodeMaterial.d.ts +29 -0
- three/src/{nodes/materials → materials/nodes}/MeshBasicNodeMaterial.d.ts +1 -1
- three/src/materials/nodes/MeshLambertNodeMaterial.d.ts +49 -0
- three/src/{nodes/materials → materials/nodes}/MeshMatcapNodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/MeshNormalNodeMaterial.d.ts +1 -1
- three/src/{nodes/materials → materials/nodes}/MeshPhongNodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/MeshPhysicalNodeMaterial.d.ts +5 -2
- three/src/{nodes/materials → materials/nodes}/MeshSSSNodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/MeshStandardNodeMaterial.d.ts +3 -3
- three/src/{nodes/materials → materials/nodes}/MeshToonNodeMaterial.d.ts +2 -2
- three/src/materials/nodes/NodeMaterial.d.ts +91 -0
- three/src/{nodes/materials/Materials.d.ts → materials/nodes/NodeMaterials.d.ts} +5 -2
- three/src/{nodes/materials → materials/nodes}/PointsNodeMaterial.d.ts +1 -2
- three/src/{nodes/materials → materials/nodes}/ShadowNodeMaterial.d.ts +1 -1
- three/src/{nodes/materials → materials/nodes}/SpriteNodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/VolumeNodeMaterial.d.ts +1 -1
- three/src/nodes/Nodes.d.ts +117 -362
- three/src/nodes/TSL.d.ts +269 -0
- three/src/nodes/accessors/AccessorsUtils.d.ts +1 -1
- three/src/nodes/accessors/BatchNode.d.ts +1 -2
- three/src/nodes/accessors/{BitangentNode.d.ts → Bitangent.d.ts} +1 -1
- three/src/nodes/accessors/BufferAttributeNode.d.ts +4 -4
- three/src/nodes/accessors/BufferNode.d.ts +1 -1
- three/src/nodes/accessors/{CameraNode.d.ts → Camera.d.ts} +1 -1
- three/src/nodes/accessors/ClippingNode.d.ts +1 -1
- three/src/nodes/accessors/CubeTextureNode.d.ts +1 -7
- three/src/nodes/accessors/InstanceNode.d.ts +1 -1
- three/src/nodes/accessors/MaterialNode.d.ts +3 -3
- three/src/nodes/accessors/MaterialProperties.d.ts +4 -0
- three/src/nodes/accessors/MaterialReferenceNode.d.ts +3 -1
- three/src/nodes/accessors/ModelNode.d.ts +1 -1
- three/src/nodes/accessors/ModelViewProjectionNode.d.ts +1 -1
- three/src/nodes/accessors/MorphNode.d.ts +15 -0
- three/src/nodes/accessors/{NormalNode.d.ts → Normal.d.ts} +11 -4
- three/src/nodes/accessors/Object3DNode.d.ts +1 -1
- three/src/nodes/accessors/PointUVNode.d.ts +1 -1
- three/src/nodes/accessors/{PositionNode.d.ts → Position.d.ts} +2 -1
- three/src/nodes/accessors/ReferenceBaseNode.d.ts +27 -0
- three/src/nodes/accessors/ReferenceNode.d.ts +7 -5
- three/src/nodes/accessors/{ReflectVectorNode.d.ts → ReflectVector.d.ts} +1 -1
- three/src/nodes/accessors/RendererReferenceNode.d.ts +1 -1
- three/src/nodes/accessors/SceneNode.d.ts +20 -0
- three/src/nodes/accessors/SkinningNode.d.ts +11 -1
- three/src/nodes/accessors/StorageBufferNode.d.ts +2 -2
- three/src/nodes/accessors/StorageTextureNode.d.ts +1 -1
- three/src/nodes/accessors/{TangentNode.d.ts → Tangent.d.ts} +1 -1
- three/src/nodes/accessors/Texture3DNode.d.ts +1 -1
- three/src/nodes/accessors/TextureBicubic.d.ts +4 -0
- three/src/nodes/accessors/TextureNode.d.ts +26 -7
- three/src/nodes/accessors/TextureSizeNode.d.ts +18 -0
- three/src/nodes/accessors/{UVNode.d.ts → UV.d.ts} +1 -1
- three/src/nodes/accessors/UniformArrayNode.d.ts +30 -0
- three/src/nodes/accessors/UserDataNode.d.ts +1 -1
- three/src/nodes/accessors/VelocityNode.d.ts +15 -0
- three/src/nodes/accessors/VertexColorNode.d.ts +1 -1
- three/src/nodes/code/CodeNode.d.ts +1 -1
- three/src/nodes/code/ExpressionNode.d.ts +1 -1
- three/src/nodes/code/FunctionCallNode.d.ts +2 -2
- three/src/nodes/code/FunctionNode.d.ts +5 -6
- three/src/nodes/code/ScriptableNode.d.ts +22 -0
- three/src/nodes/code/ScriptableValueNode.d.ts +10 -0
- three/src/nodes/core/AssignNode.d.ts +2 -2
- three/src/nodes/core/AttributeNode.d.ts +2 -5
- three/src/nodes/core/BypassNode.d.ts +2 -2
- three/src/nodes/core/CacheNode.d.ts +2 -2
- three/src/nodes/core/ContextNode.d.ts +10 -7
- three/src/nodes/core/IndexNode.d.ts +11 -3
- three/src/nodes/core/MRTNode.d.ts +7 -2
- three/src/nodes/core/Node.d.ts +8 -2
- three/src/nodes/core/OutputStructNode.d.ts +1 -1
- three/src/nodes/core/ParameterNode.d.ts +12 -0
- three/src/nodes/core/PropertyNode.d.ts +1 -1
- three/src/nodes/core/StackNode.d.ts +12 -2
- three/src/nodes/core/UniformNode.d.ts +1 -1
- three/src/nodes/core/VarNode.d.ts +2 -10
- three/src/nodes/core/VaryingNode.d.ts +2 -2
- three/src/nodes/display/AfterImageNode.d.ts +1 -7
- three/src/nodes/display/AnaglyphPassNode.d.ts +14 -0
- three/src/nodes/display/AnamorphicNode.d.ts +1 -7
- three/src/nodes/display/BleachBypass.d.ts +4 -0
- three/src/nodes/display/BlendMode.d.ts +10 -0
- three/src/nodes/display/BloomNode.d.ts +1 -7
- three/src/nodes/display/BumpMapNode.d.ts +16 -0
- three/src/nodes/display/ColorAdjustment.d.ts +27 -0
- three/src/nodes/display/ColorSpaceFunctions.d.ts +6 -0
- three/src/nodes/display/ColorSpaceNode.d.ts +23 -23
- three/src/nodes/display/DenoiseNode.d.ts +3 -9
- three/src/nodes/display/DepthOfFieldNode.d.ts +4 -8
- three/src/nodes/display/DotScreenNode.d.ts +4 -8
- three/src/nodes/display/FXAANode.d.ts +3 -9
- three/src/nodes/display/FilmNode.d.ts +3 -9
- three/src/nodes/display/FrontFacingNode.d.ts +4 -2
- three/src/nodes/display/GTAONode.d.ts +3 -9
- three/src/nodes/display/GaussianBlurNode.d.ts +4 -8
- three/src/nodes/display/Lut3DNode.d.ts +3 -9
- three/src/nodes/display/MotionBlur.d.ts +8 -0
- three/src/nodes/display/NormalMapNode.d.ts +4 -8
- three/src/nodes/display/ParallaxBarrierPassNode.d.ts +14 -0
- three/src/nodes/display/PassNode.d.ts +11 -2
- three/src/nodes/display/PixelationPassNode.d.ts +1 -37
- three/src/nodes/display/PosterizeNode.d.ts +1 -7
- three/src/nodes/display/RGBShiftNode.d.ts +1 -7
- three/src/nodes/display/RenderOutputNode.d.ts +2 -2
- three/src/nodes/display/SSAAPassNode.d.ts +26 -0
- three/src/nodes/display/Sepia.d.ts +4 -0
- three/src/nodes/display/SobelOperatorNode.d.ts +4 -8
- three/src/nodes/display/StereoCompositePassNode.d.ts +17 -0
- three/src/nodes/display/StereoPassNode.d.ts +17 -0
- three/src/nodes/display/ToneMappingFunctions.d.ts +14 -0
- three/src/nodes/display/ToneMappingNode.d.ts +5 -6
- three/src/nodes/display/TransitionNode.d.ts +3 -9
- three/src/nodes/display/ViewportDepthNode.d.ts +6 -2
- three/src/nodes/display/ViewportDepthTextureNode.d.ts +4 -2
- three/src/nodes/display/ViewportNode.d.ts +23 -16
- three/src/nodes/display/ViewportSharedTextureNode.d.ts +4 -8
- three/src/nodes/display/ViewportTextureNode.d.ts +4 -9
- three/src/nodes/fog/FogExp2Node.d.ts +4 -8
- three/src/nodes/fog/FogNode.d.ts +4 -8
- three/src/nodes/fog/FogRangeNode.d.ts +4 -8
- three/src/nodes/functions/BSDF/BRDF_GGX.d.ts +1 -1
- three/src/nodes/functions/BSDF/BRDF_Lambert.d.ts +1 -1
- three/src/nodes/functions/BSDF/BRDF_Sheen.d.ts +1 -1
- three/src/nodes/functions/BSDF/DFGApprox.d.ts +1 -1
- three/src/nodes/functions/BSDF/D_GGX.d.ts +1 -1
- three/src/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +1 -1
- three/src/nodes/functions/BSDF/F_Schlick.d.ts +1 -1
- three/src/nodes/functions/BSDF/Schlick_to_F0.d.ts +10 -0
- three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +1 -1
- three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +1 -1
- three/src/nodes/functions/ShadowMaskModel.d.ts +1 -1
- three/src/nodes/functions/material/getGeometryRoughness.d.ts +1 -1
- three/src/nodes/functions/material/getRoughness.d.ts +1 -1
- three/src/nodes/geometry/RangeNode.d.ts +1 -1
- three/src/nodes/gpgpu/ComputeNode.d.ts +2 -2
- three/src/nodes/lighting/AmbientLightNode.d.ts +8 -0
- three/src/nodes/lighting/DirectionalLightNode.d.ts +8 -0
- three/src/nodes/lighting/IESSpotLightNode.d.ts +5 -0
- three/src/nodes/lighting/LightNode.d.ts +18 -0
- three/src/nodes/lighting/LightProbeNode.d.ts +11 -0
- three/src/nodes/lighting/LightUtils.d.ts +3 -3
- three/src/nodes/lighting/LightingContextNode.d.ts +1 -7
- three/src/nodes/lighting/LightsNode.d.ts +9 -13
- three/src/nodes/materialx/MaterialXNodes.d.ts +1 -1
- three/src/nodes/materialx/lib/mx_hsv.d.ts +2 -2
- three/src/nodes/materialx/lib/mx_noise.d.ts +1 -1
- three/src/nodes/materialx/lib/mx_transform_color.d.ts +1 -1
- three/src/nodes/math/ConditionalNode.d.ts +39 -0
- three/src/nodes/math/Hash.d.ts +4 -0
- three/src/nodes/math/MathNode.d.ts +2 -2
- three/src/nodes/math/MathUtils.d.ts +0 -10
- three/src/nodes/math/OperatorNode.d.ts +18 -4
- three/src/nodes/math/TriNoise3D.d.ts +1 -1
- three/src/nodes/parsers/GLSLNodeFunction.d.ts +9 -0
- three/src/nodes/parsers/GLSLNodeParser.d.ts +8 -0
- three/src/nodes/pmrem/PMREMNode.d.ts +4 -2
- three/src/nodes/pmrem/PMREMUtils.d.ts +28 -0
- three/src/nodes/procedural/Checker.d.ts +4 -0
- three/src/nodes/tsl/TSLBase.d.ts +21 -0
- three/src/nodes/{shadernode/ShaderNode.d.ts → tsl/TSLCore.d.ts} +23 -23
- three/src/nodes/utils/CubeMapNode.d.ts +13 -0
- three/src/nodes/utils/Discard.d.ts +11 -0
- three/src/nodes/utils/EquirectUVNode.d.ts +1 -1
- three/src/nodes/utils/FunctionOverloadingNode.d.ts +13 -0
- three/src/nodes/utils/LoopNode.d.ts +22 -0
- three/src/nodes/utils/MatcapUVNode.d.ts +1 -1
- three/src/nodes/utils/MaxMipLevelNode.d.ts +1 -1
- three/src/nodes/utils/OscNode.d.ts +1 -1
- three/src/nodes/utils/Packing.d.ts +5 -0
- three/src/nodes/utils/RTTNode.d.ts +7 -7
- three/src/nodes/utils/ReflectorNode.d.ts +1 -1
- three/src/nodes/utils/RemapNode.d.ts +2 -2
- three/src/nodes/utils/RotateNode.d.ts +1 -7
- three/src/nodes/utils/SetNode.d.ts +11 -0
- three/src/nodes/utils/SplitNode.d.ts +1 -1
- three/src/nodes/utils/SpriteSheetUVNode.d.ts +1 -1
- three/src/nodes/utils/SpriteUtils.d.ts +6 -0
- three/src/nodes/utils/{StoargeArrayElementNode.d.ts → StorageArrayElementNode.d.ts} +1 -7
- three/src/nodes/utils/TimerNode.d.ts +1 -1
- three/src/nodes/utils/TriplanarTexturesNode.d.ts +1 -7
- three/src/nodes/utils/UVUtils.d.ts +14 -0
- three/src/nodes/utils/ViewportUtils.d.ts +4 -0
- three/src/renderers/common/BindGroup.d.ts +8 -1
- three/src/renderers/common/Bindings.d.ts +2 -2
- three/src/renderers/common/ClippingContext.d.ts +1 -0
- three/src/renderers/common/QuadMesh.d.ts +2 -0
- three/src/renderers/common/RenderContext.d.ts +2 -0
- three/src/renderers/common/RenderContexts.d.ts +6 -4
- three/src/renderers/common/RenderObjects.d.ts +1 -1
- three/src/renderers/common/Renderer.d.ts +16 -4
- three/src/renderers/common/SampledTexture.d.ts +7 -1
- three/src/renderers/common/StandardRenderer.d.ts +12 -0
- three/src/renderers/common/Textures.d.ts +1 -0
- three/src/renderers/common/nodes/NodeLibrary.d.ts +56 -0
- three/src/renderers/common/nodes/NodeSampledTexture.d.ts +3 -3
- three/src/renderers/common/nodes/Nodes.d.ts +7 -9
- three/src/renderers/common/nodes/StandardNodeLibrary.d.ts +5 -0
- three/src/renderers/webgl/WebGLProperties.d.ts +5 -4
- three/src/renderers/webgpu/WebGPUBackend.d.ts +6 -2
- three/src/renderers/webgpu/WebGPURenderer.d.ts +3 -3
- three/src/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +2 -2
- three/src/renderers/webxr/WebXRManager.d.ts +0 -2
- three/examples/jsm/loaders/LogLuvLoader.d.ts +0 -19
- three/src/nodes/accessors/TextureBicubicNode.d.ts +0 -18
- three/src/nodes/accessors/UniformsNode.d.ts +0 -23
- three/src/nodes/core/NodeKeywords.d.ts +0 -17
- three/src/nodes/display/BlendModeNode.d.ts +0 -47
- three/src/nodes/display/ColorAdjustmentNode.d.ts +0 -47
- three/src/nodes/materials/NodeMaterial.d.ts +0 -124
- three/src/nodes/math/CondNode.d.ts +0 -22
- three/src/nodes/math/HashNode.d.ts +0 -16
- three/src/nodes/procedural/CheckerNode.d.ts +0 -15
- three/src/nodes/utils/DiscardNode.d.ts +0 -17
- three/src/nodes/utils/PackingNode.d.ts +0 -24
- three/src/nodes/utils/RotateUVNode.d.ts +0 -19
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { Camera, Scene, WebGLRenderer } from "three";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
declare class ParallaxBarrierEffect {
|
|
4
|
+
setSize: (width: number, height: number) => void;
|
|
5
|
+
render: (scene: Scene, camera: Camera) => void;
|
|
6
|
+
dispose: () => void;
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
setSize(width: number, height: number): void;
|
|
8
|
+
constructor(renderer: WebGLRenderer);
|
|
8
9
|
}
|
|
10
|
+
|
|
11
|
+
export { ParallaxBarrierEffect };
|
|
@@ -43,6 +43,10 @@ export class KTX2Loader extends Loader<CompressedTexture> {
|
|
|
43
43
|
*/
|
|
44
44
|
detectSupport(renderer: WebGLRenderer | WebGPURenderer): this;
|
|
45
45
|
|
|
46
|
+
init(): Promise<void>;
|
|
47
|
+
|
|
48
|
+
parse(buffer: ArrayBuffer, onLoad?: (texture: CompressedTexture) => void, onError?: (err: unknown) => void): void;
|
|
49
|
+
|
|
46
50
|
/**
|
|
47
51
|
* Disposes the loader object, de-allocating any Web Workers created.
|
|
48
52
|
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ShaderNodeObject, UniformNode } from "three/tsl";
|
|
2
|
+
import { BoxGeometry, Mesh, NodeMaterial, Vector3 } from "three/webgpu";
|
|
3
|
+
|
|
4
|
+
declare class SkyMesh extends Mesh<BoxGeometry, NodeMaterial> {
|
|
5
|
+
turbidity: ShaderNodeObject<UniformNode<number>>;
|
|
6
|
+
rayleigh: ShaderNodeObject<UniformNode<number>>;
|
|
7
|
+
mieCoefficient: ShaderNodeObject<UniformNode<number>>;
|
|
8
|
+
mieDirectionalG: ShaderNodeObject<UniformNode<number>>;
|
|
9
|
+
sunPosition: ShaderNodeObject<UniformNode<Vector3>>;
|
|
10
|
+
upUniform: ShaderNodeObject<UniformNode<Vector3>>;
|
|
11
|
+
|
|
12
|
+
readonly isSky: true;
|
|
13
|
+
|
|
14
|
+
constructor();
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { SkyMesh };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BufferGeometry, ColorRepresentation, Mesh, ShaderMaterial, Texture, Vector2 } from "three";
|
|
2
2
|
|
|
3
|
-
export interface
|
|
3
|
+
export interface WaterOptions {
|
|
4
4
|
color?: ColorRepresentation | undefined;
|
|
5
5
|
textureWidth?: number | undefined;
|
|
6
6
|
textureHeight?: number | undefined;
|
|
@@ -17,5 +17,5 @@ export interface Water2Options {
|
|
|
17
17
|
|
|
18
18
|
export class Water extends Mesh {
|
|
19
19
|
material: ShaderMaterial;
|
|
20
|
-
constructor(geometry: BufferGeometry, options:
|
|
20
|
+
constructor(geometry: BufferGeometry, options: WaterOptions);
|
|
21
21
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { TempNode, TextureNode, UniformNode, Vector2, Vector3 } from "three/tsl";
|
|
2
|
+
import { BufferGeometry, Color, ColorRepresentation, Mesh, NodeMaterial, Texture } from "three/webgpu";
|
|
3
|
+
|
|
4
|
+
export interface WaterMeshOptions {
|
|
5
|
+
normalMap0: Texture;
|
|
6
|
+
normalMap1: Texture;
|
|
7
|
+
flowMap?: Texture | null | undefined;
|
|
8
|
+
|
|
9
|
+
color?: ColorRepresentation | undefined;
|
|
10
|
+
flowDirection?: Vector2 | undefined;
|
|
11
|
+
flowSpeed?: number | undefined;
|
|
12
|
+
reflectivity?: number | undefined;
|
|
13
|
+
scale?: number | undefined;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare class WaterMesh extends Mesh<BufferGeometry, NodeMaterial> {
|
|
17
|
+
readonly isWater: true;
|
|
18
|
+
|
|
19
|
+
constructor(geometry: BufferGeometry, options: WaterMeshOptions);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare class WaterNode extends TempNode {
|
|
23
|
+
waterBody: WaterMesh;
|
|
24
|
+
|
|
25
|
+
normalMap0: TextureNode;
|
|
26
|
+
normalMap1: TextureNode;
|
|
27
|
+
flowMap: TextureNode;
|
|
28
|
+
|
|
29
|
+
color: UniformNode<Color>;
|
|
30
|
+
flowDirection: UniformNode<Vector2>;
|
|
31
|
+
flowSpeed: UniformNode<number>;
|
|
32
|
+
reflectivity: UniformNode<number>;
|
|
33
|
+
scale: UniformNode<number>;
|
|
34
|
+
flowConfig: UniformNode<Vector3>;
|
|
35
|
+
|
|
36
|
+
constructor(options: WaterMeshOptions, waterBody: WaterMesh);
|
|
37
|
+
|
|
38
|
+
updateFlow(delta: number): void;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { WaterMesh };
|
|
42
|
+
export type { WaterNode };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TextureNode, UniformNode } from "three/tsl";
|
|
2
|
+
import { BufferGeometry, Color, ColorRepresentation, Mesh, NodeMaterial, Texture, Vector3 } from "three/webgpu";
|
|
3
|
+
|
|
4
|
+
export interface WaterMeshOptions {
|
|
5
|
+
resolution?: number | undefined;
|
|
6
|
+
waterNormals: Texture;
|
|
7
|
+
alpha?: number | undefined;
|
|
8
|
+
size?: number | undefined;
|
|
9
|
+
sunColor?: ColorRepresentation | undefined;
|
|
10
|
+
sunDirection?: Vector3 | undefined;
|
|
11
|
+
waterColor?: ColorRepresentation | undefined;
|
|
12
|
+
distortionScale?: number | undefined;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare class WaterMesh extends Mesh<BufferGeometry, NodeMaterial> {
|
|
16
|
+
readonly isWater: true;
|
|
17
|
+
|
|
18
|
+
resolution: number;
|
|
19
|
+
|
|
20
|
+
waterNormals: TextureNode;
|
|
21
|
+
alpha: UniformNode<number>;
|
|
22
|
+
size: UniformNode<number>;
|
|
23
|
+
sunColor: UniformNode<Color>;
|
|
24
|
+
sunDirection: UniformNode<Vector3>;
|
|
25
|
+
waterColor: UniformNode<Color>;
|
|
26
|
+
distortionScale: UniformNode<number>;
|
|
27
|
+
|
|
28
|
+
constructor(geometry: BufferGeometry, options: WaterMeshOptions);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { WaterMesh };
|
|
@@ -53,7 +53,7 @@ export class OutlinePass extends Pass {
|
|
|
53
53
|
tempPulseColor2: Color;
|
|
54
54
|
textureMatrix: Matrix4;
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
updateSelectionCache(): void;
|
|
57
57
|
changeVisibilityOfSelectedObjects(bVisible: boolean): void;
|
|
58
58
|
changeVisibilityOfNonSelectedObjects(bVisible: boolean): void;
|
|
59
59
|
updateTextureMatrix(): void;
|
|
@@ -3,15 +3,24 @@ import { Camera, ColorRepresentation, Scene, ShaderMaterial, WebGLRenderTarget }
|
|
|
3
3
|
import { FullScreenQuad, Pass } from "./Pass.js";
|
|
4
4
|
|
|
5
5
|
export class SSAARenderPass extends Pass {
|
|
6
|
-
constructor(scene: Scene, camera: Camera, clearColor?: ColorRepresentation, clearAlpha?: number);
|
|
7
6
|
scene: Scene;
|
|
8
7
|
camera: Camera;
|
|
8
|
+
|
|
9
9
|
sampleLevel: number;
|
|
10
10
|
unbiased: boolean;
|
|
11
|
+
|
|
12
|
+
stencilBuffer: boolean;
|
|
13
|
+
|
|
11
14
|
clearColor: ColorRepresentation;
|
|
12
15
|
clearAlpha: number;
|
|
16
|
+
|
|
13
17
|
copyUniforms: object;
|
|
18
|
+
|
|
14
19
|
copyMaterial: ShaderMaterial;
|
|
20
|
+
|
|
15
21
|
fsQuad: FullScreenQuad;
|
|
16
|
-
|
|
22
|
+
|
|
23
|
+
sampleRenderTarget?: WebGLRenderTarget | undefined;
|
|
24
|
+
|
|
25
|
+
constructor(scene: Scene, camera: Camera, clearColor?: ColorRepresentation, clearAlpha?: number);
|
|
17
26
|
}
|
three/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/three",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.168.0",
|
|
4
4
|
"description": "TypeScript definitions for three",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,12 +40,13 @@
|
|
|
40
40
|
},
|
|
41
41
|
"scripts": {},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@tweenjs/tween.js": "~23.1.
|
|
43
|
+
"@tweenjs/tween.js": "~23.1.3",
|
|
44
44
|
"@types/stats.js": "*",
|
|
45
45
|
"@types/webxr": "*",
|
|
46
|
+
"@webgpu/types": "*",
|
|
46
47
|
"fflate": "~0.8.2",
|
|
47
48
|
"meshoptimizer": "~0.18.1"
|
|
48
49
|
},
|
|
49
|
-
"typesPublisherContentHash": "
|
|
50
|
+
"typesPublisherContentHash": "246996b31ec2b1d960db45a72651460f27348c47e1babab88c4c9d74a3510060",
|
|
50
51
|
"typeScriptVersion": "4.8"
|
|
51
52
|
}
|
three/src/Three.WebGPU.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export * from "./core/Raycaster.js";
|
|
|
40
40
|
export * from "./core/RenderTarget.js";
|
|
41
41
|
export * from "./core/Uniform.js";
|
|
42
42
|
export * from "./core/UniformsGroup.js";
|
|
43
|
+
export * from "./extras/Controls.js";
|
|
43
44
|
export * from "./extras/core/Curve.js";
|
|
44
45
|
export * from "./extras/core/CurvePath.js";
|
|
45
46
|
export * from "./extras/core/Path.js";
|
|
@@ -94,6 +95,7 @@ export * from "./loaders/MaterialLoader.js";
|
|
|
94
95
|
export * from "./loaders/ObjectLoader.js";
|
|
95
96
|
export * from "./loaders/TextureLoader.js";
|
|
96
97
|
export * from "./materials/Materials.js";
|
|
98
|
+
export * from "./materials/nodes/NodeMaterials.js";
|
|
97
99
|
export * from "./math/Box2.js";
|
|
98
100
|
export * from "./math/Box3.js";
|
|
99
101
|
export * from "./math/Color.js";
|
|
@@ -184,7 +186,11 @@ export * from "./Three.Legacy.js";
|
|
|
184
186
|
export { createCanvasElement } from "./utils.js";
|
|
185
187
|
|
|
186
188
|
export { default as IESSpotLight } from "./lights/webgpu/IESSpotLight.js";
|
|
189
|
+
export { default as NodeLoader } from "./loaders/nodes/NodeLoader.js";
|
|
190
|
+
export { default as NodeMaterialLoader } from "./loaders/nodes/NodeMaterialLoader.js";
|
|
191
|
+
export { default as NodeObjectLoader } from "./loaders/nodes/NodeObjectLoader.js";
|
|
187
192
|
export * from "./nodes/Nodes.js";
|
|
193
|
+
export * from "./nodes/TSL.js";
|
|
188
194
|
export { default as PMREMGenerator } from "./renderers/common/extras/PMREMGenerator.js";
|
|
189
195
|
export { default as PostProcessing } from "./renderers/common/PostProcessing.js";
|
|
190
196
|
export { default as QuadMesh } from "./renderers/common/QuadMesh.js";
|
three/src/Three.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export * from "./core/Raycaster.js";
|
|
|
40
40
|
export * from "./core/RenderTarget.js";
|
|
41
41
|
export * from "./core/Uniform.js";
|
|
42
42
|
export * from "./core/UniformsGroup.js";
|
|
43
|
+
export * from "./extras/Controls.js";
|
|
43
44
|
export * from "./extras/core/Curve.js";
|
|
44
45
|
export * from "./extras/core/CurvePath.js";
|
|
45
46
|
export * from "./extras/core/Path.js";
|
|
@@ -53,7 +53,6 @@ export class EventDispatcher<TEventMap extends {} = {}> {
|
|
|
53
53
|
type: T,
|
|
54
54
|
listener: EventListener<TEventMap[T], T, this>,
|
|
55
55
|
): void;
|
|
56
|
-
addEventListener<T extends string>(type: T, listener: EventListener<{}, T, this>): void;
|
|
57
56
|
|
|
58
57
|
/**
|
|
59
58
|
* Checks if listener is added to an event type.
|
|
@@ -64,7 +63,6 @@ export class EventDispatcher<TEventMap extends {} = {}> {
|
|
|
64
63
|
type: T,
|
|
65
64
|
listener: EventListener<TEventMap[T], T, this>,
|
|
66
65
|
): boolean;
|
|
67
|
-
hasEventListener<T extends string>(type: T, listener: EventListener<{}, T, this>): boolean;
|
|
68
66
|
|
|
69
67
|
/**
|
|
70
68
|
* Removes a listener from an event type.
|
|
@@ -75,7 +73,6 @@ export class EventDispatcher<TEventMap extends {} = {}> {
|
|
|
75
73
|
type: T,
|
|
76
74
|
listener: EventListener<TEventMap[T], T, this>,
|
|
77
75
|
): void;
|
|
78
|
-
removeEventListener<T extends string>(type: T, listener: EventListener<{}, T, this>): void;
|
|
79
76
|
|
|
80
77
|
/**
|
|
81
78
|
* Fire an event type.
|
three/src/core/Object3D.d.ts
CHANGED
|
@@ -299,6 +299,7 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
|
|
|
299
299
|
onBeforeShadow(
|
|
300
300
|
renderer: WebGLRenderer,
|
|
301
301
|
scene: Scene,
|
|
302
|
+
camera: Camera,
|
|
302
303
|
shadowCamera: Camera,
|
|
303
304
|
geometry: BufferGeometry,
|
|
304
305
|
depthMaterial: Material,
|
|
@@ -317,6 +318,7 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
|
|
|
317
318
|
onAfterShadow(
|
|
318
319
|
renderer: WebGLRenderer,
|
|
319
320
|
scene: Scene,
|
|
321
|
+
camera: Camera,
|
|
320
322
|
shadowCamera: Camera,
|
|
321
323
|
geometry: BufferGeometry,
|
|
322
324
|
depthMaterial: Material,
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Camera } from "../cameras/Camera.js";
|
|
2
|
+
import { EventDispatcher } from "../core/EventDispatcher.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Abstract base class for controls.
|
|
6
|
+
*/
|
|
7
|
+
declare abstract class Controls<TEventMap extends {}> extends EventDispatcher<TEventMap> {
|
|
8
|
+
/**
|
|
9
|
+
* The 3D object that is managed by the controls.
|
|
10
|
+
*/
|
|
11
|
+
object: Camera;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The HTML element used for event listeners. If not provided via the constructor, {@link .connect} must be called
|
|
15
|
+
* after `domElement` has been set.
|
|
16
|
+
*/
|
|
17
|
+
domElement: HTMLElement | null;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* When set to `false`, the controls will not respond to user input. Default is `true`.
|
|
21
|
+
*/
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Creates a new instance of {@link Controls}.
|
|
26
|
+
* @param object The object the controls should manage (usually the camera).
|
|
27
|
+
* @param domElement The HTML element used for event listeners. (optional)
|
|
28
|
+
*/
|
|
29
|
+
constructor(object: Camera, domElement: HTMLElement | null);
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Connects the controls to the DOM. This method has so called "side effects" since it adds the module's event
|
|
33
|
+
* listeners to the DOM.
|
|
34
|
+
*/
|
|
35
|
+
connect(): void;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Disconnects the controls from the DOM.
|
|
39
|
+
*/
|
|
40
|
+
disconnect(): void;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Call this method if you no longer want use to the controls. It frees all internal resources and removes all event
|
|
44
|
+
* listeners.
|
|
45
|
+
*/
|
|
46
|
+
dispose(): void;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Controls should implement this method if they have to update their internal state per simulation step.
|
|
50
|
+
*/
|
|
51
|
+
update(delta: number): void;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { Controls };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { LoadingManager } from "../../loaders/LoadingManager.js";
|
|
1
|
+
import { Node } from "../../nodes/Nodes.js";
|
|
3
2
|
import { Texture } from "../../textures/Texture.js";
|
|
4
|
-
import {
|
|
3
|
+
import { Loader } from "../Loader.js";
|
|
4
|
+
import { LoadingManager } from "../LoadingManager.js";
|
|
5
5
|
|
|
6
6
|
export interface NodeLoaderResult {
|
|
7
7
|
[hash: string]: Node;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ObjectLoader } from "../../loaders/ObjectLoader.js";
|
|
2
1
|
import { Material } from "../../materials/Material.js";
|
|
3
2
|
import { Texture } from "../../textures/Texture.js";
|
|
3
|
+
import { ObjectLoader } from "../ObjectLoader.js";
|
|
4
4
|
import { NodeLoaderResult } from "./NodeLoader.js";
|
|
5
5
|
|
|
6
6
|
export default class NodeObjectLoader extends ObjectLoader {
|
|
@@ -556,10 +556,26 @@ export class Material extends EventDispatcher<{ dispose: {} }> {
|
|
|
556
556
|
*/
|
|
557
557
|
set alphaTest(value: number);
|
|
558
558
|
|
|
559
|
+
/**
|
|
560
|
+
* An optional callback that is executed immediately before the material is used to render a 3D object.
|
|
561
|
+
* Unlike properties, the callback is not supported by {@link .clone()}, {@link .copy()} and {@link .toJSON()}.
|
|
562
|
+
* This callback is only supported in `WebGLRenderer` (not `WebGPURenderer`).
|
|
563
|
+
*/
|
|
564
|
+
onBeforeRender(
|
|
565
|
+
renderer: WebGLRenderer,
|
|
566
|
+
scene: Scene,
|
|
567
|
+
camera: Camera,
|
|
568
|
+
geometry: BufferGeometry,
|
|
569
|
+
object: Object3D,
|
|
570
|
+
group: Group,
|
|
571
|
+
): void;
|
|
572
|
+
|
|
559
573
|
/**
|
|
560
574
|
* An optional callback that is executed immediately before the shader program is compiled.
|
|
561
|
-
* This function is called with the
|
|
575
|
+
* This function is called with the shader source code as a parameter.
|
|
562
576
|
* Useful for the modification of built-in materials.
|
|
577
|
+
* Unlike properties, the callback is not supported by {@link .clone()}, {@link .copy()} and {@link .toJSON()}.
|
|
578
|
+
* This callback is only supported in `WebGLRenderer` (not `WebGPURenderer`).
|
|
563
579
|
* @param parameters WebGL program parameters
|
|
564
580
|
* @param renderer WebGLRenderer context that is initializing the material
|
|
565
581
|
*/
|
|
@@ -612,16 +628,4 @@ export class Material extends EventDispatcher<{ dispose: {} }> {
|
|
|
612
628
|
* @deprecated onBuild() has been removed.
|
|
613
629
|
*/
|
|
614
630
|
onBuild(object: Object3D, parameters: WebGLProgramParametersWithUniforms, renderer: WebGLRenderer): void;
|
|
615
|
-
|
|
616
|
-
/**
|
|
617
|
-
* @deprecated onBeforeRender() has been removed.
|
|
618
|
-
*/
|
|
619
|
-
onBeforeRender(
|
|
620
|
-
renderer: WebGLRenderer,
|
|
621
|
-
scene: Scene,
|
|
622
|
-
camera: Camera,
|
|
623
|
-
geometry: BufferGeometry,
|
|
624
|
-
object: Object3D,
|
|
625
|
-
group: Group,
|
|
626
|
-
): void;
|
|
627
631
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Color } from "../../math/Color.js";
|
|
2
|
+
import Node from "../../nodes/core/Node.js";
|
|
3
|
+
import { Texture } from "../../textures/Texture.js";
|
|
4
|
+
import { PointsMaterialParameters } from "../PointsMaterial.js";
|
|
5
|
+
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
6
|
+
|
|
7
|
+
export interface InstancedPointsNodeMaterialParameters extends NodeMaterialParameters, PointsMaterialParameters {
|
|
8
|
+
useAlphaToCoverage?: boolean | undefined;
|
|
9
|
+
useColor?: boolean | undefined;
|
|
10
|
+
pointWidth?: number | undefined;
|
|
11
|
+
pointColorNode?: Node | null | undefined;
|
|
12
|
+
pointWidthNode?: Node | null | undefined;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare class InstancedPointsNodeMaterial extends NodeMaterial {
|
|
16
|
+
useAlphaToCoverage: boolean;
|
|
17
|
+
useColor: boolean | undefined;
|
|
18
|
+
pointWidth: number;
|
|
19
|
+
pointColorNode: Node | null;
|
|
20
|
+
pointWidthNode: Node | null;
|
|
21
|
+
|
|
22
|
+
// Properties from LineDashedMaterial
|
|
23
|
+
readonly isPointsMaterial: true;
|
|
24
|
+
color: Color;
|
|
25
|
+
map: Texture | null;
|
|
26
|
+
alphaMap: Texture | null;
|
|
27
|
+
size: number;
|
|
28
|
+
sizeAttenuation: boolean;
|
|
29
|
+
|
|
30
|
+
constructor(params?: InstancedPointsNodeMaterialParameters);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default InstancedPointsNodeMaterial;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LineDashedMaterialParameters } from "../../materials/LineDashedMaterial.js";
|
|
2
1
|
import { Color } from "../../math/Color.js";
|
|
2
|
+
import Node from "../../nodes/core/Node.js";
|
|
3
3
|
import { Texture } from "../../textures/Texture.js";
|
|
4
|
-
import
|
|
4
|
+
import { LineDashedMaterialParameters } from "../LineDashedMaterial.js";
|
|
5
5
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
6
6
|
|
|
7
7
|
export interface Line2NodeMaterialParameters extends NodeMaterialParameters, LineDashedMaterialParameters {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LineBasicMaterialParameters } from "../../materials/LineBasicMaterial.js";
|
|
2
1
|
import { Color } from "../../math/Color.js";
|
|
3
2
|
import { Texture } from "../../textures/Texture.js";
|
|
3
|
+
import { LineBasicMaterialParameters } from "../LineBasicMaterial.js";
|
|
4
4
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
5
5
|
|
|
6
6
|
export interface LineBasicNodeMaterialParameters extends NodeMaterialParameters, LineBasicMaterialParameters {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import Node from "../../nodes/core/Node.js";
|
|
2
|
+
import { LineDashedMaterialParameters } from "../LineDashedMaterial.js";
|
|
3
|
+
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
4
|
+
|
|
5
|
+
export interface LineDashedNodeMaterialParameters extends NodeMaterialParameters, LineDashedMaterialParameters {
|
|
6
|
+
offsetNode?: Node | null | undefined;
|
|
7
|
+
dashScaleNode?: Node | null | undefined;
|
|
8
|
+
dashSizeNode?: Node | null | undefined;
|
|
9
|
+
gapSizeNode?: Node | null | undefined;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare class LineDashedNodeMaterial extends NodeMaterial {
|
|
13
|
+
readonly isLineDashedNodeMaterial: true;
|
|
14
|
+
|
|
15
|
+
offsetNode: Node | null;
|
|
16
|
+
dashScaleNode: Node | null;
|
|
17
|
+
dashSizeNode: Node | null;
|
|
18
|
+
gapSizeNode: Node | null;
|
|
19
|
+
|
|
20
|
+
// Properties from LineDashedMaterial
|
|
21
|
+
readonly isLineDashedMaterial: true;
|
|
22
|
+
scale: number;
|
|
23
|
+
dashSize: number;
|
|
24
|
+
gapSize: number;
|
|
25
|
+
|
|
26
|
+
constructor(parameters?: LineDashedMaterialParameters);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default LineDashedNodeMaterial;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Combine } from "../../constants.js";
|
|
2
|
-
import { MeshBasicMaterialParameters } from "../../materials/MeshBasicMaterial.js";
|
|
3
2
|
import { Color } from "../../math/Color.js";
|
|
4
3
|
import { Euler } from "../../math/Euler.js";
|
|
5
4
|
import { Texture } from "../../textures/Texture.js";
|
|
5
|
+
import { MeshBasicMaterialParameters } from "../MeshBasicMaterial.js";
|
|
6
6
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
7
7
|
|
|
8
8
|
export interface MeshBasicNodeMaterialParameters extends NodeMaterialParameters, MeshBasicMaterialParameters {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Combine, NormalMapTypes } from "../../constants.js";
|
|
2
|
+
import { Color } from "../../math/Color.js";
|
|
3
|
+
import { Euler } from "../../math/Euler.js";
|
|
4
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
5
|
+
import { Texture } from "../../textures/Texture.js";
|
|
6
|
+
import { MeshLambertMaterialParameters } from "../MeshLambertMaterial.js";
|
|
7
|
+
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
8
|
+
|
|
9
|
+
export interface MeshLambertNodeMaterialParameters extends NodeMaterialParameters, MeshLambertMaterialParameters {}
|
|
10
|
+
|
|
11
|
+
declare class MeshLambertNodeMaterial extends NodeMaterial {
|
|
12
|
+
readonly isMeshLambertNodeMaterial: true;
|
|
13
|
+
|
|
14
|
+
// Properties from MeshLambertMaterial
|
|
15
|
+
readonly isMeshLambertMaterial: true;
|
|
16
|
+
color: Color;
|
|
17
|
+
bumpMap: Texture | null;
|
|
18
|
+
bumpScale: number;
|
|
19
|
+
displacementMap: Texture | null;
|
|
20
|
+
displacementScale: number;
|
|
21
|
+
displacementBias: number;
|
|
22
|
+
emissive: Color;
|
|
23
|
+
emissiveIntensity: number;
|
|
24
|
+
emissiveMap: Texture | null;
|
|
25
|
+
flatShading: boolean;
|
|
26
|
+
map: Texture | null;
|
|
27
|
+
lightMap: Texture | null;
|
|
28
|
+
lightMapIntensity: number;
|
|
29
|
+
normalMap: Texture | null;
|
|
30
|
+
normalMapType: NormalMapTypes;
|
|
31
|
+
normalScale: Vector2;
|
|
32
|
+
aoMap: Texture | null;
|
|
33
|
+
aoMapIntensity: number;
|
|
34
|
+
specularMap: Texture | null;
|
|
35
|
+
alphaMap: Texture | null;
|
|
36
|
+
envMap: Texture | null;
|
|
37
|
+
envMapRotation: Euler;
|
|
38
|
+
combine: Combine;
|
|
39
|
+
reflectivity: number;
|
|
40
|
+
refractionRatio: number;
|
|
41
|
+
wireframe: boolean;
|
|
42
|
+
wireframeLinewidth: number;
|
|
43
|
+
wireframeLinecap: string;
|
|
44
|
+
wireframeLinejoin: string;
|
|
45
|
+
|
|
46
|
+
constructor(parameters?: MeshLambertNodeMaterialParameters);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export default MeshLambertNodeMaterial;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { NormalMapTypes } from "../../constants.js";
|
|
2
|
-
import { MeshMatcapMaterialParameters } from "../../materials/MeshMatcapMaterial.js";
|
|
3
2
|
import { Color } from "../../math/Color.js";
|
|
4
3
|
import { Vector2 } from "../../math/Vector2.js";
|
|
5
4
|
import { Texture } from "../../textures/Texture.js";
|
|
5
|
+
import { MeshMatcapMaterialParameters } from "../MeshMatcapMaterial.js";
|
|
6
6
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
7
7
|
|
|
8
8
|
export interface MeshMatcapNodeMaterialParameters extends NodeMaterialParameters, MeshMatcapMaterialParameters {
|
|
@@ -28,5 +28,5 @@ export default class MeshMatcapNodeMaterial extends NodeMaterial {
|
|
|
28
28
|
flatShading: boolean;
|
|
29
29
|
fog: boolean;
|
|
30
30
|
|
|
31
|
-
constructor(
|
|
31
|
+
constructor(parameters?: MeshMatcapNodeMaterialParameters);
|
|
32
32
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NormalMapTypes } from "../../constants.js";
|
|
2
|
-
import { MeshNormalMaterialParameters } from "../../materials/MeshNormalMaterial.js";
|
|
3
2
|
import { Vector2 } from "../../math/Vector2.js";
|
|
4
3
|
import { Texture } from "../../textures/Texture.js";
|
|
4
|
+
import { MeshNormalMaterialParameters } from "../MeshNormalMaterial.js";
|
|
5
5
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
6
6
|
|
|
7
7
|
export interface MeshBasicNodeMaterialParameters extends NodeMaterialParameters, MeshNormalMaterialParameters {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Combine, NormalMapTypes } from "../../constants.js";
|
|
2
|
-
import { MeshPhongMaterialParameters } from "../../materials/MeshPhongMaterial.js";
|
|
3
2
|
import { Color } from "../../math/Color.js";
|
|
4
3
|
import { Euler } from "../../math/Euler.js";
|
|
5
4
|
import { Vector2 } from "../../math/Vector2.js";
|
|
5
|
+
import Node from "../../nodes/core/Node.js";
|
|
6
6
|
import { Texture } from "../../textures/Texture.js";
|
|
7
|
-
import
|
|
7
|
+
import { MeshPhongMaterialParameters } from "../MeshPhongMaterial.js";
|
|
8
8
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
9
9
|
|
|
10
10
|
export interface MeshPhongNodeMaterialParameters extends NodeMaterialParameters, MeshPhongMaterialParameters {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { MeshPhysicalMaterialParameters } from "../../materials/MeshPhysicalMaterial.js";
|
|
2
1
|
import { Color } from "../../math/Color.js";
|
|
3
2
|
import { Vector2 } from "../../math/Vector2.js";
|
|
3
|
+
import Node from "../../nodes/core/Node.js";
|
|
4
|
+
import { ShaderNodeObject } from "../../nodes/tsl/TSLCore.js";
|
|
4
5
|
import { Texture } from "../../textures/Texture.js";
|
|
5
|
-
import
|
|
6
|
+
import { MeshPhysicalMaterialParameters } from "../MeshPhysicalMaterial.js";
|
|
6
7
|
import MeshStandardNodeMaterial, { MeshStandardNodeMaterialParameters } from "./MeshStandardNodeMaterial.js";
|
|
7
8
|
|
|
8
9
|
export interface MeshPhysicalNodeMaterialParameters
|
|
@@ -87,4 +88,6 @@ export default class MeshPhysicalNodeMaterial extends MeshStandardNodeMaterial {
|
|
|
87
88
|
get useAnisotropy(): boolean;
|
|
88
89
|
get useTransmission(): boolean;
|
|
89
90
|
get useDispersion(): boolean;
|
|
91
|
+
|
|
92
|
+
setupClearcoatNormal(): ShaderNodeObject<Node>;
|
|
90
93
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ConstNode from "
|
|
2
|
-
import Node from "
|
|
1
|
+
import ConstNode from "../../nodes/core/ConstNode.js";
|
|
2
|
+
import Node from "../../nodes/core/Node.js";
|
|
3
3
|
import MeshPhysicalNodeMaterial, { MeshPhysicalNodeMaterialParameters } from "./MeshPhysicalNodeMaterial.js";
|
|
4
4
|
|
|
5
5
|
export default class MeshSSSNodeMaterial extends MeshPhysicalNodeMaterial {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { NormalMapTypes } from "../../constants.js";
|
|
2
|
-
import { MeshStandardMaterialParameters } from "../../materials/MeshStandardMaterial.js";
|
|
3
2
|
import { Color } from "../../math/Color.js";
|
|
4
3
|
import { Euler } from "../../math/Euler.js";
|
|
5
4
|
import { Vector2 } from "../../math/Vector2.js";
|
|
5
|
+
import Node from "../../nodes/core/Node.js";
|
|
6
6
|
import { Texture } from "../../textures/Texture.js";
|
|
7
|
-
import
|
|
7
|
+
import { MeshStandardMaterialParameters } from "../MeshStandardMaterial.js";
|
|
8
8
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
9
9
|
|
|
10
10
|
export interface MeshStandardNodeMaterialParameters extends NodeMaterialParameters, MeshStandardMaterialParameters {
|
|
@@ -52,5 +52,5 @@ export default class MeshStandardNodeMaterial extends NodeMaterial {
|
|
|
52
52
|
flatShading: boolean;
|
|
53
53
|
fog: boolean;
|
|
54
54
|
|
|
55
|
-
constructor(
|
|
55
|
+
constructor(parameters?: MeshStandardNodeMaterialParameters);
|
|
56
56
|
}
|