@nativescript/canvas-three 2.0.0-webgpu.25 → 2.0.0-webgpu.27
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.
- package/package.json +2 -3
- package/three/src/Three.Legacy.d.ts +20 -0
- package/three/src/Three.WebGPU.d.ts +195 -0
- package/three/src/Three.d.ts +213 -0
- package/three/src/animation/AnimationAction.d.ts +86 -0
- package/three/src/animation/AnimationClip.d.ts +59 -0
- package/three/src/animation/AnimationMixer.d.ts +39 -0
- package/three/src/animation/AnimationObjectGroup.d.ts +17 -0
- package/three/src/animation/AnimationUtils.d.ts +60 -0
- package/three/src/animation/KeyframeTrack.d.ts +55 -0
- package/three/src/animation/PropertyBinding.d.ts +43 -0
- package/three/src/animation/PropertyMixer.d.ts +17 -0
- package/three/src/animation/tracks/BooleanKeyframeTrack.d.ts +10 -0
- package/three/src/animation/tracks/ColorKeyframeTrack.d.ts +11 -0
- package/three/src/animation/tracks/NumberKeyframeTrack.d.ts +11 -0
- package/three/src/animation/tracks/QuaternionKeyframeTrack.d.ts +11 -0
- package/three/src/animation/tracks/StringKeyframeTrack.d.ts +10 -0
- package/three/src/animation/tracks/VectorKeyframeTrack.d.ts +11 -0
- package/three/src/audio/Audio.d.ts +270 -0
- package/three/src/audio/AudioAnalyser.d.ts +58 -0
- package/three/src/audio/AudioContext.d.ts +19 -0
- package/three/src/audio/AudioListener.d.ts +96 -0
- package/three/src/audio/PositionalAudio.d.ts +101 -0
- package/three/src/cameras/ArrayCamera.d.ts +32 -0
- package/three/src/cameras/Camera.d.ts +74 -0
- package/three/src/cameras/CubeCamera.d.ts +68 -0
- package/three/src/cameras/OrthographicCamera.d.ts +174 -0
- package/three/src/cameras/PerspectiveCamera.d.ts +254 -0
- package/three/src/cameras/StereoCamera.d.ts +50 -0
- package/three/src/constants.d.ts +926 -0
- package/three/src/core/BufferAttribute.d.ts +637 -0
- package/three/src/core/BufferGeometry.d.ts +422 -0
- package/three/src/core/Clock.d.ts +72 -0
- package/three/src/core/EventDispatcher.d.ts +85 -0
- package/three/src/core/GLBufferAttribute.d.ts +121 -0
- package/three/src/core/InstancedBufferAttribute.d.ts +32 -0
- package/three/src/core/InstancedBufferGeometry.d.ts +37 -0
- package/three/src/core/InstancedInterleavedBuffer.d.ts +22 -0
- package/three/src/core/InterleavedBuffer.d.ts +162 -0
- package/three/src/core/InterleavedBufferAttribute.d.ts +201 -0
- package/three/src/core/Layers.d.ts +72 -0
- package/three/src/core/Object3D.d.ts +672 -0
- package/three/src/core/Raycaster.d.ts +207 -0
- package/three/src/core/RenderTarget.d.ts +96 -0
- package/three/src/core/Uniform.d.ts +38 -0
- package/three/src/core/UniformsGroup.d.ts +33 -0
- package/three/src/extras/DataUtils.d.ts +22 -0
- package/three/src/extras/Earcut.d.ts +15 -0
- package/three/src/extras/ImageUtils.d.ts +32 -0
- package/three/src/extras/PMREMGenerator.d.ts +82 -0
- package/three/src/extras/ShapeUtils.d.ts +25 -0
- package/three/src/extras/TextureUtils.d.ts +42 -0
- package/three/src/extras/core/Curve.d.ts +162 -0
- package/three/src/extras/core/CurvePath.d.ts +77 -0
- package/three/src/extras/core/Interpolations.d.ts +36 -0
- package/three/src/extras/core/Path.d.ts +166 -0
- package/three/src/extras/core/Shape.d.ts +86 -0
- package/three/src/extras/core/ShapePath.d.ts +98 -0
- package/three/src/extras/curves/ArcCurve.d.ts +41 -0
- package/three/src/extras/curves/CatmullRomCurve3.d.ts +77 -0
- package/three/src/extras/curves/CubicBezierCurve.d.ts +72 -0
- package/three/src/extras/curves/CubicBezierCurve3.d.ts +72 -0
- package/three/src/extras/curves/Curves.d.ts +10 -0
- package/three/src/extras/curves/EllipseCurve.d.ts +115 -0
- package/three/src/extras/curves/LineCurve.d.ts +42 -0
- package/three/src/extras/curves/LineCurve3.d.ts +42 -0
- package/three/src/extras/curves/QuadraticBezierCurve.d.ts +64 -0
- package/three/src/extras/curves/QuadraticBezierCurve3.d.ts +64 -0
- package/three/src/extras/curves/SplineCurve.d.ts +52 -0
- package/three/src/geometries/BoxGeometry.d.ts +59 -0
- package/three/src/geometries/CapsuleGeometry.d.ts +48 -0
- package/three/src/geometries/CircleGeometry.d.ts +51 -0
- package/three/src/geometries/ConeGeometry.d.ts +64 -0
- package/three/src/geometries/CylinderGeometry.d.ts +64 -0
- package/three/src/geometries/DodecahedronGeometry.d.ts +25 -0
- package/three/src/geometries/EdgesGeometry.d.ts +41 -0
- package/three/src/geometries/ExtrudeGeometry.d.ts +152 -0
- package/three/src/geometries/Geometries.d.ts +21 -0
- package/three/src/geometries/IcosahedronGeometry.d.ts +26 -0
- package/three/src/geometries/LatheGeometry.d.ts +55 -0
- package/three/src/geometries/OctahedronGeometry.d.ts +25 -0
- package/three/src/geometries/PlaneGeometry.d.ts +48 -0
- package/three/src/geometries/PolyhedronGeometry.d.ts +54 -0
- package/three/src/geometries/RingGeometry.d.ts +59 -0
- package/three/src/geometries/ShapeGeometry.d.ts +53 -0
- package/three/src/geometries/SphereGeometry.d.ts +67 -0
- package/three/src/geometries/TetrahedronGeometry.d.ts +25 -0
- package/three/src/geometries/TorusGeometry.d.ts +49 -0
- package/three/src/geometries/TorusKnotGeometry.d.ts +59 -0
- package/three/src/geometries/TubeGeometry.d.ts +86 -0
- package/three/src/geometries/WireframeGeometry.d.ts +40 -0
- package/three/src/helpers/ArrowHelper.d.ts +93 -0
- package/three/src/helpers/AxesHelper.d.ts +50 -0
- package/three/src/helpers/Box3Helper.d.ts +44 -0
- package/three/src/helpers/BoxHelper.d.ts +64 -0
- package/three/src/helpers/CameraHelper.d.ts +80 -0
- package/three/src/helpers/DirectionalLightHelper.d.ts +81 -0
- package/three/src/helpers/GridHelper.d.ts +47 -0
- package/three/src/helpers/HemisphereLightHelper.d.ts +72 -0
- package/three/src/helpers/PlaneHelper.d.ts +50 -0
- package/three/src/helpers/PointLightHelper.d.ts +73 -0
- package/three/src/helpers/PolarGridHelper.d.ts +55 -0
- package/three/src/helpers/SkeletonHelper.d.ts +78 -0
- package/three/src/helpers/SpotLightHelper.d.ts +77 -0
- package/three/src/lights/AmbientLight.d.ts +36 -0
- package/three/src/lights/DirectionalLight.d.ts +103 -0
- package/three/src/lights/DirectionalLightShadow.d.ts +73 -0
- package/three/src/lights/HemisphereLight.d.ts +61 -0
- package/three/src/lights/Light.d.ts +82 -0
- package/three/src/lights/LightProbe.d.ts +47 -0
- package/three/src/lights/LightShadow.d.ts +169 -0
- package/three/src/lights/PointLight.d.ts +102 -0
- package/three/src/lights/PointLightShadow.d.ts +22 -0
- package/three/src/lights/RectAreaLight.d.ts +82 -0
- package/three/src/lights/SpotLight.d.ts +164 -0
- package/three/src/lights/SpotLightShadow.d.ts +72 -0
- package/three/src/lights/webgpu/IESSpotLight.d.ts +6 -0
- package/three/src/loaders/AnimationLoader.d.ts +9 -0
- package/three/src/loaders/AudioLoader.d.ts +6 -0
- package/three/src/loaders/BufferGeometryLoader.d.ts +10 -0
- package/three/src/loaders/Cache.d.ts +21 -0
- package/three/src/loaders/CompressedTextureLoader.d.ts +14 -0
- package/three/src/loaders/CubeTextureLoader.d.ts +14 -0
- package/three/src/loaders/DataTextureLoader.d.ts +14 -0
- package/three/src/loaders/FileLoader.d.ts +19 -0
- package/three/src/loaders/ImageBitmapLoader.d.ts +22 -0
- package/three/src/loaders/ImageLoader.d.ts +17 -0
- package/three/src/loaders/Loader.d.ts +50 -0
- package/three/src/loaders/LoaderUtils.d.ts +10 -0
- package/three/src/loaders/LoadingManager.d.ts +69 -0
- package/three/src/loaders/MaterialLoader.d.ts +19 -0
- package/three/src/loaders/ObjectLoader.d.ts +35 -0
- package/three/src/loaders/TextureLoader.d.ts +18 -0
- package/three/src/materials/LineBasicMaterial.d.ts +60 -0
- package/three/src/materials/LineDashedMaterial.d.ts +40 -0
- package/three/src/materials/Material.d.ts +627 -0
- package/three/src/materials/Materials.d.ts +18 -0
- package/three/src/materials/MeshBasicMaterial.d.ts +139 -0
- package/three/src/materials/MeshDepthMaterial.d.ts +76 -0
- package/three/src/materials/MeshDistanceMaterial.d.ts +62 -0
- package/three/src/materials/MeshLambertMaterial.d.ts +204 -0
- package/three/src/materials/MeshMatcapMaterial.d.ts +117 -0
- package/three/src/materials/MeshNormalMaterial.d.ts +93 -0
- package/three/src/materials/MeshPhongMaterial.d.ts +228 -0
- package/three/src/materials/MeshPhysicalMaterial.d.ts +236 -0
- package/three/src/materials/MeshStandardMaterial.d.ts +218 -0
- package/three/src/materials/MeshToonMaterial.d.ts +178 -0
- package/three/src/materials/PointsMaterial.d.ts +61 -0
- package/three/src/materials/RawShaderMaterial.d.ts +14 -0
- package/three/src/materials/ShaderMaterial.d.ts +167 -0
- package/three/src/materials/ShadowMaterial.d.ts +39 -0
- package/three/src/materials/SpriteMaterial.d.ts +66 -0
- package/three/src/math/Box2.d.ts +48 -0
- package/three/src/math/Box3.d.ts +66 -0
- package/three/src/math/Color.d.ts +358 -0
- package/three/src/math/ColorManagement.d.ts +49 -0
- package/three/src/math/Cylindrical.d.ts +26 -0
- package/three/src/math/Euler.d.ts +50 -0
- package/three/src/math/Frustum.d.ts +30 -0
- package/three/src/math/Interpolant.d.ts +10 -0
- package/three/src/math/Line3.d.ts +29 -0
- package/three/src/math/MathUtils.d.ts +137 -0
- package/three/src/math/Matrix2.d.ts +53 -0
- package/three/src/math/Matrix3.d.ts +184 -0
- package/three/src/math/Matrix4.d.ts +284 -0
- package/three/src/math/Plane.d.ts +47 -0
- package/three/src/math/Quaternion.d.ts +188 -0
- package/three/src/math/Ray.d.ts +60 -0
- package/three/src/math/Sphere.d.ts +47 -0
- package/three/src/math/Spherical.d.ts +27 -0
- package/three/src/math/SphericalHarmonics3.d.ts +50 -0
- package/three/src/math/Triangle.d.ts +86 -0
- package/three/src/math/Vector2.d.ts +321 -0
- package/three/src/math/Vector3.d.ts +301 -0
- package/three/src/math/Vector4.d.ts +239 -0
- package/three/src/math/interpolants/CubicInterpolant.d.ts +7 -0
- package/three/src/math/interpolants/DiscreteInterpolant.d.ts +7 -0
- package/three/src/math/interpolants/LinearInterpolant.d.ts +7 -0
- package/three/src/math/interpolants/QuaternionLinearInterpolant.d.ts +7 -0
- package/three/src/nodes/Nodes.d.ts +421 -0
- package/three/src/nodes/accessors/AccessorsUtils.d.ts +9 -0
- package/three/src/nodes/accessors/BatchNode.d.ts +14 -0
- package/three/src/nodes/accessors/BitangentNode.d.ts +9 -0
- package/three/src/nodes/accessors/BufferAttributeNode.d.ts +53 -0
- package/three/src/nodes/accessors/BufferNode.d.ts +17 -0
- package/three/src/nodes/accessors/CameraNode.d.ts +15 -0
- package/three/src/nodes/accessors/ClippingNode.d.ts +16 -0
- package/three/src/nodes/accessors/CubeTextureNode.d.ts +34 -0
- package/three/src/nodes/accessors/InstanceNode.d.ts +13 -0
- package/three/src/nodes/accessors/MaterialNode.d.ts +130 -0
- package/three/src/nodes/accessors/MaterialReferenceNode.d.ts +13 -0
- package/three/src/nodes/accessors/ModelNode.d.ts +20 -0
- package/three/src/nodes/accessors/ModelViewProjectionNode.d.ts +8 -0
- package/three/src/nodes/accessors/NormalNode.d.ts +12 -0
- package/three/src/nodes/accessors/Object3DNode.d.ts +26 -0
- package/three/src/nodes/accessors/PointUVNode.d.ts +10 -0
- package/three/src/nodes/accessors/PositionNode.d.ts +9 -0
- package/three/src/nodes/accessors/ReferenceNode.d.ts +27 -0
- package/three/src/nodes/accessors/ReflectVectorNode.d.ts +9 -0
- package/three/src/nodes/accessors/RendererReferenceNode.d.ts +15 -0
- package/three/src/nodes/accessors/SkinningNode.d.ts +20 -0
- package/three/src/nodes/accessors/StorageBufferNode.d.ts +38 -0
- package/three/src/nodes/accessors/StorageTextureNode.d.ts +40 -0
- package/three/src/nodes/accessors/TangentNode.d.ts +12 -0
- package/three/src/nodes/accessors/Texture3DNode.d.ts +17 -0
- package/three/src/nodes/accessors/TextureBicubicNode.d.ts +18 -0
- package/three/src/nodes/accessors/TextureNode.d.ts +47 -0
- package/three/src/nodes/accessors/UVNode.d.ts +4 -0
- package/three/src/nodes/accessors/UniformsNode.d.ts +23 -0
- package/three/src/nodes/accessors/UserDataNode.d.ts +15 -0
- package/three/src/nodes/accessors/VertexColorNode.d.ts +12 -0
- package/three/src/nodes/code/CodeNode.d.ts +23 -0
- package/three/src/nodes/code/ExpressionNode.d.ts +9 -0
- package/three/src/nodes/code/FunctionCallNode.d.ts +25 -0
- package/three/src/nodes/code/FunctionNode.d.ts +39 -0
- package/three/src/nodes/core/AssignNode.d.ts +18 -0
- package/three/src/nodes/core/AttributeNode.d.ts +19 -0
- package/three/src/nodes/core/BypassNode.d.ts +18 -0
- package/three/src/nodes/core/CacheNode.d.ts +20 -0
- package/three/src/nodes/core/ConstNode.d.ts +9 -0
- package/three/src/nodes/core/ContextNode.d.ts +21 -0
- package/three/src/nodes/core/IndexNode.d.ts +20 -0
- package/three/src/nodes/core/InputNode.d.ts +15 -0
- package/three/src/nodes/core/LightingModel.d.ts +46 -0
- package/three/src/nodes/core/MRTNode.d.ts +19 -0
- package/three/src/nodes/core/Node.d.ts +114 -0
- package/three/src/nodes/core/NodeAttribute.d.ts +9 -0
- package/three/src/nodes/core/NodeBuilder.d.ts +143 -0
- package/three/src/nodes/core/NodeCache.d.ts +52 -0
- package/three/src/nodes/core/NodeCode.d.ts +4 -0
- package/three/src/nodes/core/NodeFrame.d.ts +34 -0
- package/three/src/nodes/core/NodeFunction.d.ts +13 -0
- package/three/src/nodes/core/NodeFunctionInput.d.ts +7 -0
- package/three/src/nodes/core/NodeKeywords.d.ts +17 -0
- package/three/src/nodes/core/NodeParser.d.ts +5 -0
- package/three/src/nodes/core/NodeUniform.d.ts +14 -0
- package/three/src/nodes/core/NodeUtils.d.ts +21 -0
- package/three/src/nodes/core/NodeVar.d.ts +7 -0
- package/three/src/nodes/core/NodeVarying.d.ts +7 -0
- package/three/src/nodes/core/OutputStructNode.d.ts +12 -0
- package/three/src/nodes/core/PropertyNode.d.ts +43 -0
- package/three/src/nodes/core/StackNode.d.ts +17 -0
- package/three/src/nodes/core/StructTypeNode.d.ts +8 -0
- package/three/src/nodes/core/TempNode.d.ts +10 -0
- package/three/src/nodes/core/UniformGroup.d.ts +7 -0
- package/three/src/nodes/core/UniformGroupNode.d.ts +21 -0
- package/three/src/nodes/core/UniformNode.d.ts +23 -0
- package/three/src/nodes/core/VarNode.d.ts +28 -0
- package/three/src/nodes/core/VaryingNode.d.ts +21 -0
- package/three/src/nodes/core/constants.d.ts +27 -0
- package/three/src/nodes/display/AfterImageNode.d.ts +25 -0
- package/three/src/nodes/display/AnamorphicNode.d.ts +31 -0
- package/three/src/nodes/display/BlendModeNode.d.ts +47 -0
- package/three/src/nodes/display/BloomNode.d.ts +35 -0
- package/three/src/nodes/display/ColorAdjustmentNode.d.ts +47 -0
- package/three/src/nodes/display/ColorSpaceNode.d.ts +35 -0
- package/three/src/nodes/display/DenoiseNode.d.ts +38 -0
- package/three/src/nodes/display/DepthOfFieldNode.d.ts +30 -0
- package/three/src/nodes/display/DotScreenNode.d.ts +27 -0
- package/three/src/nodes/display/FXAANode.d.ts +19 -0
- package/three/src/nodes/display/FilmNode.d.ts +25 -0
- package/three/src/nodes/display/FrontFacingNode.d.ts +10 -0
- package/three/src/nodes/display/GTAONode.d.ts +46 -0
- package/three/src/nodes/display/GaussianBlurNode.d.ts +31 -0
- package/three/src/nodes/display/Lut3DNode.d.ts +30 -0
- package/three/src/nodes/display/NormalMapNode.d.ts +21 -0
- package/three/src/nodes/display/PassNode.d.ts +62 -0
- package/three/src/nodes/display/PixelationPassNode.d.ts +67 -0
- package/three/src/nodes/display/PosterizeNode.d.ts +20 -0
- package/three/src/nodes/display/RGBShiftNode.d.ts +24 -0
- package/three/src/nodes/display/RenderOutputNode.d.ts +28 -0
- package/three/src/nodes/display/SobelOperatorNode.d.ts +17 -0
- package/three/src/nodes/display/ToneMappingNode.d.ts +33 -0
- package/three/src/nodes/display/TransitionNode.d.ts +41 -0
- package/three/src/nodes/display/ViewportDepthNode.d.ts +30 -0
- package/three/src/nodes/display/ViewportDepthTextureNode.d.ts +12 -0
- package/three/src/nodes/display/ViewportNode.d.ts +31 -0
- package/three/src/nodes/display/ViewportSharedTextureNode.d.ts +18 -0
- package/three/src/nodes/display/ViewportTextureNode.d.ts +33 -0
- package/three/src/nodes/fog/FogExp2Node.d.ts +18 -0
- package/three/src/nodes/fog/FogNode.d.ts +24 -0
- package/three/src/nodes/fog/FogRangeNode.d.ts +23 -0
- package/three/src/nodes/functions/BSDF/BRDF_GGX.d.ts +15 -0
- package/three/src/nodes/functions/BSDF/BRDF_Lambert.d.ts +7 -0
- package/three/src/nodes/functions/BSDF/BRDF_Sheen.d.ts +7 -0
- package/three/src/nodes/functions/BSDF/DFGApprox.d.ts +11 -0
- package/three/src/nodes/functions/BSDF/D_GGX.d.ts +10 -0
- package/three/src/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +10 -0
- package/three/src/nodes/functions/BSDF/F_Schlick.d.ts +7 -0
- package/three/src/nodes/functions/BSDF/LTC.d.ts +9 -0
- package/three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +11 -0
- package/three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +16 -0
- package/three/src/nodes/functions/BasicLightingModel.d.ts +7 -0
- package/three/src/nodes/functions/PhongLightingModel.d.ts +7 -0
- package/three/src/nodes/functions/PhysicalLightingModel.d.ts +30 -0
- package/three/src/nodes/functions/ShadowMaskModel.d.ts +9 -0
- package/three/src/nodes/functions/ToonLightingModel.d.ts +4 -0
- package/three/src/nodes/functions/material/getGeometryRoughness.d.ts +6 -0
- package/three/src/nodes/functions/material/getRoughness.d.ts +7 -0
- package/three/src/nodes/geometry/RangeNode.d.ts +19 -0
- package/three/src/nodes/gpgpu/ComputeNode.d.ts +24 -0
- package/three/src/nodes/lighting/AONode.d.ts +8 -0
- package/three/src/nodes/lighting/AnalyticLightNode.d.ts +8 -0
- package/three/src/nodes/lighting/BasicEnvironmentNode.d.ts +10 -0
- package/three/src/nodes/lighting/BasicLightMapNode.d.ts +8 -0
- package/three/src/nodes/lighting/EnvironmentNode.d.ts +8 -0
- package/three/src/nodes/lighting/HemisphereLightNode.d.ts +13 -0
- package/three/src/nodes/lighting/IrradianceNode.d.ts +8 -0
- package/three/src/nodes/lighting/LightUtils.d.ts +9 -0
- package/three/src/nodes/lighting/LightingContextNode.d.ts +27 -0
- package/three/src/nodes/lighting/LightingNode.d.ts +7 -0
- package/three/src/nodes/lighting/LightsNode.d.ts +22 -0
- package/three/src/nodes/lighting/PointLightNode.d.ts +10 -0
- package/three/src/nodes/lighting/RectAreaLightNode.d.ts +21 -0
- package/three/src/nodes/lighting/SpotLightNode.d.ts +15 -0
- package/three/src/nodes/loaders/NodeLoader.d.ts +16 -0
- package/three/src/nodes/loaders/NodeMaterialLoader.d.ts +8 -0
- package/three/src/nodes/loaders/NodeObjectLoader.d.ts +10 -0
- package/three/src/nodes/materials/Line2NodeMaterial.d.ts +53 -0
- package/three/src/nodes/materials/LineBasicNodeMaterial.d.ts +22 -0
- package/three/src/nodes/materials/Materials.d.ts +15 -0
- package/three/src/nodes/materials/MeshBasicNodeMaterial.d.ts +36 -0
- package/three/src/nodes/materials/MeshMatcapNodeMaterial.d.ts +32 -0
- package/three/src/nodes/materials/MeshNormalNodeMaterial.d.ts +28 -0
- package/three/src/nodes/materials/MeshPhongNodeMaterial.d.ts +56 -0
- package/three/src/nodes/materials/MeshPhysicalNodeMaterial.d.ts +90 -0
- package/three/src/nodes/materials/MeshSSSNodeMaterial.d.ts +16 -0
- package/three/src/nodes/materials/MeshStandardNodeMaterial.d.ts +56 -0
- package/three/src/nodes/materials/MeshToonNodeMaterial.d.ts +42 -0
- package/three/src/nodes/materials/NodeMaterial.d.ts +124 -0
- package/three/src/nodes/materials/PointsNodeMaterial.d.ts +22 -0
- package/three/src/nodes/materials/ShadowNodeMaterial.d.ts +17 -0
- package/three/src/nodes/materials/SpriteNodeMaterial.d.ts +26 -0
- package/three/src/nodes/materials/VolumeNodeMaterial.d.ts +10 -0
- package/three/src/nodes/materialx/MaterialXNodes.d.ts +107 -0
- package/three/src/nodes/materialx/lib/mx_hsv.d.ts +6 -0
- package/three/src/nodes/materialx/lib/mx_noise.d.ts +359 -0
- package/three/src/nodes/materialx/lib/mx_transform_color.d.ts +4 -0
- package/three/src/nodes/math/CondNode.d.ts +22 -0
- package/three/src/nodes/math/HashNode.d.ts +16 -0
- package/three/src/nodes/math/MathNode.d.ts +273 -0
- package/three/src/nodes/math/MathUtils.d.ts +16 -0
- package/three/src/nodes/math/OperatorNode.d.ts +83 -0
- package/three/src/nodes/math/TriNoise3D.d.ts +12 -0
- package/three/src/nodes/pmrem/PMREMNode.d.ts +20 -0
- package/three/src/nodes/procedural/CheckerNode.d.ts +15 -0
- package/three/src/nodes/shadernode/ShaderNode.d.ts +273 -0
- package/three/src/nodes/utils/ArrayElementNode.d.ts +9 -0
- package/three/src/nodes/utils/ConvertNode.d.ts +7 -0
- package/three/src/nodes/utils/DiscardNode.d.ts +17 -0
- package/three/src/nodes/utils/EquirectUVNode.d.ts +8 -0
- package/three/src/nodes/utils/JoinNode.d.ts +10 -0
- package/three/src/nodes/utils/MatcapUVNode.d.ts +8 -0
- package/three/src/nodes/utils/MaxMipLevelNode.d.ts +14 -0
- package/three/src/nodes/utils/OscNode.d.ts +25 -0
- package/three/src/nodes/utils/PackingNode.d.ts +24 -0
- package/three/src/nodes/utils/RTTNode.d.ts +45 -0
- package/three/src/nodes/utils/ReflectorNode.d.ts +32 -0
- package/three/src/nodes/utils/RemapNode.d.ts +36 -0
- package/three/src/nodes/utils/RotateNode.d.ts +21 -0
- package/three/src/nodes/utils/RotateUVNode.d.ts +19 -0
- package/three/src/nodes/utils/SplitNode.d.ts +15 -0
- package/three/src/nodes/utils/SpriteSheetUVNode.d.ts +16 -0
- package/three/src/nodes/utils/StoargeArrayElementNode.d.ts +25 -0
- package/three/src/nodes/utils/TimerNode.d.ts +25 -0
- package/three/src/nodes/utils/TriplanarTexturesNode.d.ts +42 -0
- package/three/src/objects/BatchedMesh.d.ts +197 -0
- package/three/src/objects/Bone.d.ts +36 -0
- package/three/src/objects/Group.d.ts +43 -0
- package/three/src/objects/InstancedMesh.d.ts +179 -0
- package/three/src/objects/LOD.d.ts +104 -0
- package/three/src/objects/Line.d.ts +87 -0
- package/three/src/objects/LineLoop.d.ts +40 -0
- package/three/src/objects/LineSegments.d.ts +41 -0
- package/three/src/objects/Mesh.d.ts +94 -0
- package/three/src/objects/Points.d.ts +66 -0
- package/three/src/objects/Skeleton.d.ts +120 -0
- package/three/src/objects/SkinnedMesh.d.ts +160 -0
- package/three/src/objects/Sprite.d.ts +65 -0
- package/three/src/renderers/WebGL3DRenderTarget.d.ts +29 -0
- package/three/src/renderers/WebGLArrayRenderTarget.d.ts +29 -0
- package/three/src/renderers/WebGLCubeRenderTarget.d.ts +18 -0
- package/three/src/renderers/WebGLRenderTarget.d.ts +8 -0
- package/three/src/renderers/WebGLRenderer.d.ts +562 -0
- package/three/src/renderers/common/Animation.d.ts +13 -0
- package/three/src/renderers/common/Attributes.d.ts +22 -0
- package/three/src/renderers/common/Backend.d.ts +19 -0
- package/three/src/renderers/common/Background.d.ts +23 -0
- package/three/src/renderers/common/BindGroup.d.ts +9 -0
- package/three/src/renderers/common/Binding.d.ts +8 -0
- package/three/src/renderers/common/Bindings.d.ts +42 -0
- package/three/src/renderers/common/Buffer.d.ts +11 -0
- package/three/src/renderers/common/BufferUtils.d.ts +4 -0
- package/three/src/renderers/common/ChainMap.d.ts +9 -0
- package/three/src/renderers/common/ClippingContext.d.ts +23 -0
- package/three/src/renderers/common/Color4.d.ts +10 -0
- package/three/src/renderers/common/ComputePipeline.d.ts +8 -0
- package/three/src/renderers/common/Constants.d.ts +9 -0
- package/three/src/renderers/common/CubeRenderTarget.d.ts +10 -0
- package/three/src/renderers/common/DataMap.d.ts +20 -0
- package/three/src/renderers/common/Geometries.d.ts +31 -0
- package/three/src/renderers/common/Info.d.ts +34 -0
- package/three/src/renderers/common/Pipeline.d.ts +6 -0
- package/three/src/renderers/common/Pipelines.d.ts +68 -0
- package/three/src/renderers/common/PostProcessing.d.ts +21 -0
- package/three/src/renderers/common/ProgrammableStage.d.ts +15 -0
- package/three/src/renderers/common/QuadMesh.d.ts +14 -0
- package/three/src/renderers/common/RenderBundle.d.ts +9 -0
- package/three/src/renderers/common/RenderBundles.d.ts +11 -0
- package/three/src/renderers/common/RenderContext.d.ts +41 -0
- package/three/src/renderers/common/RenderContexts.d.ts +15 -0
- package/three/src/renderers/common/RenderList.d.ts +66 -0
- package/three/src/renderers/common/RenderLists.d.ts +11 -0
- package/three/src/renderers/common/RenderObject.d.ts +76 -0
- package/three/src/renderers/common/RenderObjects.d.ts +62 -0
- package/three/src/renderers/common/RenderPipeline.d.ts +8 -0
- package/three/src/renderers/common/Renderer.d.ts +277 -0
- package/three/src/renderers/common/SampledTexture.d.ts +27 -0
- package/three/src/renderers/common/Sampler.d.ts +11 -0
- package/three/src/renderers/common/StorageBufferAttribute.d.ts +7 -0
- package/three/src/renderers/common/StorageInstancedBufferAttribute.d.ts +8 -0
- package/three/src/renderers/common/StorageTexture.d.ts +5 -0
- package/three/src/renderers/common/Textures.d.ts +67 -0
- package/three/src/renderers/common/Uniform.d.ts +45 -0
- package/three/src/renderers/common/UniformBuffer.d.ts +6 -0
- package/three/src/renderers/common/UniformsGroup.d.ts +32 -0
- package/three/src/renderers/common/extras/PMREMGenerator.d.ts +9 -0
- package/three/src/renderers/common/nodes/NodeBuilderState.d.ts +30 -0
- package/three/src/renderers/common/nodes/NodeSampledTexture.d.ts +29 -0
- package/three/src/renderers/common/nodes/NodeSampler.d.ts +12 -0
- package/three/src/renderers/common/nodes/NodeUniform.d.ts +68 -0
- package/three/src/renderers/common/nodes/NodeUniformsGroup.d.ts +10 -0
- package/three/src/renderers/common/nodes/Nodes.d.ts +108 -0
- package/three/src/renderers/shaders/ShaderChunk.d.ts +143 -0
- package/three/src/renderers/shaders/ShaderLib.d.ts +29 -0
- package/three/src/renderers/shaders/UniformsLib.d.ts +189 -0
- package/three/src/renderers/shaders/UniformsUtils.d.ts +14 -0
- package/three/src/renderers/webgl/WebGLAttributes.d.ts +21 -0
- package/three/src/renderers/webgl/WebGLBindingStates.d.ts +26 -0
- package/three/src/renderers/webgl/WebGLBufferRenderer.d.ts +21 -0
- package/three/src/renderers/webgl/WebGLCapabilities.d.ts +35 -0
- package/three/src/renderers/webgl/WebGLClipping.d.ts +26 -0
- package/three/src/renderers/webgl/WebGLCubeMaps.d.ts +8 -0
- package/three/src/renderers/webgl/WebGLCubeUVMaps.d.ts +9 -0
- package/three/src/renderers/webgl/WebGLExtensions.d.ts +7 -0
- package/three/src/renderers/webgl/WebGLGeometries.d.ts +13 -0
- package/three/src/renderers/webgl/WebGLIndexedBufferRenderer.d.ts +15 -0
- package/three/src/renderers/webgl/WebGLInfo.d.ts +39 -0
- package/three/src/renderers/webgl/WebGLLights.d.ts +49 -0
- package/three/src/renderers/webgl/WebGLObjects.d.ts +6 -0
- package/three/src/renderers/webgl/WebGLProgram.d.ts +30 -0
- package/three/src/renderers/webgl/WebGLPrograms.d.ts +239 -0
- package/three/src/renderers/webgl/WebGLProperties.d.ts +8 -0
- package/three/src/renderers/webgl/WebGLRenderLists.d.ts +66 -0
- package/three/src/renderers/webgl/WebGLShader.d.ts +1 -0
- package/three/src/renderers/webgl/WebGLShadowMap.d.ts +38 -0
- package/three/src/renderers/webgl/WebGLState.d.ts +116 -0
- package/three/src/renderers/webgl/WebGLTextures.d.ts +30 -0
- package/three/src/renderers/webgl/WebGLUniforms.d.ts +12 -0
- package/three/src/renderers/webgl/WebGLUniformsGroups.d.ts +17 -0
- package/three/src/renderers/webgl/WebGLUtils.d.ts +11 -0
- package/three/src/renderers/webgl-fallback/WebGLBackend.d.ts +14 -0
- package/three/src/renderers/webgpu/WebGPUBackend.d.ts +21 -0
- package/three/src/renderers/webgpu/WebGPURenderer.d.ts +10 -0
- package/three/src/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +125 -0
- package/three/src/renderers/webgpu/nodes/WGSLNodeFunction.d.ts +6 -0
- package/three/src/renderers/webgpu/nodes/WGSLNodeParser.d.ts +6 -0
- package/three/src/renderers/webgpu/utils/WebGPUConstants.d.ts +328 -0
- package/three/src/renderers/webxr/WebXRController.d.ts +63 -0
- package/three/src/renderers/webxr/WebXRDepthSensing.d.ts +22 -0
- package/three/src/renderers/webxr/WebXRManager.d.ts +87 -0
- package/three/src/scenes/Fog.d.ts +77 -0
- package/three/src/scenes/FogExp2.d.ts +66 -0
- package/three/src/scenes/Scene.d.ts +118 -0
- package/three/src/textures/CanvasTexture.d.ts +51 -0
- package/three/src/textures/CompressedArrayTexture.d.ts +68 -0
- package/three/src/textures/CompressedCubeTexture.d.ts +13 -0
- package/three/src/textures/CompressedTexture.d.ts +95 -0
- package/three/src/textures/CubeTexture.d.ts +90 -0
- package/three/src/textures/Data3DTexture.d.ts +96 -0
- package/three/src/textures/DataArrayTexture.d.ts +123 -0
- package/three/src/textures/DataTexture.d.ts +113 -0
- package/three/src/textures/DepthTexture.d.ts +104 -0
- package/three/src/textures/FramebufferTexture.d.ts +62 -0
- package/three/src/textures/Source.d.ts +75 -0
- package/three/src/textures/Texture.d.ts +477 -0
- package/three/src/textures/VideoTexture.d.ts +90 -0
- package/three/src/textures/types.d.ts +9 -0
- package/three/src/utils.d.ts +3 -0
- package/three/three.webgpu.d.ts +1 -0
- package/three.webgpu.d.ts +1 -0
- package/three.webgpu.js +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Light } from "../../lights/Light.js";
|
|
2
|
+
import Node from "../core/Node.js";
|
|
3
|
+
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
4
|
+
import LightingNode from "./LightingNode.js";
|
|
5
|
+
|
|
6
|
+
export default class LightsNode extends Node {
|
|
7
|
+
lightNodes: LightingNode[];
|
|
8
|
+
|
|
9
|
+
constructor(lightNodes?: LightingNode[]);
|
|
10
|
+
|
|
11
|
+
get hasLight(): boolean;
|
|
12
|
+
getLightNodeByHash(hash: string): LightingNode | null;
|
|
13
|
+
|
|
14
|
+
fromLights(lights: Light[]): this;
|
|
15
|
+
|
|
16
|
+
static setReference<T extends Light>(
|
|
17
|
+
lightClass: { new(): T },
|
|
18
|
+
lightNodeClass: { new(light: T): LightingNode },
|
|
19
|
+
): void;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const lights: (lights: Light[]) => ShaderNodeObject<LightsNode>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PointLight } from "../../lights/PointLight.js";
|
|
2
|
+
import Node from "../core/Node.js";
|
|
3
|
+
import AnalyticLightNode from "./AnalyticLightNode.js";
|
|
4
|
+
|
|
5
|
+
export default class PointLightNode extends AnalyticLightNode<PointLight> {
|
|
6
|
+
cutoffDistanceNode: Node;
|
|
7
|
+
decayExponentNode: Node;
|
|
8
|
+
|
|
9
|
+
constructor(light?: PointLight | null);
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RectAreaLight } from "../../lights/RectAreaLight.js";
|
|
2
|
+
import { DataTexture } from "../../textures/DataTexture.js";
|
|
3
|
+
import Node from "../core/Node.js";
|
|
4
|
+
import AnalyticLightNode from "./AnalyticLightNode.js";
|
|
5
|
+
|
|
6
|
+
export interface RectAreaLightTexturesLib {
|
|
7
|
+
LTC_HALF_1: DataTexture;
|
|
8
|
+
LTC_HALF_2: DataTexture;
|
|
9
|
+
|
|
10
|
+
LTC_FLOAT_1: DataTexture;
|
|
11
|
+
LTC_FLOAT_2: DataTexture;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default class RectAreaLightNode extends AnalyticLightNode<RectAreaLight> {
|
|
15
|
+
halfHeight: Node;
|
|
16
|
+
halfWidth: Node;
|
|
17
|
+
|
|
18
|
+
constructor(light?: RectAreaLight | null);
|
|
19
|
+
|
|
20
|
+
static setLTC(ltc: RectAreaLightTexturesLib): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SpotLight } from "../../lights/SpotLight.js";
|
|
2
|
+
import Node from "../core/Node.js";
|
|
3
|
+
import AnalyticLightNode from "./AnalyticLightNode.js";
|
|
4
|
+
|
|
5
|
+
export default class PointLightNode extends AnalyticLightNode<SpotLight> {
|
|
6
|
+
directionNode: Node;
|
|
7
|
+
|
|
8
|
+
coneCosNode: Node;
|
|
9
|
+
penumbraCosNode: Node;
|
|
10
|
+
|
|
11
|
+
cutoffDistanceNode: Node;
|
|
12
|
+
decayExponentNode: Node;
|
|
13
|
+
|
|
14
|
+
constructor(light?: SpotLight | null);
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Loader } from "../../loaders/Loader.js";
|
|
2
|
+
import { LoadingManager } from "../../loaders/LoadingManager.js";
|
|
3
|
+
import { Texture } from "../../textures/Texture.js";
|
|
4
|
+
import { Node } from "../Nodes.js";
|
|
5
|
+
|
|
6
|
+
export interface NodeLoaderResult {
|
|
7
|
+
[hash: string]: Node;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default class NodeLoader extends Loader<NodeLoaderResult> {
|
|
11
|
+
constructor(manager?: LoadingManager);
|
|
12
|
+
|
|
13
|
+
parseNodes(json: unknown): NodeLoaderResult;
|
|
14
|
+
parse(json: unknown): Node;
|
|
15
|
+
setTextures(textures: { [key: string]: Texture }): this;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ObjectLoader } from "../../loaders/ObjectLoader.js";
|
|
2
|
+
import { Material } from "../../materials/Material.js";
|
|
3
|
+
import { Texture } from "../../textures/Texture.js";
|
|
4
|
+
import { NodeLoaderResult } from "./NodeLoader.js";
|
|
5
|
+
|
|
6
|
+
export default class NodeObjectLoader extends ObjectLoader {
|
|
7
|
+
parseNodes(json: unknown, textures: { [key: string]: Texture }): NodeLoaderResult;
|
|
8
|
+
|
|
9
|
+
parseMaterials(json: unknown, textures: { [key: string]: Texture }): { [key: string]: Material };
|
|
10
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { LineDashedMaterialParameters } from "../../materials/LineDashedMaterial.js";
|
|
2
|
+
import { Color } from "../../math/Color.js";
|
|
3
|
+
import { Texture } from "../../textures/Texture.js";
|
|
4
|
+
import Node from "../core/Node.js";
|
|
5
|
+
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
6
|
+
|
|
7
|
+
export interface Line2NodeMaterialParameters extends NodeMaterialParameters, LineDashedMaterialParameters {
|
|
8
|
+
dashed?: boolean | undefined;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default class Line2NodeMaterial extends NodeMaterial {
|
|
12
|
+
lights: boolean;
|
|
13
|
+
|
|
14
|
+
// Properties from LineDashedMaterial
|
|
15
|
+
readonly isLineDashedMaterial: true;
|
|
16
|
+
scale: number;
|
|
17
|
+
dashSize: number;
|
|
18
|
+
gapSize: number;
|
|
19
|
+
|
|
20
|
+
// Properties from LineBasicMaterial
|
|
21
|
+
readonly isLineBasicMaterial: true;
|
|
22
|
+
color: Color;
|
|
23
|
+
fog: boolean;
|
|
24
|
+
linewidth: number;
|
|
25
|
+
linecap: string;
|
|
26
|
+
linejoin: string;
|
|
27
|
+
map: Texture | null;
|
|
28
|
+
|
|
29
|
+
useAlphaToCoverage: boolean;
|
|
30
|
+
useColor: boolean;
|
|
31
|
+
useDash: boolean;
|
|
32
|
+
useWorldUnits: boolean;
|
|
33
|
+
|
|
34
|
+
dashOffset: number;
|
|
35
|
+
lineWidth: number;
|
|
36
|
+
|
|
37
|
+
lineColorNode: Node | null;
|
|
38
|
+
|
|
39
|
+
offsetNode: Node | null;
|
|
40
|
+
dashScaleNode: Node | null;
|
|
41
|
+
dashSizeNode: Node | null;
|
|
42
|
+
gapSizeNode: Node | null;
|
|
43
|
+
|
|
44
|
+
constructor(parameters?: Line2NodeMaterialParameters);
|
|
45
|
+
|
|
46
|
+
setupShaders(): void;
|
|
47
|
+
|
|
48
|
+
get worldUnits(): boolean;
|
|
49
|
+
set worldUnits(value: boolean);
|
|
50
|
+
|
|
51
|
+
get dashed(): boolean;
|
|
52
|
+
set dashed(value: boolean);
|
|
53
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LineBasicMaterialParameters } from "../../materials/LineBasicMaterial.js";
|
|
2
|
+
import { Color } from "../../math/Color.js";
|
|
3
|
+
import { Texture } from "../../textures/Texture.js";
|
|
4
|
+
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
5
|
+
|
|
6
|
+
export interface LineBasicNodeMaterialParameters extends NodeMaterialParameters, LineBasicMaterialParameters {
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export default class LineBasicNodeMaterial extends NodeMaterial {
|
|
10
|
+
readonly isLineBasicNodeMaterial: true;
|
|
11
|
+
|
|
12
|
+
// Properties from LineBasicMaterial
|
|
13
|
+
readonly isLineBasicMaterial: true;
|
|
14
|
+
color: Color;
|
|
15
|
+
fog: boolean;
|
|
16
|
+
linewidth: number;
|
|
17
|
+
linecap: string;
|
|
18
|
+
linejoin: string;
|
|
19
|
+
map: Texture | null;
|
|
20
|
+
|
|
21
|
+
constructor(parameters?: LineBasicNodeMaterialParameters);
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { default as Line2NodeMaterial } from "./Line2NodeMaterial.js";
|
|
2
|
+
export { default as LineBasicNodeMaterial } from "./LineBasicNodeMaterial.js";
|
|
3
|
+
export { default as MeshBasicNodeMaterial } from "./MeshBasicNodeMaterial.js";
|
|
4
|
+
export { default as MeshMatcapNodeMaterial } from "./MeshMatcapNodeMaterial.js";
|
|
5
|
+
export { default as MeshNormalNodeMaterial } from "./MeshNormalNodeMaterial.js";
|
|
6
|
+
export { default as MeshPhongNodeMaterial } from "./MeshPhongNodeMaterial.js";
|
|
7
|
+
export { default as MeshPhysicalNodeMaterial } from "./MeshPhysicalNodeMaterial.js";
|
|
8
|
+
export { default as MeshSSSPhysicalNodeMaterial } from "./MeshSSSNodeMaterial.js";
|
|
9
|
+
export { default as MeshStandardNodeMaterial } from "./MeshStandardNodeMaterial.js";
|
|
10
|
+
export { default as MeshToonNodeMaterial } from "./MeshToonNodeMaterial.js";
|
|
11
|
+
export { addNodeMaterial, createNodeMaterialFromType, default as NodeMaterial } from "./NodeMaterial.js";
|
|
12
|
+
export { default as PointsNodeMaterial } from "./PointsNodeMaterial.js";
|
|
13
|
+
export { default as ShadowNodeMaterial } from "./ShadowNodeMaterial.js";
|
|
14
|
+
export { default as SpriteNodeMaterial } from "./SpriteNodeMaterial.js";
|
|
15
|
+
export { default as VolumeNodeMaterial } from "./VolumeNodeMaterial.js";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Combine } from "../../constants.js";
|
|
2
|
+
import { MeshBasicMaterialParameters } from "../../materials/MeshBasicMaterial.js";
|
|
3
|
+
import { Color } from "../../math/Color.js";
|
|
4
|
+
import { Euler } from "../../math/Euler.js";
|
|
5
|
+
import { Texture } from "../../textures/Texture.js";
|
|
6
|
+
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
7
|
+
|
|
8
|
+
export interface MeshBasicNodeMaterialParameters extends NodeMaterialParameters, MeshBasicMaterialParameters {
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default class MeshBasicNodeMaterial extends NodeMaterial {
|
|
12
|
+
readonly isMeshBasicNodeMaterial: true;
|
|
13
|
+
|
|
14
|
+
// Properties from MeshBasicMaterial
|
|
15
|
+
readonly isMeshBasicMaterial: true;
|
|
16
|
+
color: Color;
|
|
17
|
+
map: Texture | null;
|
|
18
|
+
lightMap: Texture | null;
|
|
19
|
+
lightMapIntensity: number;
|
|
20
|
+
aoMap: Texture | null;
|
|
21
|
+
aoMapIntensity: number;
|
|
22
|
+
specularMap: Texture | null;
|
|
23
|
+
alphaMap: Texture | null;
|
|
24
|
+
envMap: Texture | null;
|
|
25
|
+
envMapRotation: Euler;
|
|
26
|
+
combine: Combine;
|
|
27
|
+
reflectivity: number;
|
|
28
|
+
refractionRatio: number;
|
|
29
|
+
wireframe: boolean;
|
|
30
|
+
wireframeLinewidth: number;
|
|
31
|
+
wireframeLinecap: string;
|
|
32
|
+
wireframeLinejoin: string;
|
|
33
|
+
fog: boolean;
|
|
34
|
+
|
|
35
|
+
constructor(parameters?: MeshBasicNodeMaterialParameters);
|
|
36
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { NormalMapTypes } from "../../constants.js";
|
|
2
|
+
import { MeshMatcapMaterialParameters } from "../../materials/MeshMatcapMaterial.js";
|
|
3
|
+
import { Color } from "../../math/Color.js";
|
|
4
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
5
|
+
import { Texture } from "../../textures/Texture.js";
|
|
6
|
+
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
7
|
+
|
|
8
|
+
export interface MeshMatcapNodeMaterialParameters extends NodeMaterialParameters, MeshMatcapMaterialParameters {
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default class MeshMatcapNodeMaterial extends NodeMaterial {
|
|
12
|
+
readonly isMeshMatcapNodeMaterial: true;
|
|
13
|
+
|
|
14
|
+
// Properties from MeshMatcapMaterial
|
|
15
|
+
readonly isMeshMatcapMaterial: true;
|
|
16
|
+
color: Color;
|
|
17
|
+
matcap: Texture | null;
|
|
18
|
+
map: Texture | null;
|
|
19
|
+
bumpMap: Texture | null;
|
|
20
|
+
bumpScale: number;
|
|
21
|
+
normalMap: Texture | null;
|
|
22
|
+
normalMapType: NormalMapTypes;
|
|
23
|
+
normalScale: Vector2;
|
|
24
|
+
displacementMap: Texture | null;
|
|
25
|
+
displacementScale: number;
|
|
26
|
+
displacementBias: number;
|
|
27
|
+
alphaMap: Texture | null;
|
|
28
|
+
flatShading: boolean;
|
|
29
|
+
fog: boolean;
|
|
30
|
+
|
|
31
|
+
constructor(paramters: MeshMatcapNodeMaterialParameters);
|
|
32
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { NormalMapTypes } from "../../constants.js";
|
|
2
|
+
import { MeshNormalMaterialParameters } from "../../materials/MeshNormalMaterial.js";
|
|
3
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
4
|
+
import { Texture } from "../../textures/Texture.js";
|
|
5
|
+
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
6
|
+
|
|
7
|
+
export interface MeshBasicNodeMaterialParameters extends NodeMaterialParameters, MeshNormalMaterialParameters {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default class MeshNormalNodeMaterial extends NodeMaterial {
|
|
11
|
+
readonly isMeshNormalNodeMaterial: true;
|
|
12
|
+
|
|
13
|
+
// Properties from MeshNormalMaterial
|
|
14
|
+
readonly isMeshNormalMaterial: true;
|
|
15
|
+
bumpMap: Texture | null;
|
|
16
|
+
bumpScale: number;
|
|
17
|
+
normalMap: Texture | null;
|
|
18
|
+
normalMapType: NormalMapTypes;
|
|
19
|
+
normalScale: Vector2;
|
|
20
|
+
displacementMap: Texture | null;
|
|
21
|
+
displacementScale: number;
|
|
22
|
+
displacementBias: number;
|
|
23
|
+
wireframe: boolean;
|
|
24
|
+
wireframeLinewidth: number;
|
|
25
|
+
flatShading: boolean;
|
|
26
|
+
|
|
27
|
+
constructor(parameters?: MeshBasicNodeMaterialParameters);
|
|
28
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Combine, NormalMapTypes } from "../../constants.js";
|
|
2
|
+
import { MeshPhongMaterialParameters } from "../../materials/MeshPhongMaterial.js";
|
|
3
|
+
import { Color } from "../../math/Color.js";
|
|
4
|
+
import { Euler } from "../../math/Euler.js";
|
|
5
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
6
|
+
import { Texture } from "../../textures/Texture.js";
|
|
7
|
+
import Node from "../core/Node.js";
|
|
8
|
+
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
9
|
+
|
|
10
|
+
export interface MeshPhongNodeMaterialParameters extends NodeMaterialParameters, MeshPhongMaterialParameters {
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default class MeshPhongNodeMaterial extends NodeMaterial {
|
|
14
|
+
readonly isMeshPhongNodeMaterial: true;
|
|
15
|
+
|
|
16
|
+
shininessNode: Node | null;
|
|
17
|
+
specularNode: Node | null;
|
|
18
|
+
|
|
19
|
+
// Properties from MeshPhongMaterial
|
|
20
|
+
readonly isMeshPhongMaterial: true;
|
|
21
|
+
color: Color;
|
|
22
|
+
specular: Color;
|
|
23
|
+
shininess: number;
|
|
24
|
+
map: Texture | null;
|
|
25
|
+
lightMap: Texture | null;
|
|
26
|
+
lightMapIntensity: number;
|
|
27
|
+
aoMap: Texture | null;
|
|
28
|
+
aoMapIntensity: number;
|
|
29
|
+
emissive: Color;
|
|
30
|
+
emissiveIntensity: number;
|
|
31
|
+
emissiveMap: Texture | null;
|
|
32
|
+
bumpMap: Texture | null;
|
|
33
|
+
bumpScale: number;
|
|
34
|
+
normalMap: Texture | null;
|
|
35
|
+
normalMapType: NormalMapTypes;
|
|
36
|
+
normalScale: Vector2;
|
|
37
|
+
displacementMap: Texture | null;
|
|
38
|
+
displacementScale: number;
|
|
39
|
+
displacementBias: number;
|
|
40
|
+
specularMap: Texture | null;
|
|
41
|
+
alphaMap: Texture | null;
|
|
42
|
+
envMap: Texture | null;
|
|
43
|
+
envMapRotation: Euler;
|
|
44
|
+
combine: Combine;
|
|
45
|
+
reflectivity: number;
|
|
46
|
+
refractionRatio: number;
|
|
47
|
+
wireframe: boolean;
|
|
48
|
+
wireframeLinewidth: number;
|
|
49
|
+
wireframeLinecap: string;
|
|
50
|
+
wireframeLinejoin: string;
|
|
51
|
+
flatShading: boolean;
|
|
52
|
+
metal: boolean;
|
|
53
|
+
fog: boolean;
|
|
54
|
+
|
|
55
|
+
constructor(parameters?: MeshPhongNodeMaterialParameters);
|
|
56
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { MeshPhysicalMaterialParameters } from "../../materials/MeshPhysicalMaterial.js";
|
|
2
|
+
import { Color } from "../../math/Color.js";
|
|
3
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
4
|
+
import { Texture } from "../../textures/Texture.js";
|
|
5
|
+
import Node from "../core/Node.js";
|
|
6
|
+
import MeshStandardNodeMaterial, { MeshStandardNodeMaterialParameters } from "./MeshStandardNodeMaterial.js";
|
|
7
|
+
|
|
8
|
+
export interface MeshPhysicalNodeMaterialParameters
|
|
9
|
+
extends MeshStandardNodeMaterialParameters, MeshPhysicalMaterialParameters
|
|
10
|
+
{
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default class MeshPhysicalNodeMaterial extends MeshStandardNodeMaterial {
|
|
14
|
+
readonly isMeshPhysicalNodeMaterial: true;
|
|
15
|
+
|
|
16
|
+
clearcoatNode: Node | null;
|
|
17
|
+
clearcoatRoughnessNode: Node | null;
|
|
18
|
+
clearcoatNormalNode: Node | null;
|
|
19
|
+
|
|
20
|
+
sheenNode: Node | null;
|
|
21
|
+
sheenRoughnessNode: Node | null;
|
|
22
|
+
|
|
23
|
+
iridescenceNode: Node | null;
|
|
24
|
+
iridescenceIORNode: Node | null;
|
|
25
|
+
iridescenceThicknessNode: Node | null;
|
|
26
|
+
|
|
27
|
+
iorNode: Node | null;
|
|
28
|
+
|
|
29
|
+
specularIntensityNode: Node | null;
|
|
30
|
+
specularColorNode: Node | null;
|
|
31
|
+
|
|
32
|
+
transmissionNode: Node | null;
|
|
33
|
+
thicknessNode: Node | null;
|
|
34
|
+
attenuationDistanceNode: Node | null;
|
|
35
|
+
attenuationColorNode: Node | null;
|
|
36
|
+
dispersionNode: Node | null;
|
|
37
|
+
|
|
38
|
+
anisotropyNode: Node | null;
|
|
39
|
+
|
|
40
|
+
// Properties from MeshPhysicalMaterial
|
|
41
|
+
readonly isMeshPhysicalMaterial: true;
|
|
42
|
+
anisotropyRotation: number;
|
|
43
|
+
anisotropyMap: Texture | null;
|
|
44
|
+
clearcoatMap: Texture | null;
|
|
45
|
+
clearcoatRoughness: number;
|
|
46
|
+
clearcoatRoughnessMap: Texture | null;
|
|
47
|
+
clearcoatNormalScale: Vector2;
|
|
48
|
+
clearcoatNormalMap: Texture | null;
|
|
49
|
+
ior: number;
|
|
50
|
+
get reflectivity(): number;
|
|
51
|
+
set reflectivity(reflectivity: number);
|
|
52
|
+
iridescenceMap: Texture | null;
|
|
53
|
+
iridescenceIOR: number;
|
|
54
|
+
iridescenceThicknessRange: [number, number];
|
|
55
|
+
iridescenceThicknessMap: Texture | null;
|
|
56
|
+
sheenColor: Color;
|
|
57
|
+
sheenColorMap: Texture | null;
|
|
58
|
+
sheenRoughness: number;
|
|
59
|
+
sheenRoughnessMap: Texture | null;
|
|
60
|
+
transmissionMap: Texture | null;
|
|
61
|
+
thickness: number;
|
|
62
|
+
thicknessMap: Texture | null;
|
|
63
|
+
attenuationDistance: number;
|
|
64
|
+
attenuationColor: Color;
|
|
65
|
+
specularIntensity: number;
|
|
66
|
+
specularIntensityMap: Texture | null;
|
|
67
|
+
specularColor: Color;
|
|
68
|
+
specularColorMap: Texture | null;
|
|
69
|
+
get anisotropy(): number;
|
|
70
|
+
set anisotropy(value: number);
|
|
71
|
+
get clearcoat(): number;
|
|
72
|
+
set clearcoat(value: number);
|
|
73
|
+
get iridescence(): number;
|
|
74
|
+
set iridescence(value: number);
|
|
75
|
+
get dispersion(): number;
|
|
76
|
+
set dispersion(value: number);
|
|
77
|
+
get sheen(): number;
|
|
78
|
+
set sheen(value: number);
|
|
79
|
+
get transmission(): number;
|
|
80
|
+
set transmission(value: number);
|
|
81
|
+
|
|
82
|
+
constructor(parameters?: MeshPhysicalNodeMaterialParameters);
|
|
83
|
+
|
|
84
|
+
get useClearcoat(): boolean;
|
|
85
|
+
get useIridescence(): boolean;
|
|
86
|
+
get useSheen(): boolean;
|
|
87
|
+
get useAnisotropy(): boolean;
|
|
88
|
+
get useTransmission(): boolean;
|
|
89
|
+
get useDispersion(): boolean;
|
|
90
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import ConstNode from "../core/ConstNode.js";
|
|
2
|
+
import Node from "../core/Node.js";
|
|
3
|
+
import MeshPhysicalNodeMaterial, { MeshPhysicalNodeMaterialParameters } from "./MeshPhysicalNodeMaterial.js";
|
|
4
|
+
|
|
5
|
+
export default class MeshSSSNodeMaterial extends MeshPhysicalNodeMaterial {
|
|
6
|
+
thicknessColorNode: Node | null;
|
|
7
|
+
thicknessDistortionNode: ConstNode<number>;
|
|
8
|
+
thicknessAmbientNode: ConstNode<number>;
|
|
9
|
+
thicknessAttenuationNode: ConstNode<number>;
|
|
10
|
+
thicknessPowerNode: ConstNode<number>;
|
|
11
|
+
thicknessScaleNode: ConstNode<number>;
|
|
12
|
+
|
|
13
|
+
constructor(parameters?: MeshPhysicalNodeMaterialParameters);
|
|
14
|
+
|
|
15
|
+
get useSSS(): boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { NormalMapTypes } from "../../constants.js";
|
|
2
|
+
import { MeshStandardMaterialParameters } from "../../materials/MeshStandardMaterial.js";
|
|
3
|
+
import { Color } from "../../math/Color.js";
|
|
4
|
+
import { Euler } from "../../math/Euler.js";
|
|
5
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
6
|
+
import { Texture } from "../../textures/Texture.js";
|
|
7
|
+
import Node from "../core/Node.js";
|
|
8
|
+
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
9
|
+
|
|
10
|
+
export interface MeshStandardNodeMaterialParameters extends NodeMaterialParameters, MeshStandardMaterialParameters {
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default class MeshStandardNodeMaterial extends NodeMaterial {
|
|
14
|
+
readonly isMeshStandardNodeMaterial: true;
|
|
15
|
+
|
|
16
|
+
emissiveNode: Node | null;
|
|
17
|
+
|
|
18
|
+
metalnessNode: Node | null;
|
|
19
|
+
roughnessNode: Node | null;
|
|
20
|
+
|
|
21
|
+
// Properties from MeshStandardMaterial
|
|
22
|
+
readonly isMeshStandardMaterial: true;
|
|
23
|
+
color: Color;
|
|
24
|
+
roughness: number;
|
|
25
|
+
metalness: number;
|
|
26
|
+
map: Texture | null;
|
|
27
|
+
lightMap: Texture | null;
|
|
28
|
+
lightMapIntensity: number;
|
|
29
|
+
aoMap: Texture | null;
|
|
30
|
+
aoMapIntensity: number;
|
|
31
|
+
emissive: Color;
|
|
32
|
+
emissiveIntensity: number;
|
|
33
|
+
emissiveMap: Texture | null;
|
|
34
|
+
bumpMap: Texture | null;
|
|
35
|
+
bumpScale: number;
|
|
36
|
+
normalMap: Texture | null;
|
|
37
|
+
normalMapType: NormalMapTypes;
|
|
38
|
+
normalScale: Vector2;
|
|
39
|
+
displacementMap: Texture | null;
|
|
40
|
+
displacementScale: number;
|
|
41
|
+
displacementBias: number;
|
|
42
|
+
roughnessMap: Texture | null;
|
|
43
|
+
metalnessMap: Texture | null;
|
|
44
|
+
alphaMap: Texture | null;
|
|
45
|
+
envMap: Texture | null;
|
|
46
|
+
envMapRotation: Euler;
|
|
47
|
+
envMapIntensity: number;
|
|
48
|
+
wireframe: boolean;
|
|
49
|
+
wireframeLinewidth: number;
|
|
50
|
+
wireframeLinecap: string;
|
|
51
|
+
wireframeLinejoin: string;
|
|
52
|
+
flatShading: boolean;
|
|
53
|
+
fog: boolean;
|
|
54
|
+
|
|
55
|
+
constructor(paramters?: MeshStandardNodeMaterialParameters);
|
|
56
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { NormalMapTypes } from "../../constants.js";
|
|
2
|
+
import { MeshToonMaterialParameters } from "../../materials/MeshToonMaterial.js";
|
|
3
|
+
import { Color } from "../../math/Color.js";
|
|
4
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
5
|
+
import { Texture } from "../../textures/Texture.js";
|
|
6
|
+
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
7
|
+
|
|
8
|
+
export interface MeshToonNodeMaterialParameters extends NodeMaterialParameters, MeshToonMaterialParameters {
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default class MeshToonNodeMaterial extends NodeMaterial {
|
|
12
|
+
readonly isMeshToonNodeMaterial: true;
|
|
13
|
+
|
|
14
|
+
// Properties from MeshToonMaterial
|
|
15
|
+
readonly isMeshToonMaterial: true;
|
|
16
|
+
color: Color;
|
|
17
|
+
gradientMap: Texture | null;
|
|
18
|
+
map: Texture | null;
|
|
19
|
+
lightMap: Texture | null;
|
|
20
|
+
lightMapIntensity: number;
|
|
21
|
+
aoMap: Texture | null;
|
|
22
|
+
aoMapIntensity: number;
|
|
23
|
+
emissive: Color;
|
|
24
|
+
emissiveIntensity: number;
|
|
25
|
+
emissiveMap: Texture | null;
|
|
26
|
+
bumpMap: Texture | null;
|
|
27
|
+
bumpScale: number;
|
|
28
|
+
normalMap: Texture | null;
|
|
29
|
+
normalMapType: NormalMapTypes;
|
|
30
|
+
normalScale: Vector2;
|
|
31
|
+
displacementMap: Texture | null;
|
|
32
|
+
displacementScale: number;
|
|
33
|
+
displacementBias: number;
|
|
34
|
+
alphaMap: Texture | null;
|
|
35
|
+
wireframe: boolean;
|
|
36
|
+
wireframeLinewidth: number;
|
|
37
|
+
wireframeLinecap: string;
|
|
38
|
+
wireframeLinejoin: string;
|
|
39
|
+
fog: boolean;
|
|
40
|
+
|
|
41
|
+
constructor(paramters: MeshToonNodeMaterialParameters);
|
|
42
|
+
}
|