@types/three 0.179.0 → 0.181.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/Addons.d.ts +1 -1
- three/examples/jsm/controls/DragControls.d.ts +0 -30
- three/examples/jsm/controls/PointerLockControls.d.ts +0 -5
- three/examples/jsm/exporters/DRACOExporter.d.ts +1 -1
- three/examples/jsm/exporters/EXRExporter.d.ts +2 -2
- three/examples/jsm/exporters/KTX2Exporter.d.ts +2 -2
- three/examples/jsm/exporters/STLExporter.d.ts +2 -2
- three/examples/jsm/exporters/USDZExporter.d.ts +2 -2
- 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/HDRCubeTextureLoader.d.ts +2 -2
- three/examples/jsm/loaders/HDRLoader.d.ts +22 -0
- three/examples/jsm/loaders/KTX2Loader.d.ts +3 -0
- three/examples/jsm/loaders/LDrawLoader.d.ts +5 -1
- three/examples/jsm/loaders/RGBELoader.d.ts +9 -15
- three/examples/jsm/materials/WoodNodeMaterial.d.ts +75 -0
- three/examples/jsm/math/ColorSpaces.d.ts +4 -0
- three/examples/jsm/objects/SkyMesh.d.ts +6 -7
- three/examples/jsm/objects/WaterMesh.d.ts +2 -2
- three/examples/jsm/postprocessing/SSRPass.d.ts +6 -29
- three/examples/jsm/renderers/CSS2DRenderer.d.ts +15 -10
- 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 +11 -3
- 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 +15 -10
- 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 +28 -9
- 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 +18 -14
- three/examples/jsm/tsl/display/SSSNode.d.ts +18 -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 +1 -2
- three/examples/jsm/tsl/display/TransitionNode.d.ts +1 -2
- three/examples/jsm/tsl/display/boxBlur.d.ts +10 -0
- three/examples/jsm/tsl/display/hashBlur.d.ts +2 -3
- 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 +2 -2
- three/src/Three.Core.d.ts +2 -1
- three/src/Three.TSL.d.ts +36 -5
- three/src/Three.WebGPU.Nodes.d.ts +2 -0
- three/src/Three.WebGPU.d.ts +2 -0
- three/src/animation/AnimationClip.d.ts +5 -0
- three/src/animation/AnimationMixer.d.ts +3 -3
- three/src/constants.d.ts +3 -1
- three/src/lights/DirectionalLight.d.ts +0 -1
- three/src/loaders/ObjectLoader.d.ts +3 -3
- three/src/loaders/TextureLoader.d.ts +3 -3
- three/src/materials/LineBasicMaterial.d.ts +1 -0
- three/src/materials/LineDashedMaterial.d.ts +1 -0
- three/src/materials/Material.d.ts +2 -2
- three/src/materials/MeshBasicMaterial.d.ts +1 -0
- three/src/materials/MeshDepthMaterial.d.ts +1 -0
- three/src/materials/MeshDistanceMaterial.d.ts +2 -1
- three/src/materials/MeshLambertMaterial.d.ts +2 -1
- three/src/materials/MeshMatcapMaterial.d.ts +15 -0
- three/src/materials/MeshNormalMaterial.d.ts +1 -0
- three/src/materials/MeshPhongMaterial.d.ts +2 -1
- three/src/materials/MeshPhysicalMaterial.d.ts +1 -1
- three/src/materials/MeshStandardMaterial.d.ts +7 -7
- three/src/materials/MeshToonMaterial.d.ts +1 -0
- three/src/materials/PointsMaterial.d.ts +2 -1
- three/src/materials/ShaderMaterial.d.ts +9 -8
- three/src/materials/ShadowMaterial.d.ts +1 -0
- three/src/materials/SpriteMaterial.d.ts +1 -0
- three/src/materials/nodes/Line2NodeMaterial.d.ts +1 -0
- three/src/materials/nodes/LineBasicNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/LineDashedNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshBasicNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshLambertNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshMatcapNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshNormalNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshPhongNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshPhysicalNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshSSSNodeMaterial.d.ts +2 -1
- three/src/materials/nodes/MeshStandardNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshToonNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/NodeMaterial.d.ts +3 -3
- three/src/materials/nodes/PointsNodeMaterial.d.ts +17 -0
- three/src/materials/nodes/ShadowNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/SpriteNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/VolumeNodeMaterial.d.ts +2 -2
- three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +1 -1
- three/src/math/ColorManagement.d.ts +1 -1
- three/src/math/Vector3.d.ts +2 -2
- three/src/nodes/Nodes.d.ts +4 -1
- three/src/nodes/TSL.d.ts +4 -1
- 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 +8 -9
- 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 +11 -10
- 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 +1 -2
- 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 +3 -4
- three/src/nodes/accessors/TextureBicubic.d.ts +2 -3
- three/src/nodes/accessors/TextureNode.d.ts +31 -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 +25 -9
- 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 +22 -13
- three/src/nodes/core/NodeUtils.d.ts +0 -10
- 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 +30 -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 +5 -8
- three/src/nodes/core/VarNode.d.ts +11 -21
- 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 +1 -2
- three/src/nodes/display/PassNode.d.ts +20 -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 +12 -10
- three/src/nodes/display/ToneMappingFunctions.d.ts +6 -7
- three/src/nodes/display/ToneMappingNode.d.ts +11 -10
- 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 +4 -2
- three/src/nodes/display/ViewportSharedTextureNode.d.ts +4 -2
- three/src/nodes/display/ViewportTextureNode.d.ts +6 -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/DFGApprox.d.ts +1 -2
- 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/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 +99 -0
- three/src/nodes/gpgpu/WorkgroupInfoNode.d.ts +1 -2
- three/src/nodes/lighting/AnalyticLightNode.d.ts +1 -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 +4 -5
- three/src/nodes/lighting/ShadowBaseNode.d.ts +1 -2
- three/src/nodes/lighting/ShadowFilterNode.d.ts +4 -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 +24 -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 -80
- three/src/nodes/math/OperatorNode.d.ts +203 -59
- three/src/nodes/math/TriNoise3D.d.ts +3 -4
- 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 +2 -3
- three/src/nodes/utils/PostProcessingUtils.d.ts +5 -4
- three/src/nodes/utils/RTTNode.d.ts +2 -3
- three/src/nodes/utils/ReflectorNode.d.ts +18 -4
- 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 +3 -3
- 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 -19
- three/src/nodes/utils/TriplanarTextures.d.ts +2 -3
- three/src/nodes/utils/UVUtils.d.ts +2 -3
- three/src/nodes/utils/ViewportUtils.d.ts +1 -2
- three/src/objects/InstancedMesh.d.ts +2 -3
- three/src/renderers/WebGLRenderer.d.ts +0 -25
- three/src/renderers/common/Animation.d.ts +4 -1
- three/src/renderers/common/Attributes.d.ts +1 -1
- three/src/renderers/common/Bindings.d.ts +12 -0
- three/src/renderers/common/CanvasTarget.d.ts +142 -0
- three/src/renderers/common/Geometries.d.ts +1 -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 +3 -1
- three/src/renderers/common/Renderer.d.ts +125 -37
- 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 +21 -1
- three/src/renderers/common/TimestampQueryPool.d.ts +26 -4
- three/src/renderers/common/XRManager.d.ts +10 -0
- three/src/renderers/common/extras/PMREMGenerator.d.ts +19 -1
- three/src/renderers/common/nodes/NodeLibrary.d.ts +8 -12
- three/src/renderers/common/nodes/Nodes.d.ts +13 -14
- three/src/renderers/webgpu/utils/WebGPUConstants.d.ts +6 -1
- 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 +10 -12
- three/src/textures/CubeTexture.d.ts +4 -11
- three/src/textures/Data3DTexture.d.ts +7 -11
- three/src/textures/DataArrayTexture.d.ts +10 -10
- three/src/textures/DataTexture.d.ts +6 -12
- three/src/textures/DepthTexture.d.ts +7 -8
- three/src/textures/ExternalTexture.d.ts +5 -3
- three/src/textures/FramebufferTexture.d.ts +6 -1
- three/src/textures/Source.d.ts +3 -3
- three/src/textures/Texture.d.ts +9 -9
- three/src/textures/VideoFrameTexture.d.ts +1 -1
- three/src/textures/VideoTexture.d.ts +2 -2
- three/src/utils.d.ts +18 -2
- three/examples/jsm/loaders/RGBMLoader.d.ts +0 -37
- three/src/nodes/core/CacheNode.d.ts +0 -21
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { Light } from "../../lights/Light.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
3
|
|
|
5
|
-
export function lightShadowMatrix(light: Light):
|
|
4
|
+
export function lightShadowMatrix(light: Light): Node;
|
|
6
5
|
|
|
7
|
-
export function lightProjectionUV(light: Light, position?: Node):
|
|
6
|
+
export function lightProjectionUV(light: Light, position?: Node): Node;
|
|
8
7
|
|
|
9
|
-
export function lightPosition(light: Light):
|
|
8
|
+
export function lightPosition(light: Light): Node;
|
|
10
9
|
|
|
11
|
-
export function lightTargetPosition(light: Light):
|
|
10
|
+
export function lightTargetPosition(light: Light): Node;
|
|
12
11
|
|
|
13
|
-
export function lightViewPosition(light: Light):
|
|
12
|
+
export function lightViewPosition(light: Light): Node;
|
|
14
13
|
|
|
15
|
-
export const lightTargetDirection: (light: Light) =>
|
|
14
|
+
export const lightTargetDirection: (light: Light) => Node;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Vector2 } from "../../math/Vector2.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import UniformNode from "../core/UniformNode.js";
|
|
4
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
4
|
|
|
6
5
|
export type MaterialNodeScope =
|
|
7
6
|
| typeof MaterialNode.ALPHA_TEST
|
|
@@ -87,43 +86,43 @@ export default class MaterialNode extends Node {
|
|
|
87
86
|
constructor(scope?: MaterialNodeScope);
|
|
88
87
|
}
|
|
89
88
|
|
|
90
|
-
export const materialAlphaTest:
|
|
91
|
-
export const materialColor:
|
|
92
|
-
export const materialShininess:
|
|
93
|
-
export const materialEmissive:
|
|
94
|
-
export const materialOpacity:
|
|
95
|
-
export const materialSpecular:
|
|
89
|
+
export const materialAlphaTest: MaterialNode;
|
|
90
|
+
export const materialColor: MaterialNode;
|
|
91
|
+
export const materialShininess: MaterialNode;
|
|
92
|
+
export const materialEmissive: MaterialNode;
|
|
93
|
+
export const materialOpacity: MaterialNode;
|
|
94
|
+
export const materialSpecular: MaterialNode;
|
|
96
95
|
|
|
97
|
-
export const materialSpecularIntensity:
|
|
98
|
-
export const materialSpecularColor:
|
|
96
|
+
export const materialSpecularIntensity: MaterialNode;
|
|
97
|
+
export const materialSpecularColor: MaterialNode;
|
|
99
98
|
|
|
100
|
-
export const materialSpecularStrength:
|
|
101
|
-
export const materialReflectivity:
|
|
102
|
-
export const materialRoughness:
|
|
103
|
-
export const materialMetalness:
|
|
104
|
-
export const materialNormal:
|
|
105
|
-
export const materialClearcoat:
|
|
106
|
-
export const materialClearcoatRoughness:
|
|
107
|
-
export const materialClearcoatNormal:
|
|
108
|
-
export const materialRotation:
|
|
109
|
-
export const materialSheen:
|
|
110
|
-
export const materialSheenRoughness:
|
|
111
|
-
export const materialAnisotropy:
|
|
112
|
-
export const materialIridescence:
|
|
113
|
-
export const materialIridescenceIOR:
|
|
114
|
-
export const materialIridescenceThickness:
|
|
115
|
-
export const materialTransmission:
|
|
116
|
-
export const materialThickness:
|
|
117
|
-
export const materialIOR:
|
|
118
|
-
export const materialAttenuationDistance:
|
|
119
|
-
export const materialAttenuationColor:
|
|
120
|
-
export const materialLineScale:
|
|
121
|
-
export const materialLineDashSize:
|
|
122
|
-
export const materialLineGapSize:
|
|
123
|
-
export const materialLineWidth:
|
|
124
|
-
export const materialLineDashOffset:
|
|
125
|
-
export const materialPointSize:
|
|
126
|
-
export const materialDispersion:
|
|
127
|
-
export const materialLightMap:
|
|
128
|
-
export const materialAO:
|
|
129
|
-
export const materialAnisotropyVector:
|
|
99
|
+
export const materialSpecularStrength: MaterialNode;
|
|
100
|
+
export const materialReflectivity: MaterialNode;
|
|
101
|
+
export const materialRoughness: MaterialNode;
|
|
102
|
+
export const materialMetalness: MaterialNode;
|
|
103
|
+
export const materialNormal: Node;
|
|
104
|
+
export const materialClearcoat: MaterialNode;
|
|
105
|
+
export const materialClearcoatRoughness: MaterialNode;
|
|
106
|
+
export const materialClearcoatNormal: Node;
|
|
107
|
+
export const materialRotation: MaterialNode;
|
|
108
|
+
export const materialSheen: MaterialNode;
|
|
109
|
+
export const materialSheenRoughness: MaterialNode;
|
|
110
|
+
export const materialAnisotropy: MaterialNode;
|
|
111
|
+
export const materialIridescence: MaterialNode;
|
|
112
|
+
export const materialIridescenceIOR: MaterialNode;
|
|
113
|
+
export const materialIridescenceThickness: MaterialNode;
|
|
114
|
+
export const materialTransmission: MaterialNode;
|
|
115
|
+
export const materialThickness: MaterialNode;
|
|
116
|
+
export const materialIOR: MaterialNode;
|
|
117
|
+
export const materialAttenuationDistance: MaterialNode;
|
|
118
|
+
export const materialAttenuationColor: MaterialNode;
|
|
119
|
+
export const materialLineScale: MaterialNode;
|
|
120
|
+
export const materialLineDashSize: MaterialNode;
|
|
121
|
+
export const materialLineGapSize: MaterialNode;
|
|
122
|
+
export const materialLineWidth: MaterialNode;
|
|
123
|
+
export const materialLineDashOffset: MaterialNode;
|
|
124
|
+
export const materialPointSize: MaterialNode;
|
|
125
|
+
export const materialDispersion: MaterialNode;
|
|
126
|
+
export const materialLightMap: MaterialNode;
|
|
127
|
+
export const materialAO: MaterialNode;
|
|
128
|
+
export const materialAnisotropyVector: UniformNode<Vector2>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Matrix4 } from "../../math/Matrix4.js";
|
|
2
2
|
import UniformNode from "../core/UniformNode.js";
|
|
3
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
3
|
|
|
5
|
-
export const materialRefractionRatio:
|
|
4
|
+
export const materialRefractionRatio: UniformNode<number>;
|
|
6
5
|
|
|
7
|
-
export const materialEnvIntensity:
|
|
6
|
+
export const materialEnvIntensity: UniformNode<number>;
|
|
8
7
|
|
|
9
|
-
export const materialEnvRotation:
|
|
8
|
+
export const materialEnvRotation: UniformNode<Matrix4>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Material } from "../../materials/Material.js";
|
|
2
|
-
import { NodeOrType
|
|
2
|
+
import { NodeOrType } from "../tsl/TSLCore.js";
|
|
3
3
|
import ReferenceNode from "./ReferenceNode.js";
|
|
4
4
|
|
|
5
5
|
export default class MaterialReferenceNode extends ReferenceNode<Material | null> {
|
|
@@ -12,4 +12,4 @@ export const materialReference: (
|
|
|
12
12
|
name: string,
|
|
13
13
|
nodeOrType: NodeOrType,
|
|
14
14
|
material?: Material | null,
|
|
15
|
-
) =>
|
|
15
|
+
) => MaterialReferenceNode;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Matrix4 } from "../../math/Matrix4.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import { UniformNode } from "../Nodes.js";
|
|
4
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
4
|
import Object3DNode from "./Object3DNode.js";
|
|
6
5
|
|
|
7
6
|
/**
|
|
@@ -11,23 +10,23 @@ export default class ModelNode extends Object3DNode {
|
|
|
11
10
|
constructor(scope: string);
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
export const modelDirection:
|
|
15
|
-
export const modelWorldMatrix:
|
|
16
|
-
export const modelPosition:
|
|
17
|
-
export const modelScale:
|
|
18
|
-
export const modelViewPosition:
|
|
19
|
-
export const modelRadius:
|
|
20
|
-
export const modelNormalMatrix:
|
|
21
|
-
export const modelWorldMatrixInverse:
|
|
13
|
+
export const modelDirection: ModelNode;
|
|
14
|
+
export const modelWorldMatrix: ModelNode;
|
|
15
|
+
export const modelPosition: ModelNode;
|
|
16
|
+
export const modelScale: ModelNode;
|
|
17
|
+
export const modelViewPosition: ModelNode;
|
|
18
|
+
export const modelRadius: ModelNode;
|
|
19
|
+
export const modelNormalMatrix: Node;
|
|
20
|
+
export const modelWorldMatrixInverse: UniformNode<Matrix4>;
|
|
22
21
|
|
|
23
|
-
export const modelViewMatrix:
|
|
22
|
+
export const modelViewMatrix: ModelNode;
|
|
24
23
|
|
|
25
24
|
// GPU Precision
|
|
26
25
|
|
|
27
|
-
export const mediumpModelViewMatrix:
|
|
26
|
+
export const mediumpModelViewMatrix: Node;
|
|
28
27
|
|
|
29
28
|
// CPU Precision
|
|
30
29
|
|
|
31
|
-
export const highpModelViewMatrix:
|
|
30
|
+
export const highpModelViewMatrix: Node;
|
|
32
31
|
|
|
33
|
-
export const highpModelNormalViewMatrix:
|
|
32
|
+
export const highpModelNormalViewMatrix: Node;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Mesh } from "../../objects/Mesh.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import UniformNode from "../core/UniformNode.js";
|
|
4
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
4
|
|
|
6
5
|
declare class MorphNode extends Node {
|
|
7
6
|
mesh: Mesh;
|
|
@@ -12,4 +11,4 @@ declare class MorphNode extends Node {
|
|
|
12
11
|
|
|
13
12
|
export default MorphNode;
|
|
14
13
|
|
|
15
|
-
export const morphReference: (mesh: Mesh) =>
|
|
14
|
+
export const morphReference: (mesh: Mesh) => MorphNode;
|
|
@@ -1,39 +1,38 @@
|
|
|
1
1
|
import AttributeNode from "../core/AttributeNode.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import VarNode from "../core/VarNode.js";
|
|
4
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
5
4
|
|
|
6
|
-
export const normalGeometry:
|
|
5
|
+
export const normalGeometry: AttributeNode;
|
|
7
6
|
|
|
8
|
-
export const normalLocal:
|
|
7
|
+
export const normalLocal: VarNode;
|
|
9
8
|
|
|
10
|
-
export const normalFlat:
|
|
9
|
+
export const normalFlat: VarNode;
|
|
11
10
|
|
|
12
|
-
export const normalViewGeometry:
|
|
11
|
+
export const normalViewGeometry: VarNode;
|
|
13
12
|
|
|
14
|
-
export const normalWorldGeometry:
|
|
13
|
+
export const normalWorldGeometry: VarNode;
|
|
15
14
|
|
|
16
|
-
export const normalView:
|
|
15
|
+
export const normalView: VarNode;
|
|
17
16
|
|
|
18
|
-
export const normalWorld:
|
|
17
|
+
export const normalWorld: VarNode;
|
|
19
18
|
|
|
20
|
-
export const clearcoatNormalView:
|
|
19
|
+
export const clearcoatNormalView: VarNode;
|
|
21
20
|
|
|
22
|
-
export const transformNormal: (normal: Node, matrix?: Node) =>
|
|
21
|
+
export const transformNormal: (normal: Node, matrix?: Node) => Node;
|
|
23
22
|
|
|
24
|
-
export const transformNormalToView: (normal: Node) =>
|
|
23
|
+
export const transformNormalToView: (normal: Node) => Node;
|
|
25
24
|
|
|
26
25
|
/**
|
|
27
26
|
* @deprecated since r178. Use `normalView` instead.
|
|
28
27
|
*/
|
|
29
|
-
export const transformedNormalView:
|
|
28
|
+
export const transformedNormalView: VarNode;
|
|
30
29
|
|
|
31
30
|
/**
|
|
32
31
|
* @deprecated since r178. Use `normalWorld` instead.
|
|
33
32
|
*/
|
|
34
|
-
export const transformedNormalWorld:
|
|
33
|
+
export const transformedNormalWorld: VarNode;
|
|
35
34
|
|
|
36
35
|
/**
|
|
37
36
|
* @deprecated since r178. Use `clearcoatNormalView` instead.
|
|
38
37
|
*/
|
|
39
|
-
export const transformedClearcoatNormalView:
|
|
38
|
+
export const transformedClearcoatNormalView: VarNode;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Object3D } from "../../core/Object3D.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
3
|
|
|
5
4
|
export default class Object3DNode extends Node {
|
|
6
5
|
scope: string;
|
|
@@ -16,9 +15,9 @@ export default class Object3DNode extends Node {
|
|
|
16
15
|
static RADIUS: "radius";
|
|
17
16
|
}
|
|
18
17
|
|
|
19
|
-
export const objectDirection: (object3d: Object3D | null) =>
|
|
20
|
-
export const objectWorldMatrix: (object3d: Object3D | null) =>
|
|
21
|
-
export const objectPosition: (object3d: Object3D | null) =>
|
|
22
|
-
export const objectScale: (object3d: Object3D | null) =>
|
|
23
|
-
export const objectViewPosition: (object3d: Object3D | null) =>
|
|
24
|
-
export const objectRadius: (object3d: Object3D | null) =>
|
|
18
|
+
export const objectDirection: (object3d: Object3D | null) => Object3DNode;
|
|
19
|
+
export const objectWorldMatrix: (object3d: Object3D | null) => Object3DNode;
|
|
20
|
+
export const objectPosition: (object3d: Object3D | null) => Object3DNode;
|
|
21
|
+
export const objectScale: (object3d: Object3D | null) => Object3DNode;
|
|
22
|
+
export const objectViewPosition: (object3d: Object3D | null) => Object3DNode;
|
|
23
|
+
export const objectRadius: (object3d: Object3D | null) => Object3DNode;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
2
|
|
|
4
3
|
export default class PointUVNode extends Node {
|
|
5
4
|
isPointUVNode: true;
|
|
@@ -7,4 +6,4 @@ export default class PointUVNode extends Node {
|
|
|
7
6
|
constructor();
|
|
8
7
|
}
|
|
9
8
|
|
|
10
|
-
export const pointUV:
|
|
9
|
+
export const pointUV: PointUVNode;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
2
|
|
|
4
|
-
export const positionGeometry:
|
|
5
|
-
export const positionLocal:
|
|
6
|
-
export const positionPrevious:
|
|
7
|
-
export const positionWorld:
|
|
8
|
-
export const positionWorldDirection:
|
|
9
|
-
export const positionView:
|
|
10
|
-
export const positionViewDirection:
|
|
3
|
+
export const positionGeometry: Node;
|
|
4
|
+
export const positionLocal: Node;
|
|
5
|
+
export const positionPrevious: Node;
|
|
6
|
+
export const positionWorld: Node;
|
|
7
|
+
export const positionWorldDirection: Node;
|
|
8
|
+
export const positionView: Node;
|
|
9
|
+
export const positionViewDirection: Node;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
2
|
|
|
4
3
|
declare class ReferenceBaseNode<T> extends Node {
|
|
5
4
|
property: string;
|
|
@@ -18,10 +17,10 @@ declare class ReferenceBaseNode<T> extends Node {
|
|
|
18
17
|
|
|
19
18
|
export default ReferenceBaseNode;
|
|
20
19
|
|
|
21
|
-
export const reference: <T>(name: string, type: string, object: T) =>
|
|
20
|
+
export const reference: <T>(name: string, type: string, object: T) => ReferenceBaseNode<T>;
|
|
22
21
|
export const referenceBuffer: <T>(
|
|
23
22
|
name: string,
|
|
24
23
|
type: string,
|
|
25
24
|
count: number,
|
|
26
25
|
object: T,
|
|
27
|
-
) =>
|
|
26
|
+
) => ReferenceBaseNode<T>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
2
|
|
|
4
3
|
declare class ReferenceNode<T> extends Node {
|
|
5
4
|
property: string;
|
|
@@ -20,10 +19,10 @@ declare class ReferenceNode<T> extends Node {
|
|
|
20
19
|
|
|
21
20
|
export default ReferenceNode;
|
|
22
21
|
|
|
23
|
-
export const reference: <T>(name: string, type: string, object: T) =>
|
|
22
|
+
export const reference: <T>(name: string, type: string, object: T) => ReferenceNode<T>;
|
|
24
23
|
export const referenceBuffer: <T>(
|
|
25
24
|
name: string,
|
|
26
25
|
type: string,
|
|
27
26
|
count: number,
|
|
28
27
|
object: T,
|
|
29
|
-
) =>
|
|
28
|
+
) => ReferenceNode<T>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
2
|
import VarNode from "../core/VarNode.js";
|
|
3
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
3
|
|
|
5
|
-
export const reflectView:
|
|
6
|
-
export const refractView:
|
|
4
|
+
export const reflectView: Node;
|
|
5
|
+
export const refractView: Node;
|
|
7
6
|
|
|
8
|
-
export const reflectVector:
|
|
9
|
-
export const refractVector:
|
|
7
|
+
export const reflectVector: VarNode;
|
|
8
|
+
export const refractVector: VarNode;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Renderer from "../../renderers/common/Renderer.js";
|
|
2
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
2
|
import ReferenceNode from "./ReferenceNode.js";
|
|
4
3
|
|
|
5
4
|
export default class RendererReferenceNode extends ReferenceNode<Renderer> {
|
|
@@ -12,4 +11,4 @@ export const rendererReference: (
|
|
|
12
11
|
name: string,
|
|
13
12
|
type: string,
|
|
14
13
|
renderer?: Renderer | null,
|
|
15
|
-
) =>
|
|
14
|
+
) => RendererReferenceNode;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Scene } from "../../scenes/Scene.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
3
|
|
|
5
4
|
export type SceneNodeScope = typeof SceneNode.BACKGROUND_BLURRINESS | typeof SceneNode.BACKGROUND_INTENSITY;
|
|
6
5
|
|
|
@@ -17,6 +16,6 @@ declare class SceneNode extends Node {
|
|
|
17
16
|
|
|
18
17
|
export default SceneNode;
|
|
19
18
|
|
|
20
|
-
export const backgroundBlurriness:
|
|
21
|
-
export const backgroundIntensity:
|
|
22
|
-
export const backgroundRotation:
|
|
19
|
+
export const backgroundBlurriness: SceneNode;
|
|
20
|
+
export const backgroundIntensity: SceneNode;
|
|
21
|
+
export const backgroundRotation: SceneNode;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SkinnedMesh } from "../../objects/SkinnedMesh.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
|
export default class SkinningNode extends Node {
|
|
7
6
|
skinnedMesh: SkinnedMesh;
|
|
@@ -18,14 +17,14 @@ export default class SkinningNode extends Node {
|
|
|
18
17
|
|
|
19
18
|
constructor(skinnedMesh: SkinnedMesh);
|
|
20
19
|
|
|
21
|
-
getSkinnedPosition(boneMatrices?: Node, position?: Node):
|
|
20
|
+
getSkinnedPosition(boneMatrices?: Node, position?: Node): Node;
|
|
22
21
|
|
|
23
|
-
getSkinnedNormal(boneMatrices?: Node, normal?: Node):
|
|
22
|
+
getSkinnedNormal(boneMatrices?: Node, normal?: Node): Node;
|
|
24
23
|
|
|
25
|
-
getPreviousSkinnedPosition(builder: NodeBuilder):
|
|
24
|
+
getPreviousSkinnedPosition(builder: NodeBuilder): Node;
|
|
26
25
|
|
|
27
26
|
needsPreviousBoneMatrices(builder: NodeBuilder): boolean;
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
export const skinning: (skinnedMesh: SkinnedMesh) =>
|
|
31
|
-
export const computeSkinning: (skinnedMesh: SkinnedMesh, toPosition?: Node | null) =>
|
|
29
|
+
export const skinning: (skinnedMesh: SkinnedMesh) => SkinningNode;
|
|
30
|
+
export const computeSkinning: (skinnedMesh: SkinnedMesh, toPosition?: Node | null) => SkinningNode;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { BufferAttribute } from "../../core/BufferAttribute.js";
|
|
1
2
|
import StorageBufferAttribute from "../../renderers/common/StorageBufferAttribute.js";
|
|
2
3
|
import StorageInstancedBufferAttribute from "../../renderers/common/StorageInstancedBufferAttribute.js";
|
|
3
4
|
import { NodeAccess } from "../core/constants.js";
|
|
4
5
|
import Node from "../core/Node.js";
|
|
5
6
|
import { Struct } from "../core/StructNode.js";
|
|
6
7
|
import StructTypeNode from "../core/StructTypeNode.js";
|
|
7
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
8
8
|
import StorageArrayElementNode from "../utils/StorageArrayElementNode.js";
|
|
9
9
|
import BufferNode from "./BufferNode.js";
|
|
10
10
|
|
|
@@ -25,7 +25,7 @@ export default class StorageBufferNode extends BufferNode<StorageBufferAttribute
|
|
|
25
25
|
bufferCount?: number,
|
|
26
26
|
);
|
|
27
27
|
|
|
28
|
-
element(indexNode: Node | number)
|
|
28
|
+
element: (indexNode: Node | number) => StorageArrayElementNode;
|
|
29
29
|
|
|
30
30
|
setPBO(value: boolean): this;
|
|
31
31
|
|
|
@@ -41,10 +41,10 @@ export default class StorageBufferNode extends BufferNode<StorageBufferAttribute
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export const storage: (
|
|
44
|
-
value: StorageBufferAttribute | StorageInstancedBufferAttribute,
|
|
44
|
+
value: StorageBufferAttribute | StorageInstancedBufferAttribute | BufferAttribute,
|
|
45
45
|
type?: string | Struct | null,
|
|
46
46
|
count?: number,
|
|
47
|
-
) =>
|
|
47
|
+
) => StorageBufferNode;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* @deprecated
|
|
@@ -53,4 +53,4 @@ export const storageObject: (
|
|
|
53
53
|
value: StorageBufferAttribute | StorageInstancedBufferAttribute,
|
|
54
54
|
type?: string | Struct | null,
|
|
55
55
|
count?: number,
|
|
56
|
-
) =>
|
|
56
|
+
) => StorageBufferNode;
|
|
@@ -2,24 +2,27 @@ import { Texture } from "../../textures/Texture.js";
|
|
|
2
2
|
import { NodeAccess } from "../core/constants.js";
|
|
3
3
|
import Node from "../core/Node.js";
|
|
4
4
|
import NodeBuilder from "../core/NodeBuilder.js";
|
|
5
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
6
5
|
import TextureNode from "./TextureNode.js";
|
|
7
6
|
|
|
8
7
|
export default class StorageTextureNode extends TextureNode {
|
|
9
8
|
storeNode: Node | null;
|
|
10
9
|
|
|
10
|
+
mipLevel: number;
|
|
11
|
+
|
|
11
12
|
readonly isStorageTextureNode: true;
|
|
12
13
|
|
|
13
14
|
access: NodeAccess;
|
|
14
15
|
|
|
15
16
|
constructor(
|
|
16
17
|
value: Texture,
|
|
17
|
-
uvNode?:
|
|
18
|
+
uvNode?: Node | null,
|
|
18
19
|
storeNode?: Node | null,
|
|
19
20
|
);
|
|
20
21
|
|
|
21
22
|
setAccess(value: NodeAccess): this;
|
|
22
23
|
|
|
24
|
+
setMipLevel(level: number): this;
|
|
25
|
+
|
|
23
26
|
toReadWrite(): this;
|
|
24
27
|
|
|
25
28
|
toReadOnly(): this;
|
|
@@ -33,10 +36,10 @@ export const storageTexture: (
|
|
|
33
36
|
value: Texture,
|
|
34
37
|
uvNode?: Node | null,
|
|
35
38
|
storeNode?: Node,
|
|
36
|
-
) =>
|
|
39
|
+
) => StorageTextureNode;
|
|
37
40
|
|
|
38
41
|
export const textureStore: (
|
|
39
42
|
value: Texture,
|
|
40
43
|
uvNode?: Node | null,
|
|
41
44
|
storeNode?: Node,
|
|
42
|
-
) =>
|
|
45
|
+
) => StorageTextureNode;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import AttributeNode from "../core/AttributeNode.js";
|
|
2
|
-
import VarNode from "../core/VarNode.js";
|
|
3
2
|
import VaryingNode from "../core/VaryingNode.js";
|
|
4
3
|
import MathNode from "../math/MathNode.js";
|
|
5
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
6
4
|
|
|
7
|
-
export const tangentGeometry:
|
|
8
|
-
export const tangentLocal:
|
|
9
|
-
export const tangentView:
|
|
10
|
-
export const tangentWorld:
|
|
5
|
+
export const tangentGeometry: AttributeNode;
|
|
6
|
+
export const tangentLocal: VaryingNode;
|
|
7
|
+
export const tangentView: MathNode;
|
|
8
|
+
export const tangentWorld: MathNode;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* Tangent vector in view space, computed dynamically from geometry and UV derivatives.
|
|
@@ -9,7 +8,7 @@ import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
|
9
8
|
*
|
|
10
9
|
* @tsl
|
|
11
10
|
*/
|
|
12
|
-
export const tangentViewFrame:
|
|
11
|
+
export const tangentViewFrame: Node;
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* Bitangent vector in view space, computed dynamically from geometry and UV derivatives.
|
|
@@ -19,4 +18,4 @@ export const tangentViewFrame: ShaderNodeObject<Node>;
|
|
|
19
18
|
*
|
|
20
19
|
* @tsl
|
|
21
20
|
*/
|
|
22
|
-
export const bitangentViewFrame:
|
|
21
|
+
export const bitangentViewFrame: Node;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { Texture } from "../../textures/Texture.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
4
3
|
import TextureNode from "./TextureNode.js";
|
|
5
4
|
|
|
6
5
|
export default class Texture3DNode extends TextureNode {
|
|
7
6
|
readonly isTexture3DNode: true;
|
|
8
7
|
|
|
9
|
-
constructor(value: Texture, uvNode?:
|
|
8
|
+
constructor(value: Texture, uvNode?: Node | null, levelNode?: Node | null);
|
|
10
9
|
|
|
11
|
-
normal(uvNode: Node):
|
|
10
|
+
normal(uvNode: Node): Node;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export const texture3D: (
|
|
15
14
|
value: Texture,
|
|
16
15
|
uvNode?: Node | null,
|
|
17
16
|
levelNode?: Node | number | null,
|
|
18
|
-
) =>
|
|
17
|
+
) => Texture3DNode;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import Node from "../core/Node.js";
|
|
2
|
-
import { ShaderNodeObject } from "../tsl/TSLCore.js";
|
|
3
2
|
|
|
4
|
-
export const textureBicubicLevel: (textureNode: Node, lodNode: Node) =>
|
|
3
|
+
export const textureBicubicLevel: (textureNode: Node, lodNode: Node) => Node;
|
|
5
4
|
|
|
6
|
-
export const textureBicubic: (textureNode: Node, strength: Node) =>
|
|
5
|
+
export const textureBicubic: (textureNode: Node, strength: Node) => Node;
|