diff --git a/three.js b/three.js index 751d9ec13..d067dfd7f 160000 --- a/three.js +++ b/three.js @@ -1 +1 @@ -Subproject commit 751d9ec135a25c2236c210e45e8d866024043b77 +Subproject commit d067dfd7f5861fdb783f6fffdcd92a18a15df46f diff --git a/types/three/examples/jsm/Addons.d.ts b/types/three/examples/jsm/Addons.d.ts index 45fc66bf8..d53c15d44 100644 --- a/types/three/examples/jsm/Addons.d.ts +++ b/types/three/examples/jsm/Addons.d.ts @@ -127,7 +127,9 @@ export * from "./loaders/VRMLLoader.js"; export * from "./loaders/VTKLoader.js"; export * from "./loaders/XYZLoader.js"; +export * from "./materials/LDrawConditionalLineMaterial.js"; export * from "./materials/MeshGouraudMaterial.js"; +export * from "./materials/MeshPostProcessingMaterial.js"; export * from "./math/Capsule.js"; export * from "./math/ColorConverter.js"; diff --git a/types/three/examples/jsm/loaders/LDrawLoader.d.ts b/types/three/examples/jsm/loaders/LDrawLoader.d.ts index 8c30b3966..4fee24299 100644 --- a/types/three/examples/jsm/loaders/LDrawLoader.d.ts +++ b/types/three/examples/jsm/loaders/LDrawLoader.d.ts @@ -1,13 +1,23 @@ import { Group, Loader, LoadingManager, Material } from "three"; +import { LDrawConditionalLineMaterial } from "../materials/LDrawConditionalLineMaterial.js"; +import { LDrawConditionalLineMaterial as LDrawConditionalLineNodeMaterial } from "../materials/LDrawConditionalLineNodeMaterial.js"; export class LDrawLoader extends Loader { materials: Material[]; materialsLibrary: Record; + fileMap: Record; + smoothNormals: boolean; + ConditionalLineMaterial: typeof LDrawConditionalLineMaterial | typeof LDrawConditionalLineNodeMaterial | null; + constructor(manager?: LoadingManager); + setConditionalLineMaterial( + type: typeof LDrawConditionalLineMaterial | typeof LDrawConditionalLineNodeMaterial, + ): this; + preloadMaterials(url: string): Promise; setFileMap(fileMap: Record): void; setMaterials(materials: Material[]): void; diff --git a/types/three/examples/jsm/materials/LDrawConditionalLineMaterial.d.ts b/types/three/examples/jsm/materials/LDrawConditionalLineMaterial.d.ts new file mode 100644 index 000000000..43ed9411a --- /dev/null +++ b/types/three/examples/jsm/materials/LDrawConditionalLineMaterial.d.ts @@ -0,0 +1,9 @@ +import { ShaderMaterial, ShaderMaterialParameters } from "three"; + +declare class LDrawConditionalLineMaterial extends ShaderMaterial { + readonly isLDrawConditionalLineMaterial: true; + + constructor(parameters?: ShaderMaterialParameters); +} + +export { LDrawConditionalLineMaterial }; diff --git a/types/three/examples/jsm/materials/LDrawConditionalLineNodeMaterial.d.ts b/types/three/examples/jsm/materials/LDrawConditionalLineNodeMaterial.d.ts new file mode 100644 index 000000000..bd49be43e --- /dev/null +++ b/types/three/examples/jsm/materials/LDrawConditionalLineNodeMaterial.d.ts @@ -0,0 +1,9 @@ +import { NodeMaterial, NodeMaterialParameters } from "three/tsl"; + +declare class LDrawConditionalLineMaterial extends NodeMaterial { + readonly isLDrawConditionalLineMaterial: true; + + constructor(parameters?: NodeMaterialParameters); +} + +export { LDrawConditionalLineMaterial }; diff --git a/types/three/src/materials/nodes/MeshNormalNodeMaterial.d.ts b/types/three/src/materials/nodes/MeshNormalNodeMaterial.d.ts index 761998bac..6c398b4c3 100644 --- a/types/three/src/materials/nodes/MeshNormalNodeMaterial.d.ts +++ b/types/three/src/materials/nodes/MeshNormalNodeMaterial.d.ts @@ -4,7 +4,7 @@ import { Texture } from "../../textures/Texture.js"; import { MeshNormalMaterialParameters } from "../MeshNormalMaterial.js"; import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js"; -export interface MeshBasicNodeMaterialParameters extends NodeMaterialParameters, MeshNormalMaterialParameters { +export interface MeshNormalNodeMaterialParameters extends NodeMaterialParameters, MeshNormalMaterialParameters { } export default class MeshNormalNodeMaterial extends NodeMaterial { @@ -24,5 +24,5 @@ export default class MeshNormalNodeMaterial extends NodeMaterial { wireframeLinewidth: number; flatShading: boolean; - constructor(parameters?: MeshBasicNodeMaterialParameters); + constructor(parameters?: MeshNormalNodeMaterialParameters); } diff --git a/types/three/src/materials/nodes/NodeMaterials.d.ts b/types/three/src/materials/nodes/NodeMaterials.d.ts index 395273cd9..00a976e39 100644 --- a/types/three/src/materials/nodes/NodeMaterials.d.ts +++ b/types/three/src/materials/nodes/NodeMaterials.d.ts @@ -1,18 +1,21 @@ -export { default as InstancedPointsNodeMaterial } from "./InstancedPointsNodeMaterial.js"; -export { default as Line2NodeMaterial } from "./Line2NodeMaterial.js"; -export { default as LineBasicNodeMaterial } from "./LineBasicNodeMaterial.js"; -export { default as LineDashedNodeMaterial } from "./LineDashedNodeMaterial.js"; -export { default as MeshBasicNodeMaterial } from "./MeshBasicNodeMaterial.js"; -export { default as MeshLambertNodeMaterial } from "./MeshLambertNodeMaterial.js"; -export { default as MeshMatcapNodeMaterial } from "./MeshMatcapNodeMaterial.js"; -export { default as MeshNormalNodeMaterial } from "./MeshNormalNodeMaterial.js"; -export { default as MeshPhongNodeMaterial } from "./MeshPhongNodeMaterial.js"; -export { default as MeshPhysicalNodeMaterial } from "./MeshPhysicalNodeMaterial.js"; +export { + default as InstancedPointsNodeMaterial, + InstancedPointsNodeMaterialParameters, +} from "./InstancedPointsNodeMaterial.js"; +export { default as Line2NodeMaterial, Line2NodeMaterialParameters } from "./Line2NodeMaterial.js"; +export { default as LineBasicNodeMaterial, LineBasicNodeMaterialParameters } from "./LineBasicNodeMaterial.js"; +export { default as LineDashedNodeMaterial, LineDashedNodeMaterialParameters } from "./LineDashedNodeMaterial.js"; +export { default as MeshBasicNodeMaterial, MeshBasicNodeMaterialParameters } from "./MeshBasicNodeMaterial.js"; +export { default as MeshLambertNodeMaterial, MeshLambertNodeMaterialParameters } from "./MeshLambertNodeMaterial.js"; +export { default as MeshMatcapNodeMaterial, MeshMatcapNodeMaterialParameters } from "./MeshMatcapNodeMaterial.js"; +export { default as MeshNormalNodeMaterial, MeshNormalNodeMaterialParameters } from "./MeshNormalNodeMaterial.js"; +export { default as MeshPhongNodeMaterial, MeshPhongNodeMaterialParameters } from "./MeshPhongNodeMaterial.js"; +export { default as MeshPhysicalNodeMaterial, MeshPhysicalNodeMaterialParameters } from "./MeshPhysicalNodeMaterial.js"; export { default as MeshSSSNodeMaterial } from "./MeshSSSNodeMaterial.js"; -export { default as MeshStandardNodeMaterial } from "./MeshStandardNodeMaterial.js"; -export { default as MeshToonNodeMaterial } from "./MeshToonNodeMaterial.js"; -export { default as NodeMaterial } from "./NodeMaterial.js"; -export { default as PointsNodeMaterial } from "./PointsNodeMaterial.js"; -export { default as ShadowNodeMaterial } from "./ShadowNodeMaterial.js"; -export { default as SpriteNodeMaterial } from "./SpriteNodeMaterial.js"; +export { default as MeshStandardNodeMaterial, MeshStandardNodeMaterialParameters } from "./MeshStandardNodeMaterial.js"; +export { default as MeshToonNodeMaterial, MeshToonNodeMaterialParameters } from "./MeshToonNodeMaterial.js"; +export { default as NodeMaterial, NodeMaterialParameters } from "./NodeMaterial.js"; +export { default as PointsNodeMaterial, PointsNodeMaterialParameters } from "./PointsNodeMaterial.js"; +export { default as ShadowNodeMaterial, ShadowNodeMaterialParameters } from "./ShadowNodeMaterial.js"; +export { default as SpriteNodeMaterial, SpriteNodeMaterialParameters } from "./SpriteNodeMaterial.js"; export { default as VolumeNodeMaterial } from "./VolumeNodeMaterial.js";