@types/three 0.180.0 → 0.182.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 +1 -1
- three/examples/jsm/controls/ArcballControls.d.ts +1 -1
- three/examples/jsm/controls/DragControls.d.ts +1 -1
- three/examples/jsm/controls/FirstPersonControls.d.ts +1 -1
- three/examples/jsm/controls/FlyControls.d.ts +1 -1
- three/examples/jsm/controls/OrbitControls.d.ts +1 -1
- three/examples/jsm/controls/PointerLockControls.d.ts +1 -1
- three/examples/jsm/controls/TrackballControls.d.ts +1 -1
- three/examples/jsm/controls/TransformControls.d.ts +1 -1
- three/examples/jsm/geometries/TextGeometry.d.ts +2 -0
- three/examples/jsm/gpgpu/BitonicSort.d.ts +21 -0
- three/examples/jsm/inspector/Inspector.d.ts +10 -0
- three/examples/jsm/inspector/RendererInspector.d.ts +4 -0
- three/examples/jsm/inspector/tabs/Parameters.d.ts +95 -0
- three/examples/jsm/inspector/ui/Tab.d.ts +3 -0
- three/examples/jsm/inspector/ui/Values.d.ts +80 -0
- three/examples/jsm/interactive/SelectionBox.d.ts +9 -9
- three/examples/jsm/lighting/TiledLighting.d.ts +1 -2
- three/examples/jsm/loaders/FontLoader.d.ts +1 -1
- three/examples/jsm/loaders/KTX2Loader.d.ts +3 -0
- three/examples/jsm/loaders/UltraHDRLoader.d.ts +7 -0
- three/examples/jsm/loaders/VOXLoader.d.ts +22 -5
- three/examples/jsm/math/Octree.d.ts +36 -14
- three/examples/jsm/objects/SkyMesh.d.ts +11 -7
- three/examples/jsm/objects/WaterMesh.d.ts +2 -2
- three/examples/jsm/physics/AmmoPhysics.d.ts +1 -1
- three/examples/jsm/postprocessing/OutputPass.d.ts +10 -6
- three/examples/jsm/postprocessing/RenderPass.d.ts +15 -10
- three/examples/jsm/renderers/CSS2DRenderer.d.ts +15 -10
- three/examples/jsm/transpiler/AST.d.ts +17 -0
- three/examples/jsm/transpiler/TSLEncoder.d.ts +2 -0
- three/examples/jsm/tsl/display/AfterImageNode.d.ts +4 -5
- three/examples/jsm/tsl/display/AnaglyphPassNode.d.ts +1 -2
- three/examples/jsm/tsl/display/AnamorphicNode.d.ts +1 -2
- three/examples/jsm/tsl/display/BleachBypass.d.ts +1 -2
- three/examples/jsm/tsl/display/BloomNode.d.ts +2 -3
- three/examples/jsm/tsl/display/ChromaticAberrationNode.d.ts +1 -2
- three/examples/jsm/tsl/display/DenoiseNode.d.ts +1 -2
- three/examples/jsm/tsl/display/DepthOfFieldNode.d.ts +1 -2
- three/examples/jsm/tsl/display/DotScreenNode.d.ts +1 -2
- three/examples/jsm/tsl/display/FXAANode.d.ts +1 -2
- three/examples/jsm/tsl/display/FilmNode.d.ts +1 -2
- three/examples/jsm/tsl/display/GTAONode.d.ts +11 -10
- three/examples/jsm/tsl/display/GaussianBlurNode.d.ts +2 -3
- three/examples/jsm/tsl/display/LensflareNode.d.ts +6 -7
- three/examples/jsm/tsl/display/Lut3DNode.d.ts +2 -3
- three/examples/jsm/tsl/display/MotionBlur.d.ts +1 -2
- three/examples/jsm/tsl/display/OutlineNode.d.ts +6 -7
- three/examples/jsm/tsl/display/ParallaxBarrierPassNode.d.ts +1 -2
- three/examples/jsm/tsl/display/PixelationPassNode.d.ts +1 -2
- three/examples/jsm/tsl/display/RGBShiftNode.d.ts +1 -2
- three/examples/jsm/tsl/display/SMAANode.d.ts +1 -2
- three/examples/jsm/tsl/display/SSAAPassNode.d.ts +1 -2
- three/examples/jsm/tsl/display/SSGINode.d.ts +30 -0
- three/examples/jsm/tsl/display/SSRNode.d.ts +12 -13
- three/examples/jsm/tsl/display/SSSNode.d.ts +20 -0
- three/examples/jsm/tsl/display/Sepia.d.ts +1 -2
- three/examples/jsm/tsl/display/SobelOperatorNode.d.ts +1 -2
- three/examples/jsm/tsl/display/StereoPassNode.d.ts +1 -2
- three/examples/jsm/tsl/display/TRAANode.d.ts +6 -2
- three/examples/jsm/tsl/display/TransitionNode.d.ts +1 -2
- three/examples/jsm/tsl/display/boxBlur.d.ts +1 -2
- three/examples/jsm/tsl/display/hashBlur.d.ts +1 -2
- three/examples/jsm/tsl/display/radialBlur.d.ts +12 -0
- three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +3 -4
- three/examples/jsm/tsl/math/Bayer.d.ts +1 -2
- three/examples/jsm/tsl/utils/Raymarching.d.ts +2 -3
- three/package.json +3 -3
- three/src/Three.Core.d.ts +1 -1
- three/src/Three.TSL.d.ts +21 -3
- three/src/Three.WebGPU.Nodes.d.ts +2 -0
- three/src/Three.WebGPU.d.ts +2 -0
- three/src/animation/AnimationMixer.d.ts +45 -3
- three/src/animation/AnimationUtils.d.ts +3 -8
- three/src/constants.d.ts +14 -0
- three/src/core/BufferGeometry.d.ts +3 -1
- three/src/extras/Controls.d.ts +3 -3
- three/src/lights/DirectionalLight.d.ts +10 -3
- three/src/lights/HemisphereLight.d.ts +8 -1
- three/src/lights/Light.d.ts +8 -12
- three/src/lights/LightProbe.d.ts +7 -3
- three/src/lights/PointLight.d.ts +12 -1
- three/src/lights/PointLightShadow.d.ts +1 -8
- three/src/lights/SpotLight.d.ts +17 -2
- three/src/loaders/ObjectLoader.d.ts +3 -3
- three/src/loaders/TextureLoader.d.ts +3 -3
- three/src/materials/Material.d.ts +3 -2
- three/src/materials/MeshLambertMaterial.d.ts +1 -1
- three/src/materials/MeshMatcapMaterial.d.ts +14 -0
- three/src/materials/MeshPhongMaterial.d.ts +1 -1
- three/src/materials/MeshPhysicalMaterial.d.ts +1 -1
- three/src/materials/MeshStandardMaterial.d.ts +7 -7
- three/src/materials/PointsMaterial.d.ts +1 -1
- three/src/materials/ShaderMaterial.d.ts +26 -11
- three/src/materials/nodes/MeshSSSNodeMaterial.d.ts +1 -1
- three/src/materials/nodes/NodeMaterial.d.ts +9 -3
- three/src/materials/nodes/VolumeNodeMaterial.d.ts +1 -2
- three/src/math/Vector3.d.ts +2 -2
- three/src/nodes/Nodes.d.ts +1 -1
- three/src/nodes/TSL.d.ts +5 -2
- three/src/nodes/accessors/AccessorsUtils.d.ts +4 -5
- three/src/nodes/accessors/Arrays.d.ts +2 -3
- three/src/nodes/accessors/BatchNode.d.ts +1 -2
- three/src/nodes/accessors/Bitangent.d.ts +4 -5
- three/src/nodes/accessors/BufferAttributeNode.d.ts +17 -17
- three/src/nodes/accessors/BufferNode.d.ts +2 -2
- three/src/nodes/accessors/BuiltinNode.d.ts +1 -2
- three/src/nodes/accessors/Camera.d.ts +10 -11
- three/src/nodes/accessors/ClippingNode.d.ts +3 -6
- three/src/nodes/accessors/CubeTextureNode.d.ts +8 -9
- three/src/nodes/accessors/InstanceNode.d.ts +8 -8
- three/src/nodes/accessors/InstancedMeshNode.d.ts +1 -2
- three/src/nodes/accessors/Lights.d.ts +6 -7
- three/src/nodes/accessors/MaterialNode.d.ts +38 -39
- three/src/nodes/accessors/MaterialProperties.d.ts +3 -4
- three/src/nodes/accessors/MaterialReferenceNode.d.ts +2 -2
- three/src/nodes/accessors/ModelNode.d.ts +12 -13
- three/src/nodes/accessors/ModelViewProjectionNode.d.ts +1 -2
- three/src/nodes/accessors/MorphNode.d.ts +1 -2
- three/src/nodes/accessors/Normal.d.ts +13 -14
- three/src/nodes/accessors/Object3DNode.d.ts +6 -7
- three/src/nodes/accessors/PointUVNode.d.ts +1 -2
- three/src/nodes/accessors/Position.d.ts +7 -8
- three/src/nodes/accessors/ReferenceBaseNode.d.ts +2 -3
- three/src/nodes/accessors/ReferenceNode.d.ts +2 -3
- three/src/nodes/accessors/ReflectVector.d.ts +4 -5
- three/src/nodes/accessors/RendererReferenceNode.d.ts +1 -2
- three/src/nodes/accessors/SceneNode.d.ts +3 -4
- three/src/nodes/accessors/SkinningNode.d.ts +5 -6
- three/src/nodes/accessors/StorageBufferNode.d.ts +5 -5
- three/src/nodes/accessors/StorageTextureNode.d.ts +7 -4
- three/src/nodes/accessors/Tangent.d.ts +4 -6
- three/src/nodes/accessors/TangentUtils.d.ts +2 -3
- three/src/nodes/accessors/Texture3DNode.d.ts +15 -4
- three/src/nodes/accessors/TextureBicubic.d.ts +2 -3
- three/src/nodes/accessors/TextureNode.d.ts +29 -24
- three/src/nodes/accessors/TextureSizeNode.d.ts +1 -2
- three/src/nodes/accessors/UV.d.ts +1 -2
- three/src/nodes/accessors/UniformArrayNode.d.ts +2 -3
- three/src/nodes/accessors/UserDataNode.d.ts +1 -2
- three/src/nodes/accessors/VelocityNode.d.ts +1 -2
- three/src/nodes/accessors/VertexColorNode.d.ts +1 -2
- three/src/nodes/code/CodeNode.d.ts +4 -5
- three/src/nodes/code/ExpressionNode.d.ts +1 -2
- three/src/nodes/code/FunctionCallNode.d.ts +6 -5
- three/src/nodes/code/FunctionNode.d.ts +4 -6
- three/src/nodes/code/ScriptableNode.d.ts +1 -2
- three/src/nodes/code/ScriptableValueNode.d.ts +1 -2
- three/src/nodes/core/ArrayNode.d.ts +6 -6
- three/src/nodes/core/AssignNode.d.ts +1 -8
- three/src/nodes/core/AttributeNode.d.ts +1 -2
- three/src/nodes/core/BypassNode.d.ts +5 -5
- three/src/nodes/core/ContextNode.d.ts +42 -14
- three/src/nodes/core/IndexNode.d.ts +10 -7
- three/src/nodes/core/InspectorNode.d.ts +16 -0
- three/src/nodes/core/IsolateNode.d.ts +36 -0
- three/src/nodes/core/MRTNode.d.ts +3 -4
- three/src/nodes/core/Node.d.ts +18 -2
- three/src/nodes/core/NodeUtils.d.ts +1 -11
- three/src/nodes/core/OutputStructNode.d.ts +1 -2
- three/src/nodes/core/ParameterNode.d.ts +1 -2
- three/src/nodes/core/PropertyNode.d.ts +32 -31
- three/src/nodes/core/StackNode.d.ts +1 -4
- three/src/nodes/core/StructNode.d.ts +3 -4
- three/src/nodes/core/SubBuildNode.d.ts +1 -2
- three/src/nodes/core/UniformNode.d.ts +3 -6
- three/src/nodes/core/VarNode.d.ts +12 -8
- three/src/nodes/core/VaryingNode.d.ts +12 -10
- three/src/nodes/display/BlendModes.d.ts +11 -12
- three/src/nodes/display/BumpMapNode.d.ts +1 -2
- three/src/nodes/display/ColorAdjustment.d.ts +7 -8
- three/src/nodes/display/ColorSpaceFunctions.d.ts +2 -3
- three/src/nodes/display/ColorSpaceNode.d.ts +19 -9
- three/src/nodes/display/FrontFacingNode.d.ts +3 -4
- three/src/nodes/display/NormalMapNode.d.ts +4 -3
- three/src/nodes/display/PassNode.d.ts +28 -11
- three/src/nodes/display/PosterizeNode.d.ts +1 -2
- three/src/nodes/display/RenderOutputNode.d.ts +11 -6
- three/src/nodes/display/ScreenNode.d.ts +9 -10
- three/src/nodes/display/ToneMappingFunctions.d.ts +6 -7
- three/src/nodes/display/ToneMappingNode.d.ts +9 -8
- three/src/nodes/display/ToonOutlinePassNode.d.ts +1 -2
- three/src/nodes/display/ViewportDepthNode.d.ts +3 -4
- three/src/nodes/display/ViewportDepthTextureNode.d.ts +1 -2
- three/src/nodes/display/ViewportSharedTextureNode.d.ts +1 -2
- three/src/nodes/display/ViewportTextureNode.d.ts +2 -3
- three/src/nodes/fog/Fog.d.ts +5 -6
- three/src/nodes/functions/BSDF/BRDF_GGX.d.ts +4 -5
- three/src/nodes/functions/BSDF/BRDF_GGX_Multiscatter.d.ts +14 -0
- three/src/nodes/functions/BSDF/BRDF_Lambert.d.ts +1 -2
- three/src/nodes/functions/BSDF/BRDF_Sheen.d.ts +1 -2
- three/src/nodes/functions/BSDF/DFGLUT.d.ts +12 -0
- three/src/nodes/functions/BSDF/D_GGX.d.ts +1 -2
- three/src/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +1 -2
- three/src/nodes/functions/BSDF/F_Schlick.d.ts +1 -2
- three/src/nodes/functions/BSDF/Schlick_to_F0.d.ts +1 -2
- three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +1 -2
- three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +1 -2
- three/src/nodes/functions/PhysicalLightingModel.d.ts +8 -1
- three/src/nodes/functions/ShadowMaskModel.d.ts +1 -2
- three/src/nodes/functions/material/getAlphaHashThreshold.d.ts +1 -2
- three/src/nodes/functions/material/getGeometryRoughness.d.ts +1 -2
- three/src/nodes/functions/material/getParallaxCorrectNormal.d.ts +1 -2
- three/src/nodes/functions/material/getRoughness.d.ts +1 -2
- three/src/nodes/functions/material/getShIrradianceAt.d.ts +1 -2
- three/src/nodes/geometry/RangeNode.d.ts +1 -2
- three/src/nodes/gpgpu/AtomicFunctionNode.d.ts +10 -11
- three/src/nodes/gpgpu/BarrierNode.d.ts +3 -4
- three/src/nodes/gpgpu/ComputeBuiltinNode.d.ts +5 -6
- three/src/nodes/gpgpu/ComputeNode.d.ts +21 -13
- three/src/nodes/gpgpu/SubgroupFunctionNode.d.ts +25 -26
- three/src/nodes/gpgpu/WorkgroupInfoNode.d.ts +1 -2
- three/src/nodes/lighting/AnalyticLightNode.d.ts +3 -2
- three/src/nodes/lighting/LightUtils.d.ts +1 -2
- three/src/nodes/lighting/LightingContextNode.d.ts +1 -2
- three/src/nodes/lighting/LightsNode.d.ts +1 -2
- three/src/nodes/lighting/PointLightNode.d.ts +5 -6
- three/src/nodes/lighting/PointShadowNode.d.ts +12 -17
- three/src/nodes/lighting/ShadowBaseNode.d.ts +1 -2
- three/src/nodes/lighting/ShadowFilterNode.d.ts +6 -5
- three/src/nodes/lighting/ShadowNode.d.ts +1 -2
- three/src/nodes/lighting/SpotLightNode.d.ts +1 -2
- three/src/nodes/materialx/MaterialXNodes.d.ts +41 -42
- three/src/nodes/materialx/lib/mx_hsv.d.ts +2 -3
- three/src/nodes/materialx/lib/mx_noise.d.ts +73 -74
- three/src/nodes/materialx/lib/mx_transform_color.d.ts +1 -2
- three/src/nodes/math/BitcastNode.d.ts +5 -6
- three/src/nodes/math/BitcountNode.d.ts +21 -0
- three/src/nodes/math/ConditionalNode.d.ts +11 -5
- three/src/nodes/math/Hash.d.ts +1 -2
- three/src/nodes/math/MathNode.d.ts +223 -77
- three/src/nodes/math/OperatorNode.d.ts +203 -59
- three/src/nodes/math/PackFloatNode.d.ts +19 -0
- three/src/nodes/math/TriNoise3D.d.ts +3 -4
- three/src/nodes/math/UnpackFloatNode.d.ts +18 -0
- three/src/nodes/pmrem/PMREMNode.d.ts +1 -2
- three/src/nodes/pmrem/PMREMUtils.d.ts +3 -4
- three/src/nodes/procedural/Checker.d.ts +1 -2
- three/src/nodes/shapes/Shapes.d.ts +1 -2
- three/src/nodes/tsl/TSLBase.d.ts +2 -1
- three/src/nodes/tsl/TSLCore.d.ts +235 -128
- three/src/nodes/utils/CubeMapNode.d.ts +1 -2
- three/src/nodes/utils/DebugNode.d.ts +9 -5
- three/src/nodes/utils/Discard.d.ts +6 -6
- three/src/nodes/utils/EquirectUV.d.ts +1 -2
- three/src/nodes/utils/EventNode.d.ts +8 -3
- three/src/nodes/utils/FunctionOverloadingNode.d.ts +1 -2
- three/src/nodes/utils/LoopNode.d.ts +7 -6
- three/src/nodes/utils/MatcapUV.d.ts +1 -2
- three/src/nodes/utils/MaxMipLevelNode.d.ts +1 -2
- three/src/nodes/utils/Oscillators.d.ts +4 -5
- three/src/nodes/utils/Packing.d.ts +3 -3
- three/src/nodes/utils/PostProcessingUtils.d.ts +7 -4
- three/src/nodes/utils/RTTNode.d.ts +2 -3
- three/src/nodes/utils/ReflectorNode.d.ts +2 -3
- three/src/nodes/utils/RemapNode.d.ts +29 -7
- three/src/nodes/utils/RotateNode.d.ts +1 -2
- three/src/nodes/utils/SampleNode.d.ts +1 -2
- three/src/nodes/utils/SpriteSheetUVNode.d.ts +1 -2
- three/src/nodes/utils/SpriteUtils.d.ts +1 -2
- three/src/nodes/utils/StorageArrayElementNode.d.ts +1 -2
- three/src/nodes/utils/Timer.d.ts +3 -4
- three/src/nodes/utils/TriplanarTextures.d.ts +2 -3
- three/src/nodes/utils/UVUtils.d.ts +5 -3
- three/src/nodes/utils/ViewportUtils.d.ts +1 -2
- three/src/objects/LOD.d.ts +1 -1
- three/src/objects/Skeleton.d.ts +4 -2
- three/src/renderers/WebGLRenderer.d.ts +22 -4
- three/src/renderers/common/Animation.d.ts +4 -1
- three/src/renderers/common/Binding.d.ts +6 -0
- three/src/renderers/common/Bindings.d.ts +12 -0
- three/src/renderers/common/Buffer.d.ts +24 -0
- three/src/renderers/common/CanvasTarget.d.ts +142 -0
- three/src/renderers/common/ChainMap.d.ts +8 -1
- three/src/renderers/common/Geometries.d.ts +8 -0
- three/src/renderers/common/InspectorBase.d.ts +105 -0
- three/src/renderers/common/PostProcessing.d.ts +3 -0
- three/src/renderers/common/QuadMesh.d.ts +3 -0
- three/src/renderers/common/RenderContexts.d.ts +6 -2
- three/src/renderers/common/RenderObject.d.ts +6 -0
- three/src/renderers/common/Renderer.d.ts +145 -46
- three/src/renderers/common/SampledTexture.d.ts +2 -0
- three/src/renderers/common/Sampler.d.ts +2 -0
- three/src/renderers/common/Textures.d.ts +20 -0
- three/src/renderers/common/TimestampQueryPool.d.ts +24 -1
- three/src/renderers/common/UniformsGroup.d.ts +1 -0
- three/src/renderers/common/extras/PMREMGenerator.d.ts +19 -1
- three/src/renderers/common/nodes/NodeLibrary.d.ts +3 -7
- three/src/renderers/common/nodes/Nodes.d.ts +13 -14
- three/src/renderers/shaders/ShaderLib.d.ts +1 -1
- three/src/renderers/webgl/WebGLCapabilities.d.ts +2 -2
- three/src/renderers/webgl/WebGLPrograms.d.ts +0 -1
- three/src/renderers/webgpu/utils/WebGPUConstants.d.ts +5 -0
- three/src/scenes/Scene.d.ts +2 -2
- three/src/textures/CanvasTexture.d.ts +3 -3
- three/src/textures/CompressedArrayTexture.d.ts +6 -9
- three/src/textures/CompressedCubeTexture.d.ts +3 -3
- three/src/textures/CompressedTexture.d.ts +6 -8
- three/src/textures/CubeDepthTexture.d.ts +41 -0
- three/src/textures/CubeTexture.d.ts +4 -11
- three/src/textures/Data3DTexture.d.ts +5 -10
- three/src/textures/DataArrayTexture.d.ts +10 -10
- three/src/textures/DataTexture.d.ts +4 -11
- three/src/textures/DepthTexture.d.ts +7 -8
- three/src/textures/ExternalTexture.d.ts +3 -1
- three/src/textures/FramebufferTexture.d.ts +6 -1
- three/src/textures/Source.d.ts +3 -3
- three/src/textures/Texture.d.ts +8 -8
- three/src/textures/VideoFrameTexture.d.ts +1 -1
- three/src/textures/VideoTexture.d.ts +2 -2
- three/src/utils.d.ts +30 -2
- three/src/nodes/core/CacheNode.d.ts +0 -21
- three/src/nodes/functions/BSDF/DFGApprox.d.ts +0 -11
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Light } from "../../lights/Light.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import NodeBuilder from "../core/NodeBuilder.js";
|
|
4
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
4
|
import LightingNode from "./LightingNode.js";
|
|
6
5
|
import { DirectLightData, DirectRectAreaLightData } from "./LightsNode.js";
|
|
7
6
|
import ShadowNode from "./ShadowNode.js";
|
|
@@ -17,13 +16,15 @@ declare class AnalyticLightNode<T extends Light> extends LightingNode {
|
|
|
17
16
|
|
|
18
17
|
constructor(light?: T | null);
|
|
19
18
|
|
|
19
|
+
disposeShadow(): void;
|
|
20
|
+
|
|
20
21
|
getLightVector(builder: NodeBuilder): Node;
|
|
21
22
|
|
|
22
23
|
setupDirect(builder: NodeBuilder): DirectLightData | undefined;
|
|
23
24
|
|
|
24
25
|
setupDirectRectArea(builder: NodeBuilder): DirectRectAreaLightData | undefined;
|
|
25
26
|
|
|
26
|
-
setupShadowNode():
|
|
27
|
+
setupShadowNode(): ShadowNode;
|
|
27
28
|
|
|
28
29
|
setupShadow(builder: NodeBuilder): void;
|
|
29
30
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
2
|
import ConditionalNode from "../math/ConditionalNode.js";
|
|
3
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
3
|
|
|
5
4
|
export const getDistanceAttenuation: (args: {
|
|
6
5
|
lightDistance: Node;
|
|
7
6
|
cutoffDistance: Node;
|
|
8
7
|
decayExponent: Node;
|
|
9
|
-
}) =>
|
|
8
|
+
}) => ConditionalNode;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import ContextNode from "../core/ContextNode.js";
|
|
2
2
|
import LightingModel, { LightingModelReflectedLight } from "../core/LightingModel.js";
|
|
3
3
|
import Node from "../core/Node.js";
|
|
4
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
4
|
import LightsNode from "./LightsNode.js";
|
|
6
5
|
|
|
7
6
|
export interface LightingContext {
|
|
@@ -32,4 +31,4 @@ export default class LightingContextNode extends ContextNode {
|
|
|
32
31
|
export const lightingContext: (
|
|
33
32
|
node: LightsNode,
|
|
34
33
|
lightingModelNode?: LightingModel,
|
|
35
|
-
) =>
|
|
34
|
+
) => LightingContextNode;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Light } from "../../lights/Light.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import { NodeBuilder } from "../Nodes.js";
|
|
4
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
4
|
import LightingNode from "./LightingNode.js";
|
|
6
5
|
|
|
7
6
|
export interface DirectLightData {
|
|
@@ -44,4 +43,4 @@ declare class LightsNode extends Node {
|
|
|
44
43
|
|
|
45
44
|
export default LightsNode;
|
|
46
45
|
|
|
47
|
-
export const lights: (lights?: Light[]) =>
|
|
46
|
+
export const lights: (lights?: Light[]) => LightsNode;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { PointLight } from "../../lights/PointLight.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
3
|
import AnalyticLightNode from "./AnalyticLightNode.js";
|
|
5
4
|
import { DirectLightData } from "./LightsNode.js";
|
|
6
5
|
import PointShadowNode from "./PointShadowNode.js";
|
|
7
6
|
|
|
8
7
|
export const directPointLight: (params: {
|
|
9
|
-
color:
|
|
10
|
-
lightViewPosition:
|
|
11
|
-
cutoffDistance:
|
|
12
|
-
decayExponent:
|
|
8
|
+
color: Node;
|
|
9
|
+
lightViewPosition: Node;
|
|
10
|
+
cutoffDistance: Node;
|
|
11
|
+
decayExponent: Node;
|
|
13
12
|
}) => DirectLightData;
|
|
14
13
|
|
|
15
14
|
declare class PointLightNode extends AnalyticLightNode<PointLight> {
|
|
@@ -18,7 +17,7 @@ declare class PointLightNode extends AnalyticLightNode<PointLight> {
|
|
|
18
17
|
|
|
19
18
|
constructor(light?: PointLight | null);
|
|
20
19
|
|
|
21
|
-
setupShadowNode():
|
|
20
|
+
setupShadowNode(): PointShadowNode;
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
export default PointLightNode;
|
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
import { Light } from "../../lights/Light.js";
|
|
2
2
|
import { LightShadow } from "../../lights/LightShadow.js";
|
|
3
3
|
import Node from "../core/Node.js";
|
|
4
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
4
|
import ShadowNode from "./ShadowNode.js";
|
|
6
5
|
|
|
7
|
-
export const
|
|
6
|
+
export const BasicPointShadowFilter: (params: {
|
|
7
|
+
depthTexture: Node;
|
|
8
|
+
bd3D: Node;
|
|
9
|
+
dp: Node;
|
|
10
|
+
}) => Node;
|
|
8
11
|
|
|
9
|
-
export const
|
|
10
|
-
depthTexture: Node
|
|
11
|
-
bd3D: Node
|
|
12
|
-
dp: Node
|
|
13
|
-
|
|
14
|
-
) =>
|
|
15
|
-
|
|
16
|
-
export const PointShadowFilter: (
|
|
17
|
-
depthTexture: Node,
|
|
18
|
-
bd3D: Node,
|
|
19
|
-
dp: Node,
|
|
20
|
-
texelSize: Node,
|
|
21
|
-
shadow: Node,
|
|
22
|
-
) => ShaderNodeObject<Node>;
|
|
12
|
+
export const PointShadowFilter: (params: {
|
|
13
|
+
depthTexture: Node;
|
|
14
|
+
bd3D: Node;
|
|
15
|
+
dp: Node;
|
|
16
|
+
shadow: Node;
|
|
17
|
+
}) => Node;
|
|
23
18
|
|
|
24
19
|
declare class PointShadowNode extends ShadowNode {
|
|
25
20
|
constructor(light: Light, shadow: LightShadow | null);
|
|
@@ -27,4 +22,4 @@ declare class PointShadowNode extends ShadowNode {
|
|
|
27
22
|
|
|
28
23
|
export default PointShadowNode;
|
|
29
24
|
|
|
30
|
-
export const pointShadow: (light: Light, shadow?: LightShadow | null) =>
|
|
25
|
+
export const pointShadow: (light: Light, shadow?: LightShadow | null) => PointShadowNode;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Light } from "../../lights/Light.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import NodeBuilder from "../core/NodeBuilder.js";
|
|
4
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
4
|
|
|
6
5
|
declare class ShadowBaseNode extends Node {
|
|
7
6
|
light: Light;
|
|
@@ -13,6 +12,6 @@ declare class ShadowBaseNode extends Node {
|
|
|
13
12
|
setupShadowPosition(builder: NodeBuilder): void;
|
|
14
13
|
}
|
|
15
14
|
|
|
16
|
-
export const shadowPositionWorld:
|
|
15
|
+
export const shadowPositionWorld: Node;
|
|
17
16
|
|
|
18
17
|
export default ShadowBaseNode;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { Light } from "../../lights/Light.js";
|
|
2
2
|
import NodeMaterial from "../../materials/nodes/NodeMaterial.js";
|
|
3
3
|
import Node from "../core/Node.js";
|
|
4
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
4
|
|
|
6
5
|
export const BasicShadowFilter: (
|
|
7
6
|
depthTexture: Node,
|
|
8
7
|
shadowCoord: Node,
|
|
9
|
-
) =>
|
|
8
|
+
) => Node;
|
|
10
9
|
|
|
11
10
|
export const PCFShadowFilter: (
|
|
12
11
|
depthTexture: Node,
|
|
13
12
|
shadowCoord: Node,
|
|
14
13
|
shadow: Node,
|
|
15
|
-
) =>
|
|
14
|
+
) => Node;
|
|
16
15
|
|
|
17
16
|
export const PCFSoftShadowFilter: (
|
|
18
17
|
depthTexture: Node,
|
|
19
18
|
shadowCoord: Node,
|
|
20
19
|
shadow: Node,
|
|
21
|
-
) =>
|
|
20
|
+
) => Node;
|
|
22
21
|
|
|
23
22
|
export const VSMShadowFilter: (
|
|
24
23
|
depthTexture: Node,
|
|
25
24
|
shadowCoord: Node,
|
|
26
|
-
) =>
|
|
25
|
+
) => Node;
|
|
27
26
|
|
|
28
27
|
export const getShadowMaterial: (light: Light) => NodeMaterial;
|
|
28
|
+
|
|
29
|
+
export const disposeShadowMaterial: (light: Light) => void;
|
|
@@ -8,7 +8,6 @@ import { Group } from "../../objects/Group.js";
|
|
|
8
8
|
import ClippingContext from "../../renderers/common/ClippingContext.js";
|
|
9
9
|
import Renderer from "../../renderers/common/Renderer.js";
|
|
10
10
|
import { Scene } from "../../scenes/Scene.js";
|
|
11
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
12
11
|
import LightsNode from "./LightsNode.js";
|
|
13
12
|
import ShadowBaseNode from "./ShadowBaseNode.js";
|
|
14
13
|
|
|
@@ -35,4 +34,4 @@ declare class ShadowNode extends ShadowBaseNode {
|
|
|
35
34
|
|
|
36
35
|
export default ShadowNode;
|
|
37
36
|
|
|
38
|
-
export const shadow: (light: Light, shadow?: LightShadow) =>
|
|
37
|
+
export const shadow: (light: Light, shadow?: LightShadow) => ShadowNode;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SpotLight } from "../../lights/SpotLight.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import NodeBuilder from "../core/NodeBuilder.js";
|
|
4
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
4
|
import AnalyticLightNode from "./AnalyticLightNode.js";
|
|
6
5
|
|
|
7
6
|
declare class SpotLightNode extends AnalyticLightNode<SpotLight> {
|
|
@@ -17,7 +16,7 @@ declare class SpotLightNode extends AnalyticLightNode<SpotLight> {
|
|
|
17
16
|
|
|
18
17
|
constructor(light?: SpotLight | null);
|
|
19
18
|
|
|
20
|
-
getLightCoord(builder: NodeBuilder):
|
|
19
|
+
getLightCoord(builder: NodeBuilder): Node;
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
declare module "three" {
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
2
|
import MathNode from "../math/MathNode.js";
|
|
3
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
3
|
import { mx_hsvtorgb, mx_rgbtohsv } from "./lib/mx_hsv.js";
|
|
5
4
|
import { mx_srgb_texture_to_lin_rec709 } from "./lib/mx_transform_color.js";
|
|
6
5
|
|
|
7
|
-
export const mx_aastep: (threshold: Node | number, value: Node | number) =>
|
|
6
|
+
export const mx_aastep: (threshold: Node | number, value: Node | number) => MathNode;
|
|
8
7
|
|
|
9
8
|
export const mx_ramplr: (
|
|
10
9
|
valuel: Node | number,
|
|
11
10
|
valuer: Node | number,
|
|
12
11
|
texcoord?: Node,
|
|
13
|
-
) =>
|
|
12
|
+
) => MathNode;
|
|
14
13
|
export const mx_ramptb: (
|
|
15
14
|
valuet: Node | number,
|
|
16
15
|
valueb: Node | number,
|
|
17
16
|
texcoord?: Node,
|
|
18
|
-
) =>
|
|
17
|
+
) => MathNode;
|
|
19
18
|
|
|
20
19
|
export const mx_ramp4: (
|
|
21
20
|
valuetl: Node | number,
|
|
@@ -23,50 +22,50 @@ export const mx_ramp4: (
|
|
|
23
22
|
valuebl: Node | number,
|
|
24
23
|
valuebr: Node | number,
|
|
25
24
|
texcoord?: Node,
|
|
26
|
-
) =>
|
|
25
|
+
) => MathNode;
|
|
27
26
|
|
|
28
27
|
export const mx_splitlr: (
|
|
29
28
|
valuel: Node | number,
|
|
30
29
|
valuer: Node | number,
|
|
31
30
|
center: Node | number,
|
|
32
31
|
texcoord?: Node,
|
|
33
|
-
) =>
|
|
32
|
+
) => MathNode;
|
|
34
33
|
export const mx_splittb: (
|
|
35
34
|
valuet: Node | number,
|
|
36
35
|
valueb: Node | number,
|
|
37
36
|
center: Node | number,
|
|
38
37
|
texcoord?: Node,
|
|
39
|
-
) =>
|
|
38
|
+
) => MathNode;
|
|
40
39
|
|
|
41
40
|
export const mx_transform_uv: (
|
|
42
41
|
uv_scale?: Node | number,
|
|
43
42
|
uv_offset?: Node | number,
|
|
44
43
|
uv_geo?: Node,
|
|
45
|
-
) =>
|
|
44
|
+
) => Node;
|
|
46
45
|
|
|
47
|
-
export const mx_safepower: (in1: Node | number, in2?: Node | number) =>
|
|
46
|
+
export const mx_safepower: (in1: Node | number, in2?: Node | number) => Node;
|
|
48
47
|
|
|
49
48
|
export const mx_contrast: (
|
|
50
49
|
input: Node | number,
|
|
51
50
|
amount?: Node | number,
|
|
52
51
|
pivot?: Node | number,
|
|
53
|
-
) =>
|
|
52
|
+
) => Node;
|
|
54
53
|
|
|
55
54
|
export const mx_noise_float: (
|
|
56
55
|
texcoord?: Node,
|
|
57
56
|
amplitude?: Node | number,
|
|
58
57
|
pivot?: Node | number,
|
|
59
|
-
) =>
|
|
58
|
+
) => Node;
|
|
60
59
|
export const mx_noise_vec3: (
|
|
61
60
|
texcoord?: Node,
|
|
62
61
|
amplitude?: Node | number,
|
|
63
62
|
pivot?: Node | number,
|
|
64
|
-
) =>
|
|
63
|
+
) => Node;
|
|
65
64
|
export const mx_noise_vec4: (
|
|
66
65
|
texcoord?: Node,
|
|
67
66
|
amplitude?: Node | number,
|
|
68
67
|
pivot?: Node | number,
|
|
69
|
-
) =>
|
|
68
|
+
) => Node;
|
|
70
69
|
|
|
71
70
|
export const mx_unifiednoise2d: (
|
|
72
71
|
noiseType: Node,
|
|
@@ -80,7 +79,7 @@ export const mx_unifiednoise2d: (
|
|
|
80
79
|
octaves?: Node | number,
|
|
81
80
|
lacunarity?: Node | number,
|
|
82
81
|
diminish?: Node | number,
|
|
83
|
-
) =>
|
|
82
|
+
) => Node;
|
|
84
83
|
export const mx_unifiednoise3d: (
|
|
85
84
|
noiseType: Node,
|
|
86
85
|
texcoord?: Node,
|
|
@@ -93,22 +92,22 @@ export const mx_unifiednoise3d: (
|
|
|
93
92
|
octaves?: Node | number,
|
|
94
93
|
lacunarity?: Node | number,
|
|
95
94
|
diminish?: Node | number,
|
|
96
|
-
) =>
|
|
95
|
+
) => Node;
|
|
97
96
|
|
|
98
97
|
export function mx_worley_noise_float(
|
|
99
98
|
texcoord?: Node,
|
|
100
99
|
jitter?: Node | number,
|
|
101
|
-
):
|
|
100
|
+
): Node;
|
|
102
101
|
export function mx_worley_noise_vec2(
|
|
103
102
|
texcoord?: Node,
|
|
104
103
|
jitter?: Node | number,
|
|
105
|
-
):
|
|
104
|
+
): Node;
|
|
106
105
|
export function mx_worley_noise_vec3(
|
|
107
106
|
texcoord?: Node,
|
|
108
107
|
jitter?: Node | number,
|
|
109
|
-
):
|
|
108
|
+
): Node;
|
|
110
109
|
|
|
111
|
-
export function mx_cell_noise_float(texcoord?: Node):
|
|
110
|
+
export function mx_cell_noise_float(texcoord?: Node): Node;
|
|
112
111
|
|
|
113
112
|
export function mx_fractal_noise_float(
|
|
114
113
|
position?: Node,
|
|
@@ -116,46 +115,46 @@ export function mx_fractal_noise_float(
|
|
|
116
115
|
lacunarity?: Node | number,
|
|
117
116
|
diminish?: Node | number,
|
|
118
117
|
amplitude?: Node | number,
|
|
119
|
-
):
|
|
118
|
+
): Node;
|
|
120
119
|
export function mx_fractal_noise_vec2(
|
|
121
120
|
position?: Node,
|
|
122
121
|
octaves?: Node | number,
|
|
123
122
|
lacunarity?: Node | number,
|
|
124
123
|
diminish?: Node | number,
|
|
125
124
|
amplitude?: Node | number,
|
|
126
|
-
):
|
|
125
|
+
): Node;
|
|
127
126
|
export function mx_fractal_noise_vec3(
|
|
128
127
|
position?: Node,
|
|
129
128
|
octaves?: Node | number,
|
|
130
129
|
lacunarity?: Node | number,
|
|
131
130
|
diminish?: Node | number,
|
|
132
131
|
amplitude?: Node | number,
|
|
133
|
-
):
|
|
132
|
+
): Node;
|
|
134
133
|
export function mx_fractal_noise_vec4(
|
|
135
134
|
position?: Node,
|
|
136
135
|
octaves?: Node | number,
|
|
137
136
|
lacunarity?: Node | number,
|
|
138
137
|
diminish?: Node | number,
|
|
139
138
|
amplitude?: Node | number,
|
|
140
|
-
):
|
|
139
|
+
): Node;
|
|
141
140
|
|
|
142
141
|
export { mx_hsvtorgb, mx_rgbtohsv, mx_srgb_texture_to_lin_rec709 };
|
|
143
142
|
|
|
144
|
-
export const mx_add: (in1: Node, in2?: Node) =>
|
|
145
|
-
export const mx_subtract: (in1: Node, in2?: Node) =>
|
|
146
|
-
export const mx_multiply: (in1: Node, in2?: Node) =>
|
|
147
|
-
export const mx_divide: (in1: Node, in2?: Node) =>
|
|
148
|
-
export const mx_modulo: (in1: Node, in2?: Node) =>
|
|
149
|
-
export const mx_power: (in1: Node, in2?: Node) =>
|
|
150
|
-
export const mx_atan2: (in1?: Node, in2?: Node) =>
|
|
151
|
-
export const mx_timer: () =>
|
|
152
|
-
export const mx_frame: () =>
|
|
153
|
-
export const mx_invert: (in1: Node, amount?: Node) =>
|
|
154
|
-
export const mx_ifgreater: (value1: Node, value2: Node, in1: Node, in2: Node) =>
|
|
155
|
-
export const mx_ifgreatereq: (value1: Node, value2: Node, in1: Node, in2: Node) =>
|
|
156
|
-
export const mx_ifequal: (value1: Node, value2: Node, in1: Node, in2: Node) =>
|
|
157
|
-
|
|
158
|
-
export const mx_separate: (in1: Node, channelOrOut?: string | number) =>
|
|
143
|
+
export const mx_add: (in1: Node, in2?: Node) => Node;
|
|
144
|
+
export const mx_subtract: (in1: Node, in2?: Node) => Node;
|
|
145
|
+
export const mx_multiply: (in1: Node, in2?: Node) => Node;
|
|
146
|
+
export const mx_divide: (in1: Node, in2?: Node) => Node;
|
|
147
|
+
export const mx_modulo: (in1: Node, in2?: Node) => Node;
|
|
148
|
+
export const mx_power: (in1: Node, in2?: Node) => Node;
|
|
149
|
+
export const mx_atan2: (in1?: Node, in2?: Node) => Node;
|
|
150
|
+
export const mx_timer: () => Node;
|
|
151
|
+
export const mx_frame: () => Node;
|
|
152
|
+
export const mx_invert: (in1: Node, amount?: Node) => Node;
|
|
153
|
+
export const mx_ifgreater: (value1: Node, value2: Node, in1: Node, in2: Node) => Node;
|
|
154
|
+
export const mx_ifgreatereq: (value1: Node, value2: Node, in1: Node, in2: Node) => Node;
|
|
155
|
+
export const mx_ifequal: (value1: Node, value2: Node, in1: Node, in2: Node) => Node;
|
|
156
|
+
|
|
157
|
+
export const mx_separate: (in1: Node, channelOrOut?: string | number) => Node;
|
|
159
158
|
|
|
160
159
|
export const mx_place2d: (
|
|
161
160
|
texcoord: Node,
|
|
@@ -163,10 +162,10 @@ export const mx_place2d: (
|
|
|
163
162
|
scale?: Node,
|
|
164
163
|
rotate?: Node,
|
|
165
164
|
offset?: Node,
|
|
166
|
-
) =>
|
|
165
|
+
) => Node;
|
|
167
166
|
|
|
168
|
-
export const mx_rotate2d: (input: Node, amount: Node) =>
|
|
167
|
+
export const mx_rotate2d: (input: Node, amount: Node) => Node;
|
|
169
168
|
|
|
170
|
-
export const mx_rotate3d: (input: Node, amount: Node, axis: Node) =>
|
|
169
|
+
export const mx_rotate3d: (input: Node, amount: Node, axis: Node) => Node;
|
|
171
170
|
|
|
172
|
-
export const mx_heighttonormal: (input: Node, scale: Node) =>
|
|
171
|
+
export const mx_heighttonormal: (input: Node, scale: Node) => Node;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import Node from "../../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../../tsl/TSLCore.js";
|
|
3
2
|
|
|
4
|
-
export const mx_hsvtorgb: (hsv: Node) =>
|
|
3
|
+
export const mx_hsvtorgb: (hsv: Node) => Node;
|
|
5
4
|
|
|
6
|
-
export const mx_rgbtohsv: (c_immutable: Node) =>
|
|
5
|
+
export const mx_rgbtohsv: (c_immutable: Node) => Node;
|