@plastic-software/three 0.175.14 → 0.179.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.
- package/README.md +4 -4
- package/build/three.cjs +8402 -6787
- package/build/three.core.js +8007 -6688
- package/build/three.core.min.js +1 -1
- package/build/three.module.js +397 -102
- package/build/three.module.min.js +1 -1
- package/build/three.tsl.js +84 -27
- package/build/three.tsl.min.js +1 -1
- package/build/three.webgpu.js +6831 -2838
- package/build/three.webgpu.min.js +1 -1
- package/build/three.webgpu.nodes.js +6648 -2838
- package/build/three.webgpu.nodes.min.js +1 -1
- package/examples/jsm/Addons.js +1 -3
- package/examples/jsm/animation/AnimationClipCreator.js +1 -0
- package/examples/jsm/animation/CCDIKSolver.js +6 -3
- package/examples/jsm/capabilities/WebGL.js +1 -27
- package/examples/jsm/capabilities/WebGPU.js +2 -1
- package/examples/jsm/controls/ArcballControls.js +15 -4
- package/examples/jsm/controls/DragControls.js +1 -0
- package/examples/jsm/controls/FirstPersonControls.js +1 -0
- package/examples/jsm/controls/FlyControls.js +1 -0
- package/examples/jsm/controls/MapControls.js +1 -0
- package/examples/jsm/controls/OrbitControls.js +1 -0
- package/examples/jsm/controls/PointerLockControls.js +5 -3
- package/examples/jsm/controls/TrackballControls.js +1 -0
- package/examples/jsm/controls/TransformControls.js +62 -14
- package/examples/jsm/csm/CSM.js +2 -0
- package/examples/jsm/csm/CSMFrustum.js +2 -0
- package/examples/jsm/csm/CSMHelper.js +1 -0
- package/examples/jsm/csm/CSMShader.js +4 -1
- package/examples/jsm/csm/CSMShadowNode.js +22 -8
- package/examples/jsm/curves/CurveExtras.js +14 -0
- package/examples/jsm/curves/NURBSCurve.js +1 -0
- package/examples/jsm/curves/NURBSSurface.js +2 -0
- package/examples/jsm/curves/NURBSUtils.js +4 -1
- package/examples/jsm/curves/NURBSVolume.js +2 -0
- package/examples/jsm/effects/AnaglyphEffect.js +2 -0
- package/examples/jsm/effects/AsciiEffect.js +2 -0
- package/examples/jsm/effects/OutlineEffect.js +2 -0
- package/examples/jsm/effects/ParallaxBarrierEffect.js +2 -0
- package/examples/jsm/effects/StereoEffect.js +2 -0
- package/examples/jsm/environments/DebugEnvironment.js +1 -0
- package/examples/jsm/environments/RoomEnvironment.js +57 -38
- package/examples/jsm/exporters/DRACOExporter.js +4 -2
- package/examples/jsm/exporters/EXRExporter.js +2 -0
- package/examples/jsm/exporters/GLTFExporter.js +7 -4
- package/examples/jsm/exporters/KTX2Exporter.js +2 -0
- package/examples/jsm/exporters/OBJExporter.js +3 -1
- package/examples/jsm/exporters/PLYExporter.js +4 -2
- package/examples/jsm/exporters/STLExporter.js +2 -0
- package/examples/jsm/exporters/USDZExporter.js +679 -300
- package/examples/jsm/geometries/BoxLineGeometry.js +1 -0
- package/examples/jsm/geometries/ConvexGeometry.js +1 -0
- package/examples/jsm/geometries/DecalGeometry.js +1 -0
- package/examples/jsm/geometries/ParametricFunctions.js +4 -1
- package/examples/jsm/geometries/ParametricGeometry.js +1 -0
- package/examples/jsm/geometries/RoundedBoxGeometry.js +48 -8
- package/examples/jsm/geometries/TeapotGeometry.js +1 -0
- package/examples/jsm/geometries/TextGeometry.js +1 -0
- package/examples/jsm/helpers/LightProbeHelper.js +1 -0
- package/examples/jsm/helpers/LightProbeHelperGPU.js +1 -0
- package/examples/jsm/helpers/OctreeHelper.js +1 -0
- package/examples/jsm/helpers/PositionalAudioHelper.js +1 -0
- package/examples/jsm/helpers/RapierHelper.js +59 -0
- package/examples/jsm/helpers/RectAreaLightHelper.js +1 -0
- package/examples/jsm/helpers/TextureHelper.js +1 -0
- package/examples/jsm/helpers/TextureHelperGPU.js +5 -4
- package/examples/jsm/helpers/VertexNormalsHelper.js +1 -0
- package/examples/jsm/helpers/VertexTangentsHelper.js +1 -0
- package/examples/jsm/helpers/ViewHelper.js +1 -0
- package/examples/jsm/interactive/HTMLMesh.js +11 -2
- package/examples/jsm/interactive/InteractiveGroup.js +1 -0
- package/examples/jsm/interactive/SelectionBox.js +2 -0
- package/examples/jsm/interactive/SelectionHelper.js +2 -0
- package/examples/jsm/libs/meshopt_decoder.module.js +75 -58
- package/examples/jsm/lighting/TiledLighting.js +1 -0
- package/examples/jsm/lights/LightProbeGenerator.js +15 -3
- package/examples/jsm/lights/RectAreaLightTexturesLib.js +1 -0
- package/examples/jsm/lights/RectAreaLightUniformsLib.js +1 -0
- package/examples/jsm/lines/Line2.js +1 -0
- package/examples/jsm/lines/LineGeometry.js +1 -0
- package/examples/jsm/lines/LineMaterial.js +4 -4
- package/examples/jsm/lines/LineSegments2.js +1 -0
- package/examples/jsm/lines/LineSegmentsGeometry.js +1 -0
- package/examples/jsm/lines/Wireframe.js +1 -0
- package/examples/jsm/lines/WireframeGeometry2.js +1 -0
- package/examples/jsm/lines/webgpu/Line2.js +1 -0
- package/examples/jsm/lines/webgpu/LineSegments2.js +3 -1
- package/examples/jsm/lines/webgpu/Wireframe.js +1 -0
- package/examples/jsm/loaders/3DMLoader.js +1 -0
- package/examples/jsm/loaders/3MFLoader.js +1 -0
- package/examples/jsm/loaders/AMFLoader.js +1 -0
- package/examples/jsm/loaders/BVHLoader.js +1 -0
- package/examples/jsm/loaders/ColladaLoader.js +6 -5
- package/examples/jsm/loaders/DDSLoader.js +1 -0
- package/examples/jsm/loaders/DRACOLoader.js +2 -1
- package/examples/jsm/loaders/EXRLoader.js +211 -22
- package/examples/jsm/loaders/FBXLoader.js +25 -23
- package/examples/jsm/loaders/FontLoader.js +1 -0
- package/examples/jsm/loaders/GCodeLoader.js +1 -0
- package/examples/jsm/loaders/GLTFLoader.js +10 -82
- package/examples/jsm/loaders/HDRCubeTextureLoader.js +1 -0
- package/examples/jsm/loaders/IESLoader.js +1 -0
- package/examples/jsm/loaders/KMZLoader.js +1 -0
- package/examples/jsm/loaders/KTX2Loader.js +67 -26
- package/examples/jsm/loaders/KTXLoader.js +1 -0
- package/examples/jsm/loaders/LDrawLoader.js +55 -3
- package/examples/jsm/loaders/LUT3dlLoader.js +1 -0
- package/examples/jsm/loaders/LUTCubeLoader.js +1 -0
- package/examples/jsm/loaders/LUTImageLoader.js +1 -0
- package/examples/jsm/loaders/LWOLoader.js +1 -13
- package/examples/jsm/loaders/LottieLoader.js +15 -0
- package/examples/jsm/loaders/MD2Loader.js +1 -0
- package/examples/jsm/loaders/MDDLoader.js +1 -0
- package/examples/jsm/loaders/MTLLoader.js +4 -3
- package/examples/jsm/loaders/MaterialXLoader.js +213 -30
- package/examples/jsm/loaders/NRRDLoader.js +1 -0
- package/examples/jsm/loaders/OBJLoader.js +1 -0
- package/examples/jsm/loaders/PCDLoader.js +122 -19
- package/examples/jsm/loaders/PDBLoader.js +1 -0
- package/examples/jsm/loaders/PLYLoader.js +1 -0
- package/examples/jsm/loaders/PVRLoader.js +1 -0
- package/examples/jsm/loaders/RGBELoader.js +1 -0
- package/examples/jsm/loaders/RGBMLoader.js +1 -0
- package/examples/jsm/loaders/STLLoader.js +1 -0
- package/examples/jsm/loaders/SVGLoader.js +1 -0
- package/examples/jsm/loaders/TDSLoader.js +1 -0
- package/examples/jsm/loaders/TGALoader.js +1 -0
- package/examples/jsm/loaders/TIFFLoader.js +1 -0
- package/examples/jsm/loaders/TTFLoader.js +14 -1
- package/examples/jsm/loaders/USDLoader.js +219 -0
- package/examples/jsm/loaders/USDZLoader.js +4 -891
- package/examples/jsm/loaders/UltraHDRLoader.js +1 -0
- package/examples/jsm/loaders/VOXLoader.js +1 -0
- package/examples/jsm/loaders/VRMLLoader.js +3 -2
- package/examples/jsm/loaders/VTKLoader.js +1 -0
- package/examples/jsm/loaders/XYZLoader.js +1 -0
- package/examples/jsm/loaders/lwo/IFFParser.js +74 -74
- package/examples/jsm/loaders/usd/USDAParser.js +741 -0
- package/examples/jsm/loaders/usd/USDCParser.js +17 -0
- package/examples/jsm/materials/LDrawConditionalLineMaterial.js +1 -0
- package/examples/jsm/materials/LDrawConditionalLineNodeMaterial.js +1 -0
- package/examples/jsm/materials/MeshPostProcessingMaterial.js +1 -0
- package/examples/jsm/math/Capsule.js +2 -0
- package/examples/jsm/math/ColorConverter.js +1 -0
- package/examples/jsm/math/ConvexHull.js +2 -0
- package/examples/jsm/math/ImprovedNoise.js +19 -14
- package/examples/jsm/math/Lut.js +2 -0
- package/examples/jsm/math/MeshSurfaceSampler.js +2 -0
- package/examples/jsm/math/OBB.js +2 -0
- package/examples/jsm/math/Octree.js +20 -1
- package/examples/jsm/math/SimplexNoise.js +2 -0
- package/examples/jsm/misc/ConvexObjectBreaker.js +3 -1
- package/examples/jsm/misc/GPUComputationRenderer.js +2 -0
- package/examples/jsm/misc/Gyroscope.js +1 -0
- package/examples/jsm/misc/MD2Character.js +2 -0
- package/examples/jsm/misc/MD2CharacterComplex.js +5 -3
- package/examples/jsm/misc/MorphAnimMesh.js +1 -0
- package/examples/jsm/misc/MorphBlendMesh.js +1 -0
- package/examples/jsm/misc/ProgressiveLightMap.js +2 -0
- package/examples/jsm/misc/ProgressiveLightMapGPU.js +2 -0
- package/examples/jsm/misc/RollerCoaster.js +5 -0
- package/examples/jsm/misc/TubePainter.js +1 -0
- package/examples/jsm/misc/Volume.js +2 -0
- package/examples/jsm/misc/VolumeSlice.js +1 -0
- package/examples/jsm/modifiers/CurveModifier.js +3 -0
- package/examples/jsm/modifiers/CurveModifierGPU.js +2 -0
- package/examples/jsm/modifiers/EdgeSplitModifier.js +2 -0
- package/examples/jsm/modifiers/SimplifyModifier.js +2 -0
- package/examples/jsm/modifiers/TessellateModifier.js +2 -0
- package/examples/jsm/objects/GroundedSkybox.js +1 -0
- package/examples/jsm/objects/Lensflare.js +3 -0
- package/examples/jsm/objects/LensflareMesh.js +4 -3
- package/examples/jsm/objects/MarchingCubes.js +2 -0
- package/examples/jsm/objects/Reflector.js +1 -0
- package/examples/jsm/objects/ReflectorForSSRPass.js +1 -0
- package/examples/jsm/objects/Refractor.js +1 -0
- package/examples/jsm/objects/ShadowMesh.js +1 -0
- package/examples/jsm/objects/Sky.js +2 -1
- package/examples/jsm/objects/SkyMesh.js +22 -19
- package/examples/jsm/objects/Water.js +1 -0
- package/examples/jsm/objects/Water2.js +1 -0
- package/examples/jsm/objects/Water2Mesh.js +3 -1
- package/examples/jsm/objects/WaterMesh.js +2 -1
- package/examples/jsm/physics/AmmoPhysics.js +1 -0
- package/examples/jsm/physics/JoltPhysics.js +1 -0
- package/examples/jsm/physics/RapierPhysics.js +149 -13
- package/examples/jsm/postprocessing/AfterimagePass.js +20 -2
- package/examples/jsm/postprocessing/BloomPass.js +2 -1
- package/examples/jsm/postprocessing/BokehPass.js +2 -1
- package/examples/jsm/postprocessing/ClearPass.js +1 -0
- package/examples/jsm/postprocessing/CubeTexturePass.js +1 -0
- package/examples/jsm/postprocessing/DotScreenPass.js +1 -0
- package/examples/jsm/postprocessing/EffectComposer.js +4 -2
- package/examples/jsm/postprocessing/FXAAPass.js +40 -0
- package/examples/jsm/postprocessing/FilmPass.js +1 -0
- package/examples/jsm/postprocessing/GTAOPass.js +14 -12
- package/examples/jsm/postprocessing/GlitchPass.js +2 -1
- package/examples/jsm/postprocessing/HalftonePass.js +2 -1
- package/examples/jsm/postprocessing/LUTPass.js +1 -0
- package/examples/jsm/postprocessing/MaskPass.js +1 -0
- package/examples/jsm/postprocessing/OutlinePass.js +22 -19
- package/examples/jsm/postprocessing/OutputPass.js +1 -0
- package/examples/jsm/postprocessing/Pass.js +3 -1
- package/examples/jsm/postprocessing/RenderPass.js +1 -0
- package/examples/jsm/postprocessing/RenderPixelatedPass.js +2 -1
- package/examples/jsm/postprocessing/RenderTransitionPass.js +4 -3
- package/examples/jsm/postprocessing/SAOPass.js +3 -2
- package/examples/jsm/postprocessing/SMAAPass.js +3 -2
- package/examples/jsm/postprocessing/SSAARenderPass.js +2 -1
- package/examples/jsm/postprocessing/SSAOPass.js +12 -10
- package/examples/jsm/postprocessing/SSRPass.js +4 -3
- package/examples/jsm/postprocessing/SavePass.js +2 -1
- package/examples/jsm/postprocessing/ShaderPass.js +1 -0
- package/examples/jsm/postprocessing/TAARenderPass.js +1 -0
- package/examples/jsm/postprocessing/TexturePass.js +1 -0
- package/examples/jsm/postprocessing/UnrealBloomPass.js +2 -1
- package/examples/jsm/renderers/CSS2DRenderer.js +3 -0
- package/examples/jsm/renderers/CSS3DRenderer.js +4 -0
- package/examples/jsm/renderers/Projector.js +2 -0
- package/examples/jsm/renderers/SVGRenderer.js +3 -0
- package/examples/jsm/shaders/ACESFilmicToneMappingShader.js +4 -1
- package/examples/jsm/shaders/AfterimageShader.js +4 -1
- package/examples/jsm/shaders/BasicShader.js +4 -1
- package/examples/jsm/shaders/BleachBypassShader.js +4 -1
- package/examples/jsm/shaders/BlendShader.js +4 -1
- package/examples/jsm/shaders/BokehShader.js +4 -1
- package/examples/jsm/shaders/BokehShader2.js +4 -1
- package/examples/jsm/shaders/BrightnessContrastShader.js +4 -1
- package/examples/jsm/shaders/ColorCorrectionShader.js +4 -1
- package/examples/jsm/shaders/ColorifyShader.js +4 -1
- package/examples/jsm/shaders/ConvolutionShader.js +4 -1
- package/examples/jsm/shaders/CopyShader.js +4 -1
- package/examples/jsm/shaders/DOFMipMapShader.js +4 -1
- package/examples/jsm/shaders/DepthLimitedBlurShader.js +4 -1
- package/examples/jsm/shaders/DigitalGlitch.js +4 -1
- package/examples/jsm/shaders/DotScreenShader.js +4 -1
- package/examples/jsm/shaders/ExposureShader.js +4 -1
- package/examples/jsm/shaders/FXAAShader.js +4 -1
- package/examples/jsm/shaders/FilmShader.js +4 -1
- package/examples/jsm/shaders/FocusShader.js +4 -1
- package/examples/jsm/shaders/FreiChenShader.js +4 -1
- package/examples/jsm/shaders/GTAOShader.js +4 -1
- package/examples/jsm/shaders/GammaCorrectionShader.js +4 -1
- package/examples/jsm/shaders/GodRaysShader.js +4 -1
- package/examples/jsm/shaders/HalftoneShader.js +4 -1
- package/examples/jsm/shaders/HorizontalBlurShader.js +4 -1
- package/examples/jsm/shaders/HorizontalTiltShiftShader.js +4 -1
- package/examples/jsm/shaders/HueSaturationShader.js +4 -1
- package/examples/jsm/shaders/KaleidoShader.js +4 -1
- package/examples/jsm/shaders/LuminosityHighPassShader.js +4 -1
- package/examples/jsm/shaders/LuminosityShader.js +4 -1
- package/examples/jsm/shaders/MirrorShader.js +4 -1
- package/examples/jsm/shaders/NormalMapShader.js +4 -1
- package/examples/jsm/shaders/OutputShader.js +4 -1
- package/examples/jsm/shaders/PoissonDenoiseShader.js +4 -1
- package/examples/jsm/shaders/RGBShiftShader.js +4 -1
- package/examples/jsm/shaders/SAOShader.js +4 -1
- package/examples/jsm/shaders/SMAAShader.js +1 -0
- package/examples/jsm/shaders/SSAOShader.js +4 -1
- package/examples/jsm/shaders/SSRShader.js +1 -0
- package/examples/jsm/shaders/SepiaShader.js +4 -1
- package/examples/jsm/shaders/SobelOperatorShader.js +4 -1
- package/examples/jsm/shaders/SubsurfaceScatteringShader.js +4 -1
- package/examples/jsm/shaders/TechnicolorShader.js +4 -1
- package/examples/jsm/shaders/ToonShader.js +2 -1
- package/examples/jsm/shaders/TriangleBlurShader.js +4 -1
- package/examples/jsm/shaders/UnpackDepthRGBAShader.js +15 -3
- package/examples/jsm/shaders/VelocityShader.js +4 -1
- package/examples/jsm/shaders/VerticalBlurShader.js +4 -1
- package/examples/jsm/shaders/VerticalTiltShiftShader.js +4 -1
- package/examples/jsm/shaders/VignetteShader.js +4 -1
- package/examples/jsm/shaders/VolumeShader.js +5 -2
- package/examples/jsm/shaders/WaterRefractionShader.js +4 -1
- package/examples/jsm/textures/FlakesTexture.js +2 -0
- package/examples/jsm/transpiler/AST.js +381 -30
- package/examples/jsm/transpiler/GLSLDecoder.js +227 -88
- package/examples/jsm/transpiler/Linker.js +327 -0
- package/examples/jsm/transpiler/TSLEncoder.js +234 -85
- package/examples/jsm/transpiler/Transpiler.js +19 -1
- package/examples/jsm/transpiler/TranspilerUtils.js +29 -0
- package/examples/jsm/transpiler/WGSLEncoder.js +788 -0
- package/examples/jsm/tsl/display/AfterImageNode.js +2 -3
- package/examples/jsm/tsl/display/AnaglyphPassNode.js +1 -0
- package/examples/jsm/tsl/display/AnamorphicNode.js +5 -4
- package/examples/jsm/tsl/display/BloomNode.js +9 -7
- package/examples/jsm/tsl/display/ChromaticAberrationNode.js +206 -0
- package/examples/jsm/tsl/display/DenoiseNode.js +33 -33
- package/examples/jsm/tsl/display/DepthOfFieldNode.js +1 -0
- package/examples/jsm/tsl/display/DotScreenNode.js +1 -0
- package/examples/jsm/tsl/display/FXAANode.js +3 -2
- package/examples/jsm/tsl/display/FilmNode.js +1 -0
- package/examples/jsm/tsl/display/GTAONode.js +1 -0
- package/examples/jsm/tsl/display/GaussianBlurNode.js +9 -36
- package/examples/jsm/tsl/display/LensflareNode.js +1 -0
- package/examples/jsm/tsl/display/Lut3DNode.js +1 -0
- package/examples/jsm/tsl/display/OutlineNode.js +1 -0
- package/examples/jsm/tsl/display/ParallaxBarrierPassNode.js +1 -0
- package/examples/jsm/tsl/display/PixelationPassNode.js +1 -0
- package/examples/jsm/tsl/display/RGBShiftNode.js +1 -0
- package/examples/jsm/tsl/display/SMAANode.js +9 -8
- package/examples/jsm/tsl/display/SSAAPassNode.js +5 -4
- package/examples/jsm/tsl/display/SSRNode.js +1 -0
- package/examples/jsm/tsl/display/SobelOperatorNode.js +1 -0
- package/examples/jsm/tsl/display/StereoCompositePassNode.js +1 -0
- package/examples/jsm/tsl/display/StereoPassNode.js +1 -0
- package/examples/jsm/tsl/display/{TRAAPassNode.js → TRAANode.js} +184 -174
- package/examples/jsm/tsl/display/TransitionNode.js +1 -0
- package/examples/jsm/tsl/display/hashBlur.js +28 -6
- package/examples/jsm/tsl/lighting/TiledLightsNode.js +5 -4
- package/examples/jsm/tsl/math/Bayer.js +4 -1
- package/examples/jsm/tsl/shadows/TileShadowNode.js +456 -0
- package/examples/jsm/tsl/shadows/TileShadowNodeHelper.js +212 -0
- package/examples/jsm/tsl/utils/Raymarching.js +6 -3
- package/examples/jsm/utils/BufferGeometryUtils.js +4 -1
- package/examples/jsm/utils/CameraUtils.js +4 -1
- package/examples/jsm/utils/GeometryCompressionUtils.js +4 -1
- package/examples/jsm/utils/GeometryUtils.js +4 -1
- package/examples/jsm/utils/LDrawUtils.js +2 -0
- package/examples/jsm/utils/SceneOptimizer.js +2 -0
- package/examples/jsm/utils/SceneUtils.js +4 -1
- package/examples/jsm/utils/ShadowMapViewer.js +2 -0
- package/examples/jsm/utils/ShadowMapViewerGPU.js +2 -0
- package/examples/jsm/utils/SkeletonUtils.js +4 -1
- package/examples/jsm/utils/SortUtils.js +4 -1
- package/examples/jsm/utils/UVsDebug.js +4 -1
- package/examples/jsm/utils/WebGLTextureUtils.js +4 -1
- package/examples/jsm/utils/WebGPUTextureUtils.js +4 -1
- package/examples/jsm/utils/WorkerPool.js +2 -0
- package/examples/jsm/webxr/ARButton.js +1 -0
- package/examples/jsm/webxr/OculusHandModel.js +1 -0
- package/examples/jsm/webxr/OculusHandPointerModel.js +1 -0
- package/examples/jsm/webxr/Text2D.js +4 -1
- package/examples/jsm/webxr/VRButton.js +1 -0
- package/examples/jsm/webxr/XRButton.js +1 -0
- package/examples/jsm/webxr/XRControllerModelFactory.js +2 -0
- package/examples/jsm/webxr/XREstimatedLight.js +1 -0
- package/examples/jsm/webxr/XRHandMeshModel.js +2 -0
- package/examples/jsm/webxr/XRHandModelFactory.js +2 -0
- package/examples/jsm/webxr/XRHandPrimitiveModel.js +2 -0
- package/examples/jsm/webxr/XRPlanes.js +1 -0
- package/package.json +6 -4
- package/src/Three.Core.js +2 -1
- package/src/Three.TSL.js +83 -26
- package/src/Three.WebGPU.Nodes.js +1 -0
- package/src/Three.WebGPU.js +3 -0
- package/src/animation/KeyframeTrack.js +1 -1
- package/src/animation/tracks/BooleanKeyframeTrack.js +1 -1
- package/src/animation/tracks/StringKeyframeTrack.js +1 -1
- package/src/audio/AudioListener.js +13 -10
- package/src/cameras/ArrayCamera.js +9 -1
- package/src/cameras/Camera.js +14 -0
- package/src/cameras/OrthographicCamera.js +1 -1
- package/src/cameras/PerspectiveCamera.js +1 -1
- package/src/constants.js +47 -20
- package/src/core/BufferAttribute.js +3 -3
- package/src/core/BufferGeometry.js +2 -5
- package/src/core/Clock.js +2 -8
- package/src/core/GLBufferAttribute.js +13 -1
- package/src/core/Object3D.js +23 -22
- package/src/core/RenderTarget.js +65 -21
- package/src/core/RenderTarget3D.js +1 -0
- package/{examples/jsm/misc → src/core}/Timer.js +4 -40
- package/src/extras/PMREMGenerator.js +11 -0
- package/src/extras/TextureUtils.js +1 -5
- package/src/extras/core/Curve.js +1 -1
- package/src/extras/core/Path.js +22 -22
- package/src/geometries/CapsuleGeometry.js +167 -17
- package/src/geometries/ExtrudeGeometry.js +39 -29
- package/src/helpers/ArrowHelper.js +2 -2
- package/src/helpers/CameraHelper.js +41 -11
- package/src/helpers/SkeletonHelper.js +36 -7
- package/src/lights/LightShadow.js +34 -7
- package/src/lights/PointLightShadow.js +1 -1
- package/src/lights/SpotLightShadow.js +9 -1
- package/src/lights/webgpu/ProjectorLight.js +46 -0
- package/src/loaders/BufferGeometryLoader.js +1 -10
- package/src/loaders/FileLoader.js +27 -4
- package/src/loaders/ImageBitmapLoader.js +48 -9
- package/src/loaders/ImageLoader.js +55 -8
- package/src/loaders/Loader.js +14 -0
- package/src/loaders/LoadingManager.js +23 -0
- package/src/loaders/ObjectLoader.js +44 -16
- package/src/loaders/nodes/NodeObjectLoader.js +2 -2
- package/src/materials/Material.js +1 -7
- package/src/materials/MeshBasicMaterial.js +1 -1
- package/src/materials/nodes/Line2NodeMaterial.js +0 -8
- package/src/materials/nodes/MeshBasicNodeMaterial.js +4 -3
- package/src/materials/nodes/MeshMatcapNodeMaterial.js +1 -1
- package/src/materials/nodes/MeshNormalNodeMaterial.js +2 -2
- package/src/materials/nodes/MeshPhysicalNodeMaterial.js +2 -1
- package/src/materials/nodes/MeshSSSNodeMaterial.js +2 -2
- package/src/materials/nodes/NodeMaterial.js +106 -20
- package/src/materials/nodes/PointsNodeMaterial.js +5 -0
- package/src/materials/nodes/manager/NodeMaterialObserver.js +107 -4
- package/src/math/Box3.js +28 -0
- package/src/math/Color.js +7 -7
- package/src/math/ColorManagement.js +22 -3
- package/src/math/Frustum.js +25 -9
- package/src/math/FrustumArray.js +258 -0
- package/src/math/Line3.js +129 -2
- package/src/math/Matrix4.js +48 -27
- package/src/math/Quaternion.js +1 -1
- package/src/math/Ray.js +2 -0
- package/src/math/Sphere.js +28 -0
- package/src/math/Spherical.js +2 -2
- package/src/nodes/Nodes.js +3 -3
- package/src/nodes/TSL.js +6 -3
- package/src/nodes/accessors/AccessorsUtils.js +7 -8
- package/src/nodes/accessors/Bitangent.js +54 -26
- package/src/nodes/accessors/Camera.js +40 -13
- package/src/nodes/accessors/CubeTextureNode.js +50 -2
- package/src/nodes/accessors/InstanceNode.js +5 -4
- package/src/nodes/accessors/Lights.js +2 -2
- package/src/nodes/accessors/MaterialNode.js +4 -0
- package/src/nodes/accessors/ModelNode.js +1 -1
- package/src/nodes/accessors/Normal.js +110 -24
- package/src/nodes/accessors/Object3DNode.js +7 -8
- package/src/nodes/accessors/Position.js +14 -4
- package/src/nodes/accessors/ReferenceBaseNode.js +1 -1
- package/src/nodes/accessors/ReferenceNode.js +19 -4
- package/src/nodes/accessors/ReflectVector.js +3 -3
- package/src/nodes/accessors/SceneNode.js +1 -1
- package/src/nodes/accessors/SkinningNode.js +3 -2
- package/src/nodes/accessors/StorageBufferNode.js +25 -0
- package/src/nodes/accessors/StorageTextureNode.js +15 -4
- package/src/nodes/accessors/Tangent.js +25 -17
- package/src/nodes/accessors/TangentUtils.js +46 -0
- package/src/nodes/accessors/TextureBicubic.js +21 -3
- package/src/nodes/accessors/TextureNode.js +71 -8
- package/src/nodes/accessors/UniformArrayNode.js +0 -16
- package/src/nodes/accessors/VelocityNode.js +1 -0
- package/src/nodes/accessors/VertexColorNode.js +4 -4
- package/src/nodes/code/CodeNode.js +8 -11
- package/src/nodes/core/ArrayNode.js +12 -0
- package/src/nodes/core/AssignNode.js +30 -5
- package/src/nodes/core/AttributeNode.js +2 -2
- package/src/nodes/core/ContextNode.js +27 -4
- package/src/nodes/core/Node.js +83 -22
- package/src/nodes/core/NodeBuilder.js +273 -49
- package/src/nodes/core/NodeUtils.js +46 -1
- package/src/nodes/core/NodeVarying.js +19 -1
- package/src/nodes/core/PropertyNode.js +8 -12
- package/src/nodes/core/StackNode.js +171 -26
- package/src/nodes/core/StructTypeNode.js +26 -4
- package/src/nodes/core/SubBuildNode.js +89 -0
- package/src/nodes/core/UniformNode.js +63 -5
- package/src/nodes/core/VarNode.js +102 -4
- package/src/nodes/core/VaryingNode.js +45 -24
- package/src/nodes/display/BlendModes.js +42 -1
- package/src/nodes/display/ColorSpaceNode.js +4 -27
- package/src/nodes/display/FrontFacingNode.js +34 -2
- package/src/nodes/display/NormalMapNode.js +19 -50
- package/src/nodes/display/PassNode.js +165 -20
- package/src/nodes/display/ScreenNode.js +0 -26
- package/src/nodes/display/ViewportTextureNode.js +67 -7
- package/src/nodes/functions/BSDF/BRDF_GGX.js +2 -6
- package/src/nodes/functions/BSDF/BRDF_Sheen.js +4 -4
- package/src/nodes/functions/PhongLightingModel.js +3 -3
- package/src/nodes/functions/PhysicalLightingModel.js +16 -16
- package/src/nodes/functions/ShadowMaskModel.js +5 -1
- package/src/nodes/functions/material/getGeometryRoughness.js +2 -2
- package/src/nodes/functions/material/getParallaxCorrectNormal.js +1 -1
- package/src/nodes/gpgpu/AtomicFunctionNode.js +28 -10
- package/src/nodes/gpgpu/BarrierNode.js +3 -3
- package/src/nodes/gpgpu/ComputeNode.js +68 -24
- package/src/nodes/gpgpu/WorkgroupInfoNode.js +28 -3
- package/src/nodes/lighting/AnalyticLightNode.js +7 -13
- package/src/nodes/lighting/EnvironmentNode.js +5 -5
- package/src/nodes/lighting/HemisphereLightNode.js +2 -2
- package/src/nodes/lighting/IESSpotLightNode.js +2 -1
- package/src/nodes/lighting/LightsNode.js +29 -11
- package/src/nodes/lighting/ProjectorLightNode.js +91 -0
- package/src/nodes/lighting/ShadowBaseNode.js +1 -12
- package/src/nodes/lighting/ShadowFilterNode.js +274 -0
- package/src/nodes/lighting/ShadowNode.js +174 -242
- package/src/nodes/lighting/SpotLightNode.js +44 -7
- package/src/nodes/materialx/MaterialXNodes.js +131 -2
- package/src/nodes/materialx/lib/mx_noise.js +166 -2
- package/src/nodes/math/ConditionalNode.js +1 -20
- package/src/nodes/math/MathNode.js +146 -75
- package/src/nodes/math/OperatorNode.js +129 -119
- package/src/nodes/shapes/Shapes.js +5 -4
- package/src/nodes/tsl/TSLBase.js +1 -0
- package/src/nodes/tsl/TSLCore.js +222 -72
- package/src/nodes/utils/DebugNode.js +16 -4
- package/src/nodes/utils/Discard.js +2 -2
- package/src/nodes/utils/EquirectUV.js +27 -0
- package/src/nodes/utils/EventNode.js +83 -0
- package/src/nodes/utils/LoopNode.js +64 -34
- package/src/nodes/utils/MatcapUV.js +22 -0
- package/src/nodes/utils/RTTNode.js +22 -5
- package/src/nodes/utils/ReflectorNode.js +77 -7
- package/src/nodes/utils/SampleNode.js +81 -0
- package/src/nodes/utils/TriplanarTextures.js +65 -0
- package/src/objects/BatchedMesh.js +20 -6
- package/src/objects/Mesh.js +9 -0
- package/src/objects/Skeleton.js +1 -1
- package/src/objects/Sprite.js +9 -0
- package/src/renderers/WebGL3DRenderTarget.js +1 -0
- package/src/renderers/WebGLArrayRenderTarget.js +1 -0
- package/src/renderers/WebGLCubeRenderTarget.js +2 -4
- package/src/renderers/WebGLRenderer.js +45 -32
- package/src/renderers/common/Animation.js +2 -2
- package/src/renderers/common/Background.js +13 -2
- package/src/renderers/common/Bindings.js +19 -18
- package/src/renderers/common/Color4.js +2 -2
- package/src/renderers/common/CubeRenderTarget.js +1 -1
- package/src/renderers/common/PostProcessing.js +60 -5
- package/src/renderers/common/RenderList.js +0 -4
- package/src/renderers/common/RenderObject.js +80 -4
- package/src/renderers/common/Renderer.js +133 -22
- package/src/renderers/common/SampledTexture.js +3 -71
- package/src/renderers/common/Sampler.js +79 -0
- package/src/renderers/common/Storage3DTexture.js +100 -0
- package/src/renderers/common/StorageArrayTexture.js +84 -0
- package/src/renderers/common/StorageTexture.js +19 -0
- package/src/renderers/common/Textures.js +34 -24
- package/src/renderers/common/TimestampQueryPool.js +1 -0
- package/src/renderers/common/Uniform.js +1 -1
- package/src/renderers/common/UniformsGroup.js +14 -18
- package/src/renderers/common/XRManager.js +183 -35
- package/src/renderers/common/XRRenderTarget.js +21 -4
- package/src/renderers/common/extras/PMREMGenerator.js +30 -23
- package/src/renderers/common/nodes/NodeSampledTexture.js +0 -12
- package/src/renderers/common/nodes/Nodes.js +13 -3
- package/src/renderers/shaders/ShaderChunk/premultiplied_alpha_fragment.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/shadowmap_pars_fragment.glsl.js +20 -2
- package/src/renderers/shaders/ShaderLib/background.glsl.js +1 -1
- package/src/renderers/shaders/ShaderLib/depth.glsl.js +11 -2
- package/src/renderers/webgl/WebGLAttributes.js +4 -0
- package/src/renderers/webgl/WebGLCapabilities.js +2 -2
- package/src/renderers/webgl/WebGLMaterials.js +6 -6
- package/src/renderers/webgl/WebGLProgram.js +22 -16
- package/src/renderers/webgl/WebGLPrograms.js +8 -6
- package/src/renderers/webgl/WebGLShadowMap.js +14 -3
- package/src/renderers/webgl/WebGLState.js +4 -4
- package/src/renderers/webgl/WebGLTextures.js +163 -11
- package/src/renderers/webgl/WebGLUtils.js +1 -3
- package/src/renderers/webgl-fallback/WebGLBackend.js +261 -94
- package/src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.js +75 -9
- package/src/renderers/webgl-fallback/utils/WebGLAttributeUtils.js +4 -0
- package/src/renderers/webgl-fallback/utils/WebGLConstants.js +1 -0
- package/src/renderers/webgl-fallback/utils/WebGLState.js +4 -4
- package/src/renderers/webgl-fallback/utils/WebGLTextureUtils.js +44 -29
- package/src/renderers/webgl-fallback/utils/WebGLUtils.js +22 -21
- package/src/renderers/webgpu/WebGPUBackend.js +505 -143
- package/src/renderers/webgpu/WebGPURenderer.js +7 -0
- package/src/renderers/webgpu/nodes/BasicNodeLibrary.js +4 -1
- package/src/renderers/webgpu/nodes/StandardNodeLibrary.js +4 -1
- package/src/renderers/webgpu/nodes/WGSLNodeBuilder.js +129 -96
- package/src/renderers/webgpu/nodes/WGSLNodeFunction.js +3 -0
- package/src/renderers/webgpu/utils/WebGPUAttributeUtils.js +9 -1
- package/src/renderers/webgpu/utils/WebGPUBindingUtils.js +58 -31
- package/src/renderers/webgpu/utils/WebGPUConstants.js +8 -2
- package/src/renderers/webgpu/utils/WebGPUPipelineUtils.js +39 -9
- package/src/renderers/webgpu/utils/WebGPUTextureUtils.js +50 -108
- package/src/renderers/webgpu/utils/WebGPUUtils.js +2 -17
- package/src/renderers/webxr/WebXRController.js +1 -1
- package/src/renderers/webxr/WebXRDepthSensing.js +6 -10
- package/src/renderers/webxr/WebXRManager.js +70 -9
- package/src/textures/DepthTexture.js +6 -10
- package/src/textures/ExternalTexture.js +45 -0
- package/src/textures/FramebufferTexture.js +2 -2
- package/src/textures/Source.js +32 -0
- package/src/textures/Texture.js +118 -1
- package/src/textures/VideoTexture.js +31 -3
- package/examples/jsm/effects/PeppersGhostEffect.js +0 -172
- package/src/core/RenderTargetArray.js +0 -40
- package/src/nodes/utils/EquirectUVNode.js +0 -65
- package/src/nodes/utils/MatcapUVNode.js +0 -49
- package/src/nodes/utils/TriplanarTexturesNode.js +0 -148
package/build/three.tsl.js
CHANGED
|
@@ -7,8 +7,10 @@ import { TSL } from 'three/webgpu';
|
|
|
7
7
|
|
|
8
8
|
const BRDF_GGX = TSL.BRDF_GGX;
|
|
9
9
|
const BRDF_Lambert = TSL.BRDF_Lambert;
|
|
10
|
+
const BasicPointShadowFilter = TSL.BasicPointShadowFilter;
|
|
10
11
|
const BasicShadowFilter = TSL.BasicShadowFilter;
|
|
11
12
|
const Break = TSL.Break;
|
|
13
|
+
const Const = TSL.Const;
|
|
12
14
|
const Continue = TSL.Continue;
|
|
13
15
|
const DFGApprox = TSL.DFGApprox;
|
|
14
16
|
const D_GGX = TSL.D_GGX;
|
|
@@ -19,25 +21,31 @@ const Fn = TSL.Fn;
|
|
|
19
21
|
const INFINITY = TSL.INFINITY;
|
|
20
22
|
const If = TSL.If;
|
|
21
23
|
const Loop = TSL.Loop;
|
|
24
|
+
const NodeAccess = TSL.NodeAccess;
|
|
22
25
|
const NodeShaderStage = TSL.NodeShaderStage;
|
|
23
26
|
const NodeType = TSL.NodeType;
|
|
24
27
|
const NodeUpdateType = TSL.NodeUpdateType;
|
|
25
|
-
const NodeAccess = TSL.NodeAccess;
|
|
26
28
|
const PCFShadowFilter = TSL.PCFShadowFilter;
|
|
27
29
|
const PCFSoftShadowFilter = TSL.PCFSoftShadowFilter;
|
|
28
30
|
const PI = TSL.PI;
|
|
29
31
|
const PI2 = TSL.PI2;
|
|
32
|
+
const PointShadowFilter = TSL.PointShadowFilter;
|
|
30
33
|
const Return = TSL.Return;
|
|
31
34
|
const Schlick_to_F0 = TSL.Schlick_to_F0;
|
|
32
35
|
const ScriptableNodeResources = TSL.ScriptableNodeResources;
|
|
33
36
|
const ShaderNode = TSL.ShaderNode;
|
|
37
|
+
const Stack = TSL.Stack;
|
|
38
|
+
const Switch = TSL.Switch;
|
|
34
39
|
const TBNViewMatrix = TSL.TBNViewMatrix;
|
|
35
40
|
const VSMShadowFilter = TSL.VSMShadowFilter;
|
|
36
41
|
const V_GGX_SmithCorrelated = TSL.V_GGX_SmithCorrelated;
|
|
42
|
+
const Var = TSL.Var;
|
|
43
|
+
const VarIntent = TSL.VarIntent;
|
|
37
44
|
const abs = TSL.abs;
|
|
38
45
|
const acesFilmicToneMapping = TSL.acesFilmicToneMapping;
|
|
39
46
|
const acos = TSL.acos;
|
|
40
47
|
const add = TSL.add;
|
|
48
|
+
const addMethodChaining = TSL.addMethodChaining;
|
|
41
49
|
const addNodeElement = TSL.addNodeElement;
|
|
42
50
|
const agxToneMapping = TSL.agxToneMapping;
|
|
43
51
|
const all = TSL.all;
|
|
@@ -57,13 +65,13 @@ const atan2 = TSL.atan2;
|
|
|
57
65
|
const atomicAdd = TSL.atomicAdd;
|
|
58
66
|
const atomicAnd = TSL.atomicAnd;
|
|
59
67
|
const atomicFunc = TSL.atomicFunc;
|
|
68
|
+
const atomicLoad = TSL.atomicLoad;
|
|
60
69
|
const atomicMax = TSL.atomicMax;
|
|
61
70
|
const atomicMin = TSL.atomicMin;
|
|
62
71
|
const atomicOr = TSL.atomicOr;
|
|
63
72
|
const atomicStore = TSL.atomicStore;
|
|
64
73
|
const atomicSub = TSL.atomicSub;
|
|
65
74
|
const atomicXor = TSL.atomicXor;
|
|
66
|
-
const atomicLoad = TSL.atomicLoad;
|
|
67
75
|
const attenuationColor = TSL.attenuationColor;
|
|
68
76
|
const attenuationDistance = TSL.attenuationDistance;
|
|
69
77
|
const attribute = TSL.attribute;
|
|
@@ -72,6 +80,7 @@ const backgroundBlurriness = TSL.backgroundBlurriness;
|
|
|
72
80
|
const backgroundIntensity = TSL.backgroundIntensity;
|
|
73
81
|
const backgroundRotation = TSL.backgroundRotation;
|
|
74
82
|
const batch = TSL.batch;
|
|
83
|
+
const bentNormalView = TSL.bentNormalView;
|
|
75
84
|
const billboarding = TSL.billboarding;
|
|
76
85
|
const bitAnd = TSL.bitAnd;
|
|
77
86
|
const bitNot = TSL.bitNot;
|
|
@@ -115,15 +124,15 @@ const checker = TSL.checker;
|
|
|
115
124
|
const cineonToneMapping = TSL.cineonToneMapping;
|
|
116
125
|
const clamp = TSL.clamp;
|
|
117
126
|
const clearcoat = TSL.clearcoat;
|
|
127
|
+
const clearcoatNormalView = TSL.clearcoatNormalView;
|
|
118
128
|
const clearcoatRoughness = TSL.clearcoatRoughness;
|
|
119
129
|
const code = TSL.code;
|
|
120
130
|
const color = TSL.color;
|
|
121
131
|
const colorSpaceToWorking = TSL.colorSpaceToWorking;
|
|
122
132
|
const colorToDirection = TSL.colorToDirection;
|
|
123
133
|
const compute = TSL.compute;
|
|
134
|
+
const computeKernel = TSL.computeKernel;
|
|
124
135
|
const computeSkinning = TSL.computeSkinning;
|
|
125
|
-
const cond = TSL.cond;
|
|
126
|
-
const Const = TSL.Const;
|
|
127
136
|
const context = TSL.context;
|
|
128
137
|
const convert = TSL.convert;
|
|
129
138
|
const convertColorSpace = TSL.convertColorSpace;
|
|
@@ -131,10 +140,14 @@ const convertToTexture = TSL.convertToTexture;
|
|
|
131
140
|
const cos = TSL.cos;
|
|
132
141
|
const cross = TSL.cross;
|
|
133
142
|
const cubeTexture = TSL.cubeTexture;
|
|
143
|
+
const cubeTextureBase = TSL.cubeTextureBase;
|
|
144
|
+
const cubeToUV = TSL.cubeToUV;
|
|
134
145
|
const dFdx = TSL.dFdx;
|
|
135
146
|
const dFdy = TSL.dFdy;
|
|
136
147
|
const dashSize = TSL.dashSize;
|
|
137
148
|
const debug = TSL.debug;
|
|
149
|
+
const decrement = TSL.decrement;
|
|
150
|
+
const decrementBefore = TSL.decrementBefore;
|
|
138
151
|
const defaultBuildStages = TSL.defaultBuildStages;
|
|
139
152
|
const defaultShaderStages = TSL.defaultShaderStages;
|
|
140
153
|
const defined = TSL.defined;
|
|
@@ -144,10 +157,12 @@ const densityFog = TSL.densityFog;
|
|
|
144
157
|
const densityFogFactor = TSL.densityFogFactor;
|
|
145
158
|
const depth = TSL.depth;
|
|
146
159
|
const depthPass = TSL.depthPass;
|
|
160
|
+
const determinant = TSL.determinant;
|
|
147
161
|
const difference = TSL.difference;
|
|
148
162
|
const diffuseColor = TSL.diffuseColor;
|
|
149
163
|
const directPointLight = TSL.directPointLight;
|
|
150
164
|
const directionToColor = TSL.directionToColor;
|
|
165
|
+
const directionToFaceDirection = TSL.directionToFaceDirection;
|
|
151
166
|
const dispersion = TSL.dispersion;
|
|
152
167
|
const distance = TSL.distance;
|
|
153
168
|
const div = TSL.div;
|
|
@@ -186,8 +201,11 @@ const getParallaxCorrectNormal = TSL.getParallaxCorrectNormal;
|
|
|
186
201
|
const getRoughness = TSL.getRoughness;
|
|
187
202
|
const getScreenPosition = TSL.getScreenPosition;
|
|
188
203
|
const getShIrradianceAt = TSL.getShIrradianceAt;
|
|
204
|
+
const getShadowMaterial = TSL.getShadowMaterial;
|
|
205
|
+
const getShadowRenderObjectFunction = TSL.getShadowRenderObjectFunction;
|
|
189
206
|
const getTextureIndex = TSL.getTextureIndex;
|
|
190
207
|
const getViewPosition = TSL.getViewPosition;
|
|
208
|
+
const globalId = TSL.globalId;
|
|
191
209
|
const glsl = TSL.glsl;
|
|
192
210
|
const glslFn = TSL.glslFn;
|
|
193
211
|
const grayscale = TSL.grayscale;
|
|
@@ -197,6 +215,8 @@ const hash = TSL.hash;
|
|
|
197
215
|
const highpModelNormalViewMatrix = TSL.highpModelNormalViewMatrix;
|
|
198
216
|
const highpModelViewMatrix = TSL.highpModelViewMatrix;
|
|
199
217
|
const hue = TSL.hue;
|
|
218
|
+
const increment = TSL.increment;
|
|
219
|
+
const incrementBefore = TSL.incrementBefore;
|
|
200
220
|
const instance = TSL.instance;
|
|
201
221
|
const instanceIndex = TSL.instanceIndex;
|
|
202
222
|
const instancedArray = TSL.instancedArray;
|
|
@@ -204,6 +224,7 @@ const instancedBufferAttribute = TSL.instancedBufferAttribute;
|
|
|
204
224
|
const instancedDynamicBufferAttribute = TSL.instancedDynamicBufferAttribute;
|
|
205
225
|
const instancedMesh = TSL.instancedMesh;
|
|
206
226
|
const int = TSL.int;
|
|
227
|
+
const inverse = TSL.inverse;
|
|
207
228
|
const inverseSqrt = TSL.inverseSqrt;
|
|
208
229
|
const inversesqrt = TSL.inversesqrt;
|
|
209
230
|
const invocationLocalIndex = TSL.invocationLocalIndex;
|
|
@@ -222,6 +243,8 @@ const lengthSq = TSL.lengthSq;
|
|
|
222
243
|
const lessThan = TSL.lessThan;
|
|
223
244
|
const lessThanEqual = TSL.lessThanEqual;
|
|
224
245
|
const lightPosition = TSL.lightPosition;
|
|
246
|
+
const lightProjectionUV = TSL.lightProjectionUV;
|
|
247
|
+
const lightShadowMatrix = TSL.lightShadowMatrix;
|
|
225
248
|
const lightTargetDirection = TSL.lightTargetDirection;
|
|
226
249
|
const lightTargetPosition = TSL.lightTargetPosition;
|
|
227
250
|
const lightViewPosition = TSL.lightViewPosition;
|
|
@@ -230,13 +253,10 @@ const lights = TSL.lights;
|
|
|
230
253
|
const linearDepth = TSL.linearDepth;
|
|
231
254
|
const linearToneMapping = TSL.linearToneMapping;
|
|
232
255
|
const localId = TSL.localId;
|
|
233
|
-
const globalId = TSL.globalId;
|
|
234
256
|
const log = TSL.log;
|
|
235
257
|
const log2 = TSL.log2;
|
|
236
258
|
const logarithmicDepthToViewZ = TSL.logarithmicDepthToViewZ;
|
|
237
|
-
const loop = TSL.loop;
|
|
238
259
|
const luminance = TSL.luminance;
|
|
239
|
-
const mediumpModelViewMatrix = TSL.mediumpModelViewMatrix;
|
|
240
260
|
const mat2 = TSL.mat2;
|
|
241
261
|
const mat3 = TSL.mat3;
|
|
242
262
|
const mat4 = TSL.mat4;
|
|
@@ -253,6 +273,8 @@ const materialClearcoatRoughness = TSL.materialClearcoatRoughness;
|
|
|
253
273
|
const materialColor = TSL.materialColor;
|
|
254
274
|
const materialDispersion = TSL.materialDispersion;
|
|
255
275
|
const materialEmissive = TSL.materialEmissive;
|
|
276
|
+
const materialEnvIntensity = TSL.materialEnvIntensity;
|
|
277
|
+
const materialEnvRotation = TSL.materialEnvRotation;
|
|
256
278
|
const materialIOR = TSL.materialIOR;
|
|
257
279
|
const materialIridescence = TSL.materialIridescence;
|
|
258
280
|
const materialIridescenceIOR = TSL.materialIridescenceIOR;
|
|
@@ -283,6 +305,7 @@ const materialThickness = TSL.materialThickness;
|
|
|
283
305
|
const materialTransmission = TSL.materialTransmission;
|
|
284
306
|
const max = TSL.max;
|
|
285
307
|
const maxMipLevel = TSL.maxMipLevel;
|
|
308
|
+
const mediumpModelViewMatrix = TSL.mediumpModelViewMatrix;
|
|
286
309
|
const metalness = TSL.metalness;
|
|
287
310
|
const min = TSL.min;
|
|
288
311
|
const mix = TSL.mix;
|
|
@@ -303,24 +326,45 @@ const morphReference = TSL.morphReference;
|
|
|
303
326
|
const mrt = TSL.mrt;
|
|
304
327
|
const mul = TSL.mul;
|
|
305
328
|
const mx_aastep = TSL.mx_aastep;
|
|
329
|
+
const mx_add = TSL.mx_add;
|
|
330
|
+
const mx_atan2 = TSL.mx_atan2;
|
|
306
331
|
const mx_cell_noise_float = TSL.mx_cell_noise_float;
|
|
307
332
|
const mx_contrast = TSL.mx_contrast;
|
|
333
|
+
const mx_divide = TSL.mx_divide;
|
|
308
334
|
const mx_fractal_noise_float = TSL.mx_fractal_noise_float;
|
|
309
335
|
const mx_fractal_noise_vec2 = TSL.mx_fractal_noise_vec2;
|
|
310
336
|
const mx_fractal_noise_vec3 = TSL.mx_fractal_noise_vec3;
|
|
311
337
|
const mx_fractal_noise_vec4 = TSL.mx_fractal_noise_vec4;
|
|
338
|
+
const mx_frame = TSL.mx_frame;
|
|
339
|
+
const mx_heighttonormal = TSL.mx_heighttonormal;
|
|
312
340
|
const mx_hsvtorgb = TSL.mx_hsvtorgb;
|
|
341
|
+
const mx_ifequal = TSL.mx_ifequal;
|
|
342
|
+
const mx_ifgreater = TSL.mx_ifgreater;
|
|
343
|
+
const mx_ifgreatereq = TSL.mx_ifgreatereq;
|
|
344
|
+
const mx_invert = TSL.mx_invert;
|
|
345
|
+
const mx_modulo = TSL.mx_modulo;
|
|
346
|
+
const mx_multiply = TSL.mx_multiply;
|
|
313
347
|
const mx_noise_float = TSL.mx_noise_float;
|
|
314
348
|
const mx_noise_vec3 = TSL.mx_noise_vec3;
|
|
315
349
|
const mx_noise_vec4 = TSL.mx_noise_vec4;
|
|
350
|
+
const mx_place2d = TSL.mx_place2d;
|
|
351
|
+
const mx_power = TSL.mx_power;
|
|
352
|
+
const mx_ramp4 = TSL.mx_ramp4;
|
|
316
353
|
const mx_ramplr = TSL.mx_ramplr;
|
|
317
354
|
const mx_ramptb = TSL.mx_ramptb;
|
|
318
355
|
const mx_rgbtohsv = TSL.mx_rgbtohsv;
|
|
356
|
+
const mx_rotate2d = TSL.mx_rotate2d;
|
|
357
|
+
const mx_rotate3d = TSL.mx_rotate3d;
|
|
319
358
|
const mx_safepower = TSL.mx_safepower;
|
|
359
|
+
const mx_separate = TSL.mx_separate;
|
|
320
360
|
const mx_splitlr = TSL.mx_splitlr;
|
|
321
361
|
const mx_splittb = TSL.mx_splittb;
|
|
322
362
|
const mx_srgb_texture_to_lin_rec709 = TSL.mx_srgb_texture_to_lin_rec709;
|
|
363
|
+
const mx_subtract = TSL.mx_subtract;
|
|
364
|
+
const mx_timer = TSL.mx_timer;
|
|
323
365
|
const mx_transform_uv = TSL.mx_transform_uv;
|
|
366
|
+
const mx_unifiednoise2d = TSL.mx_unifiednoise2d;
|
|
367
|
+
const mx_unifiednoise3d = TSL.mx_unifiednoise3d;
|
|
324
368
|
const mx_worley_noise_float = TSL.mx_worley_noise_float;
|
|
325
369
|
const mx_worley_noise_vec2 = TSL.mx_worley_noise_vec2;
|
|
326
370
|
const mx_worley_noise_vec3 = TSL.mx_worley_noise_vec3;
|
|
@@ -329,14 +373,18 @@ const neutralToneMapping = TSL.neutralToneMapping;
|
|
|
329
373
|
const nodeArray = TSL.nodeArray;
|
|
330
374
|
const nodeImmutable = TSL.nodeImmutable;
|
|
331
375
|
const nodeObject = TSL.nodeObject;
|
|
376
|
+
const nodeObjectIntent = TSL.nodeObjectIntent;
|
|
332
377
|
const nodeObjects = TSL.nodeObjects;
|
|
333
378
|
const nodeProxy = TSL.nodeProxy;
|
|
379
|
+
const nodeProxyIntent = TSL.nodeProxyIntent;
|
|
334
380
|
const normalFlat = TSL.normalFlat;
|
|
335
381
|
const normalGeometry = TSL.normalGeometry;
|
|
336
382
|
const normalLocal = TSL.normalLocal;
|
|
337
383
|
const normalMap = TSL.normalMap;
|
|
338
384
|
const normalView = TSL.normalView;
|
|
385
|
+
const normalViewGeometry = TSL.normalViewGeometry;
|
|
339
386
|
const normalWorld = TSL.normalWorld;
|
|
387
|
+
const normalWorldGeometry = TSL.normalWorldGeometry;
|
|
340
388
|
const normalize = TSL.normalize;
|
|
341
389
|
const not = TSL.not;
|
|
342
390
|
const notEqual = TSL.notEqual;
|
|
@@ -348,6 +396,8 @@ const objectRadius = TSL.objectRadius;
|
|
|
348
396
|
const objectScale = TSL.objectScale;
|
|
349
397
|
const objectViewPosition = TSL.objectViewPosition;
|
|
350
398
|
const objectWorldMatrix = TSL.objectWorldMatrix;
|
|
399
|
+
const OnObjectUpdate = TSL.OnObjectUpdate;
|
|
400
|
+
const OnMaterialUpdate = TSL.OnMaterialUpdate;
|
|
351
401
|
const oneMinus = TSL.oneMinus;
|
|
352
402
|
const or = TSL.or;
|
|
353
403
|
const orthographicDepthToViewZ = TSL.orthographicDepthToViewZ;
|
|
@@ -368,6 +418,7 @@ const passTexture = TSL.passTexture;
|
|
|
368
418
|
const pcurve = TSL.pcurve;
|
|
369
419
|
const perspectiveDepthToViewZ = TSL.perspectiveDepthToViewZ;
|
|
370
420
|
const pmremTexture = TSL.pmremTexture;
|
|
421
|
+
const pointShadow = TSL.pointShadow;
|
|
371
422
|
const pointUV = TSL.pointUV;
|
|
372
423
|
const pointWidth = TSL.pointWidth;
|
|
373
424
|
const positionGeometry = TSL.positionGeometry;
|
|
@@ -382,6 +433,7 @@ const pow = TSL.pow;
|
|
|
382
433
|
const pow2 = TSL.pow2;
|
|
383
434
|
const pow3 = TSL.pow3;
|
|
384
435
|
const pow4 = TSL.pow4;
|
|
436
|
+
const premultiplyAlpha = TSL.premultiplyAlpha;
|
|
385
437
|
const property = TSL.property;
|
|
386
438
|
const radians = TSL.radians;
|
|
387
439
|
const rand = TSL.rand;
|
|
@@ -389,7 +441,6 @@ const range = TSL.range;
|
|
|
389
441
|
const rangeFog = TSL.rangeFog;
|
|
390
442
|
const rangeFogFactor = TSL.rangeFogFactor;
|
|
391
443
|
const reciprocal = TSL.reciprocal;
|
|
392
|
-
const lightProjectionUV = TSL.lightProjectionUV;
|
|
393
444
|
const reference = TSL.reference;
|
|
394
445
|
const referenceBuffer = TSL.referenceBuffer;
|
|
395
446
|
const reflect = TSL.reflect;
|
|
@@ -400,7 +451,6 @@ const refract = TSL.refract;
|
|
|
400
451
|
const refractVector = TSL.refractVector;
|
|
401
452
|
const refractView = TSL.refractView;
|
|
402
453
|
const reinhardToneMapping = TSL.reinhardToneMapping;
|
|
403
|
-
const remainder = TSL.remainder;
|
|
404
454
|
const remap = TSL.remap;
|
|
405
455
|
const remapClamp = TSL.remapClamp;
|
|
406
456
|
const renderGroup = TSL.renderGroup;
|
|
@@ -413,6 +463,7 @@ const round = TSL.round;
|
|
|
413
463
|
const rtt = TSL.rtt;
|
|
414
464
|
const sRGBTransferEOTF = TSL.sRGBTransferEOTF;
|
|
415
465
|
const sRGBTransferOETF = TSL.sRGBTransferOETF;
|
|
466
|
+
const sample = TSL.sample;
|
|
416
467
|
const sampler = TSL.sampler;
|
|
417
468
|
const samplerComparison = TSL.samplerComparison;
|
|
418
469
|
const saturate = TSL.saturate;
|
|
@@ -425,12 +476,12 @@ const scriptable = TSL.scriptable;
|
|
|
425
476
|
const scriptableValue = TSL.scriptableValue;
|
|
426
477
|
const select = TSL.select;
|
|
427
478
|
const setCurrentStack = TSL.setCurrentStack;
|
|
479
|
+
const setName = TSL.setName;
|
|
428
480
|
const shaderStages = TSL.shaderStages;
|
|
429
481
|
const shadow = TSL.shadow;
|
|
430
|
-
const pointShadow = TSL.pointShadow;
|
|
431
482
|
const shadowPositionWorld = TSL.shadowPositionWorld;
|
|
432
|
-
const sharedUniformGroup = TSL.sharedUniformGroup;
|
|
433
483
|
const shapeCircle = TSL.shapeCircle;
|
|
484
|
+
const sharedUniformGroup = TSL.sharedUniformGroup;
|
|
434
485
|
const sheen = TSL.sheen;
|
|
435
486
|
const sheenRoughness = TSL.sheenRoughness;
|
|
436
487
|
const shiftLeft = TSL.shiftLeft;
|
|
@@ -450,6 +501,7 @@ const spritesheetUV = TSL.spritesheetUV;
|
|
|
450
501
|
const sqrt = TSL.sqrt;
|
|
451
502
|
const stack = TSL.stack;
|
|
452
503
|
const step = TSL.step;
|
|
504
|
+
const stepElement = TSL.stepElement;
|
|
453
505
|
const storage = TSL.storage;
|
|
454
506
|
const storageBarrier = TSL.storageBarrier;
|
|
455
507
|
const storageObject = TSL.storageObject;
|
|
@@ -457,6 +509,7 @@ const storageTexture = TSL.storageTexture;
|
|
|
457
509
|
const string = TSL.string;
|
|
458
510
|
const struct = TSL.struct;
|
|
459
511
|
const sub = TSL.sub;
|
|
512
|
+
const subBuild = TSL.subBuild;
|
|
460
513
|
const subgroupIndex = TSL.subgroupIndex;
|
|
461
514
|
const subgroupSize = TSL.subgroupSize;
|
|
462
515
|
const tan = TSL.tan;
|
|
@@ -469,52 +522,43 @@ const texture = TSL.texture;
|
|
|
469
522
|
const texture3D = TSL.texture3D;
|
|
470
523
|
const textureBarrier = TSL.textureBarrier;
|
|
471
524
|
const textureBicubic = TSL.textureBicubic;
|
|
525
|
+
const textureBicubicLevel = TSL.textureBicubicLevel;
|
|
472
526
|
const textureCubeUV = TSL.textureCubeUV;
|
|
473
527
|
const textureLoad = TSL.textureLoad;
|
|
474
528
|
const textureSize = TSL.textureSize;
|
|
475
529
|
const textureStore = TSL.textureStore;
|
|
476
530
|
const thickness = TSL.thickness;
|
|
477
|
-
const threshold = TSL.threshold;
|
|
478
531
|
const time = TSL.time;
|
|
479
532
|
const timerDelta = TSL.timerDelta;
|
|
480
533
|
const timerGlobal = TSL.timerGlobal;
|
|
481
534
|
const timerLocal = TSL.timerLocal;
|
|
482
|
-
const toOutputColorSpace = TSL.toOutputColorSpace;
|
|
483
|
-
const toWorkingColorSpace = TSL.toWorkingColorSpace;
|
|
484
535
|
const toneMapping = TSL.toneMapping;
|
|
485
536
|
const toneMappingExposure = TSL.toneMappingExposure;
|
|
486
537
|
const toonOutlinePass = TSL.toonOutlinePass;
|
|
487
538
|
const transformDirection = TSL.transformDirection;
|
|
488
539
|
const transformNormal = TSL.transformNormal;
|
|
489
540
|
const transformNormalToView = TSL.transformNormalToView;
|
|
490
|
-
const transformedBentNormalView = TSL.transformedBentNormalView;
|
|
491
|
-
const transformedBitangentView = TSL.transformedBitangentView;
|
|
492
|
-
const transformedBitangentWorld = TSL.transformedBitangentWorld;
|
|
493
541
|
const transformedClearcoatNormalView = TSL.transformedClearcoatNormalView;
|
|
494
542
|
const transformedNormalView = TSL.transformedNormalView;
|
|
495
543
|
const transformedNormalWorld = TSL.transformedNormalWorld;
|
|
496
|
-
const transformedTangentView = TSL.transformedTangentView;
|
|
497
|
-
const transformedTangentWorld = TSL.transformedTangentWorld;
|
|
498
544
|
const transmission = TSL.transmission;
|
|
499
545
|
const transpose = TSL.transpose;
|
|
500
|
-
const tri = TSL.tri;
|
|
501
|
-
const tri3 = TSL.tri3;
|
|
502
546
|
const triNoise3D = TSL.triNoise3D;
|
|
503
547
|
const triplanarTexture = TSL.triplanarTexture;
|
|
504
548
|
const triplanarTextures = TSL.triplanarTextures;
|
|
505
549
|
const trunc = TSL.trunc;
|
|
506
|
-
const tslFn = TSL.tslFn;
|
|
507
550
|
const uint = TSL.uint;
|
|
508
551
|
const uniform = TSL.uniform;
|
|
509
552
|
const uniformArray = TSL.uniformArray;
|
|
553
|
+
const uniformCubeTexture = TSL.uniformCubeTexture;
|
|
510
554
|
const uniformGroup = TSL.uniformGroup;
|
|
511
|
-
const
|
|
555
|
+
const uniformTexture = TSL.uniformTexture;
|
|
556
|
+
const unpremultiplyAlpha = TSL.unpremultiplyAlpha;
|
|
512
557
|
const userData = TSL.userData;
|
|
513
558
|
const uv = TSL.uv;
|
|
514
559
|
const uvec2 = TSL.uvec2;
|
|
515
560
|
const uvec3 = TSL.uvec3;
|
|
516
561
|
const uvec4 = TSL.uvec4;
|
|
517
|
-
const Var = TSL.Var;
|
|
518
562
|
const varying = TSL.varying;
|
|
519
563
|
const varyingProperty = TSL.varyingProperty;
|
|
520
564
|
const vec2 = TSL.vec2;
|
|
@@ -524,12 +568,12 @@ const vectorComponents = TSL.vectorComponents;
|
|
|
524
568
|
const velocity = TSL.velocity;
|
|
525
569
|
const vertexColor = TSL.vertexColor;
|
|
526
570
|
const vertexIndex = TSL.vertexIndex;
|
|
571
|
+
const vertexStage = TSL.vertexStage;
|
|
527
572
|
const vibrance = TSL.vibrance;
|
|
528
573
|
const viewZToLogarithmicDepth = TSL.viewZToLogarithmicDepth;
|
|
529
574
|
const viewZToOrthographicDepth = TSL.viewZToOrthographicDepth;
|
|
530
575
|
const viewZToPerspectiveDepth = TSL.viewZToPerspectiveDepth;
|
|
531
576
|
const viewport = TSL.viewport;
|
|
532
|
-
const viewportBottomLeft = TSL.viewportBottomLeft;
|
|
533
577
|
const viewportCoordinate = TSL.viewportCoordinate;
|
|
534
578
|
const viewportDepthTexture = TSL.viewportDepthTexture;
|
|
535
579
|
const viewportLinearDepth = TSL.viewportLinearDepth;
|
|
@@ -539,7 +583,6 @@ const viewportSafeUV = TSL.viewportSafeUV;
|
|
|
539
583
|
const viewportSharedTexture = TSL.viewportSharedTexture;
|
|
540
584
|
const viewportSize = TSL.viewportSize;
|
|
541
585
|
const viewportTexture = TSL.viewportTexture;
|
|
542
|
-
const viewportTopLeft = TSL.viewportTopLeft;
|
|
543
586
|
const viewportUV = TSL.viewportUV;
|
|
544
587
|
const wgsl = TSL.wgsl;
|
|
545
588
|
const wgslFn = TSL.wgslFn;
|
|
@@ -549,4 +592,18 @@ const workgroupId = TSL.workgroupId;
|
|
|
549
592
|
const workingToColorSpace = TSL.workingToColorSpace;
|
|
550
593
|
const xor = TSL.xor;
|
|
551
594
|
|
|
552
|
-
|
|
595
|
+
/*
|
|
596
|
+
// Use this code to generate the export statements dynamically
|
|
597
|
+
|
|
598
|
+
let code = '';
|
|
599
|
+
|
|
600
|
+
for ( const key of Object.keys( THREE.TSL ) ) {
|
|
601
|
+
|
|
602
|
+
code += `export const ${ key } = TSL.${ key };\n`;
|
|
603
|
+
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
console.log( code );
|
|
607
|
+
//*/
|
|
608
|
+
|
|
609
|
+
export { BRDF_GGX, BRDF_Lambert, BasicPointShadowFilter, BasicShadowFilter, Break, Const, Continue, DFGApprox, D_GGX, Discard, EPSILON, F_Schlick, Fn, INFINITY, If, Loop, NodeAccess, NodeShaderStage, NodeType, NodeUpdateType, OnMaterialUpdate, OnObjectUpdate, PCFShadowFilter, PCFSoftShadowFilter, PI, PI2, PointShadowFilter, Return, Schlick_to_F0, ScriptableNodeResources, ShaderNode, Stack, Switch, TBNViewMatrix, VSMShadowFilter, V_GGX_SmithCorrelated, Var, VarIntent, abs, acesFilmicToneMapping, acos, add, addMethodChaining, addNodeElement, agxToneMapping, all, alphaT, and, anisotropy, anisotropyB, anisotropyT, any, append, array, arrayBuffer, asin, assign, atan, atan2, atomicAdd, atomicAnd, atomicFunc, atomicLoad, atomicMax, atomicMin, atomicOr, atomicStore, atomicSub, atomicXor, attenuationColor, attenuationDistance, attribute, attributeArray, backgroundBlurriness, backgroundIntensity, backgroundRotation, batch, bentNormalView, billboarding, bitAnd, bitNot, bitOr, bitXor, bitangentGeometry, bitangentLocal, bitangentView, bitangentWorld, bitcast, blendBurn, blendColor, blendDodge, blendOverlay, blendScreen, blur, bool, buffer, bufferAttribute, bumpMap, burn, bvec2, bvec3, bvec4, bypass, cache, call, cameraFar, cameraIndex, cameraNear, cameraNormalMatrix, cameraPosition, cameraProjectionMatrix, cameraProjectionMatrixInverse, cameraViewMatrix, cameraWorldMatrix, cbrt, cdl, ceil, checker, cineonToneMapping, clamp, clearcoat, clearcoatNormalView, clearcoatRoughness, code, color, colorSpaceToWorking, colorToDirection, compute, computeKernel, computeSkinning, context, convert, convertColorSpace, convertToTexture, cos, cross, cubeTexture, cubeTextureBase, cubeToUV, dFdx, dFdy, dashSize, debug, decrement, decrementBefore, defaultBuildStages, defaultShaderStages, defined, degrees, deltaTime, densityFog, densityFogFactor, depth, depthPass, determinant, difference, diffuseColor, directPointLight, directionToColor, directionToFaceDirection, dispersion, distance, div, dodge, dot, drawIndex, dynamicBufferAttribute, element, emissive, equal, equals, equirectUV, exp, exp2, expression, faceDirection, faceForward, faceforward, float, floor, fog, fract, frameGroup, frameId, frontFacing, fwidth, gain, gapSize, getConstNodeType, getCurrentStack, getDirection, getDistanceAttenuation, getGeometryRoughness, getNormalFromDepth, getParallaxCorrectNormal, getRoughness, getScreenPosition, getShIrradianceAt, getShadowMaterial, getShadowRenderObjectFunction, getTextureIndex, getViewPosition, globalId, glsl, glslFn, grayscale, greaterThan, greaterThanEqual, hash, highpModelNormalViewMatrix, highpModelViewMatrix, hue, increment, incrementBefore, instance, instanceIndex, instancedArray, instancedBufferAttribute, instancedDynamicBufferAttribute, instancedMesh, int, inverse, inverseSqrt, inversesqrt, invocationLocalIndex, invocationSubgroupIndex, ior, iridescence, iridescenceIOR, iridescenceThickness, ivec2, ivec3, ivec4, js, label, length, lengthSq, lessThan, lessThanEqual, lightPosition, lightProjectionUV, lightShadowMatrix, lightTargetDirection, lightTargetPosition, lightViewPosition, lightingContext, lights, linearDepth, linearToneMapping, localId, log, log2, logarithmicDepthToViewZ, luminance, mat2, mat3, mat4, matcapUV, materialAO, materialAlphaTest, materialAnisotropy, materialAnisotropyVector, materialAttenuationColor, materialAttenuationDistance, materialClearcoat, materialClearcoatNormal, materialClearcoatRoughness, materialColor, materialDispersion, materialEmissive, materialEnvIntensity, materialEnvRotation, materialIOR, materialIridescence, materialIridescenceIOR, materialIridescenceThickness, materialLightMap, materialLineDashOffset, materialLineDashSize, materialLineGapSize, materialLineScale, materialLineWidth, materialMetalness, materialNormal, materialOpacity, materialPointSize, materialReference, materialReflectivity, materialRefractionRatio, materialRotation, materialRoughness, materialSheen, materialSheenRoughness, materialShininess, materialSpecular, materialSpecularColor, materialSpecularIntensity, materialSpecularStrength, materialThickness, materialTransmission, max, maxMipLevel, mediumpModelViewMatrix, metalness, min, mix, mixElement, mod, modInt, modelDirection, modelNormalMatrix, modelPosition, modelRadius, modelScale, modelViewMatrix, modelViewPosition, modelViewProjection, modelWorldMatrix, modelWorldMatrixInverse, morphReference, mrt, mul, mx_aastep, mx_add, mx_atan2, mx_cell_noise_float, mx_contrast, mx_divide, mx_fractal_noise_float, mx_fractal_noise_vec2, mx_fractal_noise_vec3, mx_fractal_noise_vec4, mx_frame, mx_heighttonormal, mx_hsvtorgb, mx_ifequal, mx_ifgreater, mx_ifgreatereq, mx_invert, mx_modulo, mx_multiply, mx_noise_float, mx_noise_vec3, mx_noise_vec4, mx_place2d, mx_power, mx_ramp4, mx_ramplr, mx_ramptb, mx_rgbtohsv, mx_rotate2d, mx_rotate3d, mx_safepower, mx_separate, mx_splitlr, mx_splittb, mx_srgb_texture_to_lin_rec709, mx_subtract, mx_timer, mx_transform_uv, mx_unifiednoise2d, mx_unifiednoise3d, mx_worley_noise_float, mx_worley_noise_vec2, mx_worley_noise_vec3, negate, neutralToneMapping, nodeArray, nodeImmutable, nodeObject, nodeObjectIntent, nodeObjects, nodeProxy, nodeProxyIntent, normalFlat, normalGeometry, normalLocal, normalMap, normalView, normalViewGeometry, normalWorld, normalWorldGeometry, normalize, not, notEqual, numWorkgroups, objectDirection, objectGroup, objectPosition, objectRadius, objectScale, objectViewPosition, objectWorldMatrix, oneMinus, or, orthographicDepthToViewZ, oscSawtooth, oscSine, oscSquare, oscTriangle, output, outputStruct, overlay, overloadingFn, parabola, parallaxDirection, parallaxUV, parameter, pass, passTexture, pcurve, perspectiveDepthToViewZ, pmremTexture, pointShadow, pointUV, pointWidth, positionGeometry, positionLocal, positionPrevious, positionView, positionViewDirection, positionWorld, positionWorldDirection, posterize, pow, pow2, pow3, pow4, premultiplyAlpha, property, radians, rand, range, rangeFog, rangeFogFactor, reciprocal, reference, referenceBuffer, reflect, reflectVector, reflectView, reflector, refract, refractVector, refractView, reinhardToneMapping, remap, remapClamp, renderGroup, renderOutput, rendererReference, rotate, rotateUV, roughness, round, rtt, sRGBTransferEOTF, sRGBTransferOETF, sample, sampler, samplerComparison, saturate, saturation, screen, screenCoordinate, screenSize, screenUV, scriptable, scriptableValue, select, setCurrentStack, setName, shaderStages, shadow, shadowPositionWorld, shapeCircle, sharedUniformGroup, sheen, sheenRoughness, shiftLeft, shiftRight, shininess, sign, sin, sinc, skinning, smoothstep, smoothstepElement, specularColor, specularF90, spherizeUV, split, spritesheetUV, sqrt, stack, step, stepElement, storage, storageBarrier, storageObject, storageTexture, string, struct, sub, subBuild, subgroupIndex, subgroupSize, tan, tangentGeometry, tangentLocal, tangentView, tangentWorld, temp, texture, texture3D, textureBarrier, textureBicubic, textureBicubicLevel, textureCubeUV, textureLoad, textureSize, textureStore, thickness, time, timerDelta, timerGlobal, timerLocal, toneMapping, toneMappingExposure, toonOutlinePass, transformDirection, transformNormal, transformNormalToView, transformedClearcoatNormalView, transformedNormalView, transformedNormalWorld, transmission, transpose, triNoise3D, triplanarTexture, triplanarTextures, trunc, uint, uniform, uniformArray, uniformCubeTexture, uniformGroup, uniformTexture, unpremultiplyAlpha, userData, uv, uvec2, uvec3, uvec4, varying, varyingProperty, vec2, vec3, vec4, vectorComponents, velocity, vertexColor, vertexIndex, vertexStage, vibrance, viewZToLogarithmicDepth, viewZToOrthographicDepth, viewZToPerspectiveDepth, viewport, viewportCoordinate, viewportDepthTexture, viewportLinearDepth, viewportMipTexture, viewportResolution, viewportSafeUV, viewportSharedTexture, viewportSize, viewportTexture, viewportUV, wgsl, wgslFn, workgroupArray, workgroupBarrier, workgroupId, workingToColorSpace, xor };
|
package/build/three.tsl.min.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Copyright 2010-2025 Three.js Authors
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*/
|
|
6
|
-
import{TSL as e}from"three/webgpu";const t=e.BRDF_GGX,r=e.BRDF_Lambert,a=e.BasicShadowFilter,o=e.Break,i=e.Continue,n=e.DFGApprox,s=e.D_GGX,l=e.Discard,c=e.EPSILON,m=e.F_Schlick,p=e.Fn,d=e.INFINITY,u=e.If,g=e.Loop,h=e.NodeShaderStage,x=e.NodeType,f=e.NodeUpdateType,b=e.NodeAccess,w=e.PCFShadowFilter,v=e.PCFSoftShadowFilter,S=e.PI,T=e.PI2,_=e.Return,V=e.Schlick_to_F0,y=e.ScriptableNodeResources,D=e.ShaderNode,M=e.TBNViewMatrix,F=e.VSMShadowFilter,C=e.V_GGX_SmithCorrelated,I=e.abs,P=e.acesFilmicToneMapping,N=e.acos,R=e.add,B=e.addNodeElement,L=e.agxToneMapping,k=e.all,A=e.alphaT,G=e.and,O=e.anisotropy,W=e.anisotropyB,j=e.anisotropyT,U=e.any,z=e.append,q=e.array,E=e.arrayBuffer,Z=e.asin,X=e.assign,Y=e.atan,H=e.atan2,J=e.atomicAdd,K=e.atomicAnd,Q=e.atomicFunc,$=e.atomicMax,ee=e.atomicMin,te=e.atomicOr,re=e.atomicStore,ae=e.atomicSub,oe=e.atomicXor,ie=e.atomicLoad,ne=e.attenuationColor,se=e.attenuationDistance,le=e.attribute,ce=e.attributeArray,me=e.backgroundBlurriness,pe=e.backgroundIntensity,de=e.backgroundRotation,ue=e.batch,ge=e.billboarding,he=e.bitAnd,xe=e.bitNot,fe=e.bitOr,be=e.bitXor,we=e.bitangentGeometry,ve=e.bitangentLocal,Se=e.bitangentView,Te=e.bitangentWorld,_e=e.bitcast,Ve=e.blendBurn,ye=e.blendColor,De=e.blendDodge,Me=e.blendOverlay,Fe=e.blendScreen,Ce=e.blur,Ie=e.bool,Pe=e.buffer,Ne=e.bufferAttribute,Re=e.bumpMap,Be=e.burn,Le=e.bvec2,ke=e.bvec3,Ae=e.bvec4,Ge=e.bypass,Oe=e.cache,We=e.call,je=e.cameraFar,Ue=e.cameraIndex,ze=e.cameraNear,qe=e.cameraNormalMatrix,Ee=e.cameraPosition,Ze=e.cameraProjectionMatrix,Xe=e.cameraProjectionMatrixInverse,Ye=e.cameraViewMatrix,He=e.cameraWorldMatrix,Je=e.cbrt,Ke=e.cdl,Qe=e.ceil,$e=e.checker,et=e.cineonToneMapping,tt=e.clamp,rt=e.clearcoat,at=e.clearcoatRoughness,ot=e.code,it=e.color,nt=e.colorSpaceToWorking,st=e.colorToDirection,lt=e.compute,ct=e.computeSkinning,mt=e.cond,pt=e.Const,dt=e.context,ut=e.convert,gt=e.convertColorSpace,ht=e.convertToTexture,xt=e.cos,ft=e.cross,bt=e.cubeTexture,wt=e.dFdx,vt=e.dFdy,St=e.dashSize,Tt=e.debug,_t=e.defaultBuildStages,Vt=e.defaultShaderStages,yt=e.defined,Dt=e.degrees,Mt=e.deltaTime,Ft=e.densityFog,Ct=e.densityFogFactor,It=e.depth,Pt=e.depthPass,Nt=e.difference,Rt=e.diffuseColor,Bt=e.directPointLight,Lt=e.directionToColor,kt=e.dispersion,At=e.distance,Gt=e.div,Ot=e.dodge,Wt=e.dot,jt=e.drawIndex,Ut=e.dynamicBufferAttribute,zt=e.element,qt=e.emissive,Et=e.equal,Zt=e.equals,Xt=e.equirectUV,Yt=e.exp,Ht=e.exp2,Jt=e.expression,Kt=e.faceDirection,Qt=e.faceForward,$t=e.faceforward,er=e.float,tr=e.floor,rr=e.fog,ar=e.fract,or=e.frameGroup,ir=e.frameId,nr=e.frontFacing,sr=e.fwidth,lr=e.gain,cr=e.gapSize,mr=e.getConstNodeType,pr=e.getCurrentStack,dr=e.getDirection,ur=e.getDistanceAttenuation,gr=e.getGeometryRoughness,hr=e.getNormalFromDepth,xr=e.getParallaxCorrectNormal,fr=e.getRoughness,br=e.getScreenPosition,wr=e.getShIrradianceAt,vr=e.getTextureIndex,Sr=e.getViewPosition,Tr=e.glsl,_r=e.glslFn,Vr=e.grayscale,yr=e.greaterThan,Dr=e.greaterThanEqual,Mr=e.hash,Fr=e.highpModelNormalViewMatrix,Cr=e.highpModelViewMatrix,Ir=e.hue,Pr=e.instance,Nr=e.instanceIndex,Rr=e.instancedArray,Br=e.instancedBufferAttribute,Lr=e.instancedDynamicBufferAttribute,kr=e.instancedMesh,Ar=e.int,Gr=e.inverseSqrt,Or=e.inversesqrt,Wr=e.invocationLocalIndex,jr=e.invocationSubgroupIndex,Ur=e.ior,zr=e.iridescence,qr=e.iridescenceIOR,Er=e.iridescenceThickness,Zr=e.ivec2,Xr=e.ivec3,Yr=e.ivec4,Hr=e.js,Jr=e.label,Kr=e.length,Qr=e.lengthSq,$r=e.lessThan,ea=e.lessThanEqual,ta=e.lightPosition,ra=e.lightTargetDirection,aa=e.lightTargetPosition,oa=e.lightViewPosition,ia=e.lightingContext,na=e.lights,sa=e.linearDepth,la=e.linearToneMapping,ca=e.localId,ma=e.globalId,pa=e.log,da=e.log2,ua=e.logarithmicDepthToViewZ,ga=e.loop,ha=e.luminance,xa=e.mediumpModelViewMatrix,fa=e.mat2,ba=e.mat3,wa=e.mat4,va=e.matcapUV,Sa=e.materialAO,Ta=e.materialAlphaTest,_a=e.materialAnisotropy,Va=e.materialAnisotropyVector,ya=e.materialAttenuationColor,Da=e.materialAttenuationDistance,Ma=e.materialClearcoat,Fa=e.materialClearcoatNormal,Ca=e.materialClearcoatRoughness,Ia=e.materialColor,Pa=e.materialDispersion,Na=e.materialEmissive,Ra=e.materialIOR,Ba=e.materialIridescence,La=e.materialIridescenceIOR,ka=e.materialIridescenceThickness,Aa=e.materialLightMap,Ga=e.materialLineDashOffset,Oa=e.materialLineDashSize,Wa=e.materialLineGapSize,ja=e.materialLineScale,Ua=e.materialLineWidth,za=e.materialMetalness,qa=e.materialNormal,Ea=e.materialOpacity,Za=e.materialPointSize,Xa=e.materialReference,Ya=e.materialReflectivity,Ha=e.materialRefractionRatio,Ja=e.materialRotation,Ka=e.materialRoughness,Qa=e.materialSheen,$a=e.materialSheenRoughness,eo=e.materialShininess,to=e.materialSpecular,ro=e.materialSpecularColor,ao=e.materialSpecularIntensity,oo=e.materialSpecularStrength,io=e.materialThickness,no=e.materialTransmission,so=e.max,lo=e.maxMipLevel,co=e.metalness,mo=e.min,po=e.mix,uo=e.mixElement,go=e.mod,ho=e.modInt,xo=e.modelDirection,fo=e.modelNormalMatrix,bo=e.modelPosition,wo=e.modelRadius,vo=e.modelScale,So=e.modelViewMatrix,To=e.modelViewPosition,_o=e.modelViewProjection,Vo=e.modelWorldMatrix,yo=e.modelWorldMatrixInverse,Do=e.morphReference,Mo=e.mrt,Fo=e.mul,Co=e.mx_aastep,Io=e.mx_cell_noise_float,Po=e.mx_contrast,No=e.mx_fractal_noise_float,Ro=e.mx_fractal_noise_vec2,Bo=e.mx_fractal_noise_vec3,Lo=e.mx_fractal_noise_vec4,ko=e.mx_hsvtorgb,Ao=e.mx_noise_float,Go=e.mx_noise_vec3,Oo=e.mx_noise_vec4,Wo=e.mx_ramplr,jo=e.mx_ramptb,Uo=e.mx_rgbtohsv,zo=e.mx_safepower,qo=e.mx_splitlr,Eo=e.mx_splittb,Zo=e.mx_srgb_texture_to_lin_rec709,Xo=e.mx_transform_uv,Yo=e.mx_worley_noise_float,Ho=e.mx_worley_noise_vec2,Jo=e.mx_worley_noise_vec3,Ko=e.negate,Qo=e.neutralToneMapping,$o=e.nodeArray,ei=e.nodeImmutable,ti=e.nodeObject,ri=e.nodeObjects,ai=e.nodeProxy,oi=e.normalFlat,ii=e.normalGeometry,ni=e.normalLocal,si=e.normalMap,li=e.normalView,ci=e.normalWorld,mi=e.normalize,pi=e.not,di=e.notEqual,ui=e.numWorkgroups,gi=e.objectDirection,hi=e.objectGroup,xi=e.objectPosition,fi=e.objectRadius,bi=e.objectScale,wi=e.objectViewPosition,vi=e.objectWorldMatrix,Si=e.oneMinus,Ti=e.or,_i=e.orthographicDepthToViewZ,Vi=e.oscSawtooth,yi=e.oscSine,Di=e.oscSquare,Mi=e.oscTriangle,Fi=e.output,Ci=e.outputStruct,Ii=e.overlay,Pi=e.overloadingFn,Ni=e.parabola,Ri=e.parallaxDirection,Bi=e.parallaxUV,Li=e.parameter,ki=e.pass,Ai=e.passTexture,Gi=e.pcurve,Oi=e.perspectiveDepthToViewZ,Wi=e.pmremTexture,ji=e.pointUV,Ui=e.pointWidth,zi=e.positionGeometry,qi=e.positionLocal,Ei=e.positionPrevious,Zi=e.positionView,Xi=e.positionViewDirection,Yi=e.positionWorld,Hi=e.positionWorldDirection,Ji=e.posterize,Ki=e.pow,Qi=e.pow2,$i=e.pow3,en=e.pow4,tn=e.property,rn=e.radians,an=e.rand,on=e.range,nn=e.rangeFog,sn=e.rangeFogFactor,ln=e.reciprocal,cn=e.lightProjectionUV,mn=e.reference,pn=e.referenceBuffer,dn=e.reflect,un=e.reflectVector,gn=e.reflectView,hn=e.reflector,xn=e.refract,fn=e.refractVector,bn=e.refractView,wn=e.reinhardToneMapping,vn=e.remainder,Sn=e.remap,Tn=e.remapClamp,_n=e.renderGroup,Vn=e.renderOutput,yn=e.rendererReference,Dn=e.rotate,Mn=e.rotateUV,Fn=e.roughness,Cn=e.round,In=e.rtt,Pn=e.sRGBTransferEOTF,Nn=e.sRGBTransferOETF,Rn=e.sampler,Bn=e.samplerComparison,Ln=e.saturate,kn=e.saturation,An=e.screen,Gn=e.screenCoordinate,On=e.screenSize,Wn=e.screenUV,jn=e.scriptable,Un=e.scriptableValue,zn=e.select,qn=e.setCurrentStack,En=e.shaderStages,Zn=e.shadow,Xn=e.pointShadow,Yn=e.shadowPositionWorld,Hn=e.sharedUniformGroup,Jn=e.shapeCircle,Kn=e.sheen,Qn=e.sheenRoughness,$n=e.shiftLeft,es=e.shiftRight,ts=e.shininess,rs=e.sign,as=e.sin,os=e.sinc,is=e.skinning,ns=e.smoothstep,ss=e.smoothstepElement,ls=e.specularColor,cs=e.specularF90,ms=e.spherizeUV,ps=e.split,ds=e.spritesheetUV,us=e.sqrt,gs=e.stack,hs=e.step,xs=e.storage,fs=e.storageBarrier,bs=e.storageObject,ws=e.storageTexture,vs=e.string,Ss=e.struct,Ts=e.sub,_s=e.subgroupIndex,Vs=e.subgroupSize,ys=e.tan,Ds=e.tangentGeometry,Ms=e.tangentLocal,Fs=e.tangentView,Cs=e.tangentWorld,Is=e.temp,Ps=e.texture,Ns=e.texture3D,Rs=e.textureBarrier,Bs=e.textureBicubic,Ls=e.textureCubeUV,ks=e.textureLoad,As=e.textureSize,Gs=e.textureStore,Os=e.thickness,Ws=e.threshold,js=e.time,Us=e.timerDelta,zs=e.timerGlobal,qs=e.timerLocal,Es=e.toOutputColorSpace,Zs=e.toWorkingColorSpace,Xs=e.toneMapping,Ys=e.toneMappingExposure,Hs=e.toonOutlinePass,Js=e.transformDirection,Ks=e.transformNormal,Qs=e.transformNormalToView,$s=e.transformedBentNormalView,el=e.transformedBitangentView,tl=e.transformedBitangentWorld,rl=e.transformedClearcoatNormalView,al=e.transformedNormalView,ol=e.transformedNormalWorld,il=e.transformedTangentView,nl=e.transformedTangentWorld,sl=e.transmission,ll=e.transpose,cl=e.tri,ml=e.tri3,pl=e.triNoise3D,dl=e.triplanarTexture,ul=e.triplanarTextures,gl=e.trunc,hl=e.tslFn,xl=e.uint,fl=e.uniform,bl=e.uniformArray,wl=e.uniformGroup,vl=e.uniforms,Sl=e.userData,Tl=e.uv,_l=e.uvec2,Vl=e.uvec3,yl=e.uvec4,Dl=e.Var,Ml=e.varying,Fl=e.varyingProperty,Cl=e.vec2,Il=e.vec3,Pl=e.vec4,Nl=e.vectorComponents,Rl=e.velocity,Bl=e.vertexColor,Ll=e.vertexIndex,kl=e.vibrance,Al=e.viewZToLogarithmicDepth,Gl=e.viewZToOrthographicDepth,Ol=e.viewZToPerspectiveDepth,Wl=e.viewport,jl=e.viewportBottomLeft,Ul=e.viewportCoordinate,zl=e.viewportDepthTexture,ql=e.viewportLinearDepth,El=e.viewportMipTexture,Zl=e.viewportResolution,Xl=e.viewportSafeUV,Yl=e.viewportSharedTexture,Hl=e.viewportSize,Jl=e.viewportTexture,Kl=e.viewportTopLeft,Ql=e.viewportUV,$l=e.wgsl,ec=e.wgslFn,tc=e.workgroupArray,rc=e.workgroupBarrier,ac=e.workgroupId,oc=e.workingToColorSpace,ic=e.xor;export{t as BRDF_GGX,r as BRDF_Lambert,a as BasicShadowFilter,o as Break,pt as Const,i as Continue,n as DFGApprox,s as D_GGX,l as Discard,c as EPSILON,m as F_Schlick,p as Fn,d as INFINITY,u as If,g as Loop,b as NodeAccess,h as NodeShaderStage,x as NodeType,f as NodeUpdateType,w as PCFShadowFilter,v as PCFSoftShadowFilter,S as PI,T as PI2,_ as Return,V as Schlick_to_F0,y as ScriptableNodeResources,D as ShaderNode,M as TBNViewMatrix,F as VSMShadowFilter,C as V_GGX_SmithCorrelated,Dl as Var,I as abs,P as acesFilmicToneMapping,N as acos,R as add,B as addNodeElement,L as agxToneMapping,k as all,A as alphaT,G as and,O as anisotropy,W as anisotropyB,j as anisotropyT,U as any,z as append,q as array,E as arrayBuffer,Z as asin,X as assign,Y as atan,H as atan2,J as atomicAdd,K as atomicAnd,Q as atomicFunc,ie as atomicLoad,$ as atomicMax,ee as atomicMin,te as atomicOr,re as atomicStore,ae as atomicSub,oe as atomicXor,ne as attenuationColor,se as attenuationDistance,le as attribute,ce as attributeArray,me as backgroundBlurriness,pe as backgroundIntensity,de as backgroundRotation,ue as batch,ge as billboarding,he as bitAnd,xe as bitNot,fe as bitOr,be as bitXor,we as bitangentGeometry,ve as bitangentLocal,Se as bitangentView,Te as bitangentWorld,_e as bitcast,Ve as blendBurn,ye as blendColor,De as blendDodge,Me as blendOverlay,Fe as blendScreen,Ce as blur,Ie as bool,Pe as buffer,Ne as bufferAttribute,Re as bumpMap,Be as burn,Le as bvec2,ke as bvec3,Ae as bvec4,Ge as bypass,Oe as cache,We as call,je as cameraFar,Ue as cameraIndex,ze as cameraNear,qe as cameraNormalMatrix,Ee as cameraPosition,Ze as cameraProjectionMatrix,Xe as cameraProjectionMatrixInverse,Ye as cameraViewMatrix,He as cameraWorldMatrix,Je as cbrt,Ke as cdl,Qe as ceil,$e as checker,et as cineonToneMapping,tt as clamp,rt as clearcoat,at as clearcoatRoughness,ot as code,it as color,nt as colorSpaceToWorking,st as colorToDirection,lt as compute,ct as computeSkinning,mt as cond,dt as context,ut as convert,gt as convertColorSpace,ht as convertToTexture,xt as cos,ft as cross,bt as cubeTexture,wt as dFdx,vt as dFdy,St as dashSize,Tt as debug,_t as defaultBuildStages,Vt as defaultShaderStages,yt as defined,Dt as degrees,Mt as deltaTime,Ft as densityFog,Ct as densityFogFactor,It as depth,Pt as depthPass,Nt as difference,Rt as diffuseColor,Bt as directPointLight,Lt as directionToColor,kt as dispersion,At as distance,Gt as div,Ot as dodge,Wt as dot,jt as drawIndex,Ut as dynamicBufferAttribute,zt as element,qt as emissive,Et as equal,Zt as equals,Xt as equirectUV,Yt as exp,Ht as exp2,Jt as expression,Kt as faceDirection,Qt as faceForward,$t as faceforward,er as float,tr as floor,rr as fog,ar as fract,or as frameGroup,ir as frameId,nr as frontFacing,sr as fwidth,lr as gain,cr as gapSize,mr as getConstNodeType,pr as getCurrentStack,dr as getDirection,ur as getDistanceAttenuation,gr as getGeometryRoughness,hr as getNormalFromDepth,xr as getParallaxCorrectNormal,fr as getRoughness,br as getScreenPosition,wr as getShIrradianceAt,vr as getTextureIndex,Sr as getViewPosition,ma as globalId,Tr as glsl,_r as glslFn,Vr as grayscale,yr as greaterThan,Dr as greaterThanEqual,Mr as hash,Fr as highpModelNormalViewMatrix,Cr as highpModelViewMatrix,Ir as hue,Pr as instance,Nr as instanceIndex,Rr as instancedArray,Br as instancedBufferAttribute,Lr as instancedDynamicBufferAttribute,kr as instancedMesh,Ar as int,Gr as inverseSqrt,Or as inversesqrt,Wr as invocationLocalIndex,jr as invocationSubgroupIndex,Ur as ior,zr as iridescence,qr as iridescenceIOR,Er as iridescenceThickness,Zr as ivec2,Xr as ivec3,Yr as ivec4,Hr as js,Jr as label,Kr as length,Qr as lengthSq,$r as lessThan,ea as lessThanEqual,ta as lightPosition,cn as lightProjectionUV,ra as lightTargetDirection,aa as lightTargetPosition,oa as lightViewPosition,ia as lightingContext,na as lights,sa as linearDepth,la as linearToneMapping,ca as localId,pa as log,da as log2,ua as logarithmicDepthToViewZ,ga as loop,ha as luminance,fa as mat2,ba as mat3,wa as mat4,va as matcapUV,Sa as materialAO,Ta as materialAlphaTest,_a as materialAnisotropy,Va as materialAnisotropyVector,ya as materialAttenuationColor,Da as materialAttenuationDistance,Ma as materialClearcoat,Fa as materialClearcoatNormal,Ca as materialClearcoatRoughness,Ia as materialColor,Pa as materialDispersion,Na as materialEmissive,Ra as materialIOR,Ba as materialIridescence,La as materialIridescenceIOR,ka as materialIridescenceThickness,Aa as materialLightMap,Ga as materialLineDashOffset,Oa as materialLineDashSize,Wa as materialLineGapSize,ja as materialLineScale,Ua as materialLineWidth,za as materialMetalness,qa as materialNormal,Ea as materialOpacity,Za as materialPointSize,Xa as materialReference,Ya as materialReflectivity,Ha as materialRefractionRatio,Ja as materialRotation,Ka as materialRoughness,Qa as materialSheen,$a as materialSheenRoughness,eo as materialShininess,to as materialSpecular,ro as materialSpecularColor,ao as materialSpecularIntensity,oo as materialSpecularStrength,io as materialThickness,no as materialTransmission,so as max,lo as maxMipLevel,xa as mediumpModelViewMatrix,co as metalness,mo as min,po as mix,uo as mixElement,go as mod,ho as modInt,xo as modelDirection,fo as modelNormalMatrix,bo as modelPosition,wo as modelRadius,vo as modelScale,So as modelViewMatrix,To as modelViewPosition,_o as modelViewProjection,Vo as modelWorldMatrix,yo as modelWorldMatrixInverse,Do as morphReference,Mo as mrt,Fo as mul,Co as mx_aastep,Io as mx_cell_noise_float,Po as mx_contrast,No as mx_fractal_noise_float,Ro as mx_fractal_noise_vec2,Bo as mx_fractal_noise_vec3,Lo as mx_fractal_noise_vec4,ko as mx_hsvtorgb,Ao as mx_noise_float,Go as mx_noise_vec3,Oo as mx_noise_vec4,Wo as mx_ramplr,jo as mx_ramptb,Uo as mx_rgbtohsv,zo as mx_safepower,qo as mx_splitlr,Eo as mx_splittb,Zo as mx_srgb_texture_to_lin_rec709,Xo as mx_transform_uv,Yo as mx_worley_noise_float,Ho as mx_worley_noise_vec2,Jo as mx_worley_noise_vec3,Ko as negate,Qo as neutralToneMapping,$o as nodeArray,ei as nodeImmutable,ti as nodeObject,ri as nodeObjects,ai as nodeProxy,oi as normalFlat,ii as normalGeometry,ni as normalLocal,si as normalMap,li as normalView,ci as normalWorld,mi as normalize,pi as not,di as notEqual,ui as numWorkgroups,gi as objectDirection,hi as objectGroup,xi as objectPosition,fi as objectRadius,bi as objectScale,wi as objectViewPosition,vi as objectWorldMatrix,Si as oneMinus,Ti as or,_i as orthographicDepthToViewZ,Vi as oscSawtooth,yi as oscSine,Di as oscSquare,Mi as oscTriangle,Fi as output,Ci as outputStruct,Ii as overlay,Pi as overloadingFn,Ni as parabola,Ri as parallaxDirection,Bi as parallaxUV,Li as parameter,ki as pass,Ai as passTexture,Gi as pcurve,Oi as perspectiveDepthToViewZ,Wi as pmremTexture,Xn as pointShadow,ji as pointUV,Ui as pointWidth,zi as positionGeometry,qi as positionLocal,Ei as positionPrevious,Zi as positionView,Xi as positionViewDirection,Yi as positionWorld,Hi as positionWorldDirection,Ji as posterize,Ki as pow,Qi as pow2,$i as pow3,en as pow4,tn as property,rn as radians,an as rand,on as range,nn as rangeFog,sn as rangeFogFactor,ln as reciprocal,mn as reference,pn as referenceBuffer,dn as reflect,un as reflectVector,gn as reflectView,hn as reflector,xn as refract,fn as refractVector,bn as refractView,wn as reinhardToneMapping,vn as remainder,Sn as remap,Tn as remapClamp,_n as renderGroup,Vn as renderOutput,yn as rendererReference,Dn as rotate,Mn as rotateUV,Fn as roughness,Cn as round,In as rtt,Pn as sRGBTransferEOTF,Nn as sRGBTransferOETF,Rn as sampler,Bn as samplerComparison,Ln as saturate,kn as saturation,An as screen,Gn as screenCoordinate,On as screenSize,Wn as screenUV,jn as scriptable,Un as scriptableValue,zn as select,qn as setCurrentStack,En as shaderStages,Zn as shadow,Yn as shadowPositionWorld,Jn as shapeCircle,Hn as sharedUniformGroup,Kn as sheen,Qn as sheenRoughness,$n as shiftLeft,es as shiftRight,ts as shininess,rs as sign,as as sin,os as sinc,is as skinning,ns as smoothstep,ss as smoothstepElement,ls as specularColor,cs as specularF90,ms as spherizeUV,ps as split,ds as spritesheetUV,us as sqrt,gs as stack,hs as step,xs as storage,fs as storageBarrier,bs as storageObject,ws as storageTexture,vs as string,Ss as struct,Ts as sub,_s as subgroupIndex,Vs as subgroupSize,ys as tan,Ds as tangentGeometry,Ms as tangentLocal,Fs as tangentView,Cs as tangentWorld,Is as temp,Ps as texture,Ns as texture3D,Rs as textureBarrier,Bs as textureBicubic,Ls as textureCubeUV,ks as textureLoad,As as textureSize,Gs as textureStore,Os as thickness,Ws as threshold,js as time,Us as timerDelta,zs as timerGlobal,qs as timerLocal,Es as toOutputColorSpace,Zs as toWorkingColorSpace,Xs as toneMapping,Ys as toneMappingExposure,Hs as toonOutlinePass,Js as transformDirection,Ks as transformNormal,Qs as transformNormalToView,$s as transformedBentNormalView,el as transformedBitangentView,tl as transformedBitangentWorld,rl as transformedClearcoatNormalView,al as transformedNormalView,ol as transformedNormalWorld,il as transformedTangentView,nl as transformedTangentWorld,sl as transmission,ll as transpose,cl as tri,ml as tri3,pl as triNoise3D,dl as triplanarTexture,ul as triplanarTextures,gl as trunc,hl as tslFn,xl as uint,fl as uniform,bl as uniformArray,wl as uniformGroup,vl as uniforms,Sl as userData,Tl as uv,_l as uvec2,Vl as uvec3,yl as uvec4,Ml as varying,Fl as varyingProperty,Cl as vec2,Il as vec3,Pl as vec4,Nl as vectorComponents,Rl as velocity,Bl as vertexColor,Ll as vertexIndex,kl as vibrance,Al as viewZToLogarithmicDepth,Gl as viewZToOrthographicDepth,Ol as viewZToPerspectiveDepth,Wl as viewport,jl as viewportBottomLeft,Ul as viewportCoordinate,zl as viewportDepthTexture,ql as viewportLinearDepth,El as viewportMipTexture,Zl as viewportResolution,Xl as viewportSafeUV,Yl as viewportSharedTexture,Hl as viewportSize,Jl as viewportTexture,Kl as viewportTopLeft,Ql as viewportUV,$l as wgsl,ec as wgslFn,tc as workgroupArray,rc as workgroupBarrier,ac as workgroupId,oc as workingToColorSpace,ic as xor};
|
|
6
|
+
import{TSL as e}from"three/webgpu";const t=e.BRDF_GGX,r=e.BRDF_Lambert,a=e.BasicPointShadowFilter,o=e.BasicShadowFilter,i=e.Break,n=e.Const,l=e.Continue,s=e.DFGApprox,c=e.D_GGX,m=e.Discard,d=e.EPSILON,p=e.F_Schlick,u=e.Fn,g=e.INFINITY,h=e.If,x=e.Loop,f=e.NodeAccess,b=e.NodeShaderStage,w=e.NodeType,_=e.NodeUpdateType,v=e.PCFShadowFilter,S=e.PCFSoftShadowFilter,T=e.PI,y=e.PI2,V=e.PointShadowFilter,M=e.Return,D=e.Schlick_to_F0,F=e.ScriptableNodeResources,I=e.ShaderNode,C=e.Stack,P=e.Switch,N=e.TBNViewMatrix,R=e.VSMShadowFilter,B=e.V_GGX_SmithCorrelated,A=e.Var,k=e.VarIntent,G=e.abs,L=e.acesFilmicToneMapping,O=e.acos,j=e.add,U=e.addMethodChaining,W=e.addNodeElement,E=e.agxToneMapping,q=e.all,z=e.alphaT,Z=e.and,X=e.anisotropy,K=e.anisotropyB,Y=e.anisotropyT,H=e.any,J=e.append,Q=e.array,$=e.arrayBuffer,ee=e.asin,te=e.assign,re=e.atan,ae=e.atan2,oe=e.atomicAdd,ie=e.atomicAnd,ne=e.atomicFunc,le=e.atomicLoad,se=e.atomicMax,ce=e.atomicMin,me=e.atomicOr,de=e.atomicStore,pe=e.atomicSub,ue=e.atomicXor,ge=e.attenuationColor,he=e.attenuationDistance,xe=e.attribute,fe=e.attributeArray,be=e.backgroundBlurriness,we=e.backgroundIntensity,_e=e.backgroundRotation,ve=e.batch,Se=e.bentNormalView,Te=e.billboarding,ye=e.bitAnd,Ve=e.bitNot,Me=e.bitOr,De=e.bitXor,Fe=e.bitangentGeometry,Ie=e.bitangentLocal,Ce=e.bitangentView,Pe=e.bitangentWorld,Ne=e.bitcast,Re=e.blendBurn,Be=e.blendColor,Ae=e.blendDodge,ke=e.blendOverlay,Ge=e.blendScreen,Le=e.blur,Oe=e.bool,je=e.buffer,Ue=e.bufferAttribute,We=e.bumpMap,Ee=e.burn,qe=e.bvec2,ze=e.bvec3,Ze=e.bvec4,Xe=e.bypass,Ke=e.cache,Ye=e.call,He=e.cameraFar,Je=e.cameraIndex,Qe=e.cameraNear,$e=e.cameraNormalMatrix,et=e.cameraPosition,tt=e.cameraProjectionMatrix,rt=e.cameraProjectionMatrixInverse,at=e.cameraViewMatrix,ot=e.cameraWorldMatrix,it=e.cbrt,nt=e.cdl,lt=e.ceil,st=e.checker,ct=e.cineonToneMapping,mt=e.clamp,dt=e.clearcoat,pt=e.clearcoatNormalView,ut=e.clearcoatRoughness,gt=e.code,ht=e.color,xt=e.colorSpaceToWorking,ft=e.colorToDirection,bt=e.compute,wt=e.computeKernel,_t=e.computeSkinning,vt=e.context,St=e.convert,Tt=e.convertColorSpace,yt=e.convertToTexture,Vt=e.cos,Mt=e.cross,Dt=e.cubeTexture,Ft=e.cubeTextureBase,It=e.cubeToUV,Ct=e.dFdx,Pt=e.dFdy,Nt=e.dashSize,Rt=e.debug,Bt=e.decrement,At=e.decrementBefore,kt=e.defaultBuildStages,Gt=e.defaultShaderStages,Lt=e.defined,Ot=e.degrees,jt=e.deltaTime,Ut=e.densityFog,Wt=e.densityFogFactor,Et=e.depth,qt=e.depthPass,zt=e.determinant,Zt=e.difference,Xt=e.diffuseColor,Kt=e.directPointLight,Yt=e.directionToColor,Ht=e.directionToFaceDirection,Jt=e.dispersion,Qt=e.distance,$t=e.div,er=e.dodge,tr=e.dot,rr=e.drawIndex,ar=e.dynamicBufferAttribute,or=e.element,ir=e.emissive,nr=e.equal,lr=e.equals,sr=e.equirectUV,cr=e.exp,mr=e.exp2,dr=e.expression,pr=e.faceDirection,ur=e.faceForward,gr=e.faceforward,hr=e.float,xr=e.floor,fr=e.fog,br=e.fract,wr=e.frameGroup,_r=e.frameId,vr=e.frontFacing,Sr=e.fwidth,Tr=e.gain,yr=e.gapSize,Vr=e.getConstNodeType,Mr=e.getCurrentStack,Dr=e.getDirection,Fr=e.getDistanceAttenuation,Ir=e.getGeometryRoughness,Cr=e.getNormalFromDepth,Pr=e.getParallaxCorrectNormal,Nr=e.getRoughness,Rr=e.getScreenPosition,Br=e.getShIrradianceAt,Ar=e.getShadowMaterial,kr=e.getShadowRenderObjectFunction,Gr=e.getTextureIndex,Lr=e.getViewPosition,Or=e.globalId,jr=e.glsl,Ur=e.glslFn,Wr=e.grayscale,Er=e.greaterThan,qr=e.greaterThanEqual,zr=e.hash,Zr=e.highpModelNormalViewMatrix,Xr=e.highpModelViewMatrix,Kr=e.hue,Yr=e.increment,Hr=e.incrementBefore,Jr=e.instance,Qr=e.instanceIndex,$r=e.instancedArray,ea=e.instancedBufferAttribute,ta=e.instancedDynamicBufferAttribute,ra=e.instancedMesh,aa=e.int,oa=e.inverse,ia=e.inverseSqrt,na=e.inversesqrt,la=e.invocationLocalIndex,sa=e.invocationSubgroupIndex,ca=e.ior,ma=e.iridescence,da=e.iridescenceIOR,pa=e.iridescenceThickness,ua=e.ivec2,ga=e.ivec3,ha=e.ivec4,xa=e.js,fa=e.label,ba=e.length,wa=e.lengthSq,_a=e.lessThan,va=e.lessThanEqual,Sa=e.lightPosition,Ta=e.lightProjectionUV,ya=e.lightShadowMatrix,Va=e.lightTargetDirection,Ma=e.lightTargetPosition,Da=e.lightViewPosition,Fa=e.lightingContext,Ia=e.lights,Ca=e.linearDepth,Pa=e.linearToneMapping,Na=e.localId,Ra=e.log,Ba=e.log2,Aa=e.logarithmicDepthToViewZ,ka=e.luminance,Ga=e.mat2,La=e.mat3,Oa=e.mat4,ja=e.matcapUV,Ua=e.materialAO,Wa=e.materialAlphaTest,Ea=e.materialAnisotropy,qa=e.materialAnisotropyVector,za=e.materialAttenuationColor,Za=e.materialAttenuationDistance,Xa=e.materialClearcoat,Ka=e.materialClearcoatNormal,Ya=e.materialClearcoatRoughness,Ha=e.materialColor,Ja=e.materialDispersion,Qa=e.materialEmissive,$a=e.materialEnvIntensity,eo=e.materialEnvRotation,to=e.materialIOR,ro=e.materialIridescence,ao=e.materialIridescenceIOR,oo=e.materialIridescenceThickness,io=e.materialLightMap,no=e.materialLineDashOffset,lo=e.materialLineDashSize,so=e.materialLineGapSize,co=e.materialLineScale,mo=e.materialLineWidth,po=e.materialMetalness,uo=e.materialNormal,go=e.materialOpacity,ho=e.materialPointSize,xo=e.materialReference,fo=e.materialReflectivity,bo=e.materialRefractionRatio,wo=e.materialRotation,_o=e.materialRoughness,vo=e.materialSheen,So=e.materialSheenRoughness,To=e.materialShininess,yo=e.materialSpecular,Vo=e.materialSpecularColor,Mo=e.materialSpecularIntensity,Do=e.materialSpecularStrength,Fo=e.materialThickness,Io=e.materialTransmission,Co=e.max,Po=e.maxMipLevel,No=e.mediumpModelViewMatrix,Ro=e.metalness,Bo=e.min,Ao=e.mix,ko=e.mixElement,Go=e.mod,Lo=e.modInt,Oo=e.modelDirection,jo=e.modelNormalMatrix,Uo=e.modelPosition,Wo=e.modelRadius,Eo=e.modelScale,qo=e.modelViewMatrix,zo=e.modelViewPosition,Zo=e.modelViewProjection,Xo=e.modelWorldMatrix,Ko=e.modelWorldMatrixInverse,Yo=e.morphReference,Ho=e.mrt,Jo=e.mul,Qo=e.mx_aastep,$o=e.mx_add,ei=e.mx_atan2,ti=e.mx_cell_noise_float,ri=e.mx_contrast,ai=e.mx_divide,oi=e.mx_fractal_noise_float,ii=e.mx_fractal_noise_vec2,ni=e.mx_fractal_noise_vec3,li=e.mx_fractal_noise_vec4,si=e.mx_frame,ci=e.mx_heighttonormal,mi=e.mx_hsvtorgb,di=e.mx_ifequal,pi=e.mx_ifgreater,ui=e.mx_ifgreatereq,gi=e.mx_invert,hi=e.mx_modulo,xi=e.mx_multiply,fi=e.mx_noise_float,bi=e.mx_noise_vec3,wi=e.mx_noise_vec4,_i=e.mx_place2d,vi=e.mx_power,Si=e.mx_ramp4,Ti=e.mx_ramplr,yi=e.mx_ramptb,Vi=e.mx_rgbtohsv,Mi=e.mx_rotate2d,Di=e.mx_rotate3d,Fi=e.mx_safepower,Ii=e.mx_separate,Ci=e.mx_splitlr,Pi=e.mx_splittb,Ni=e.mx_srgb_texture_to_lin_rec709,Ri=e.mx_subtract,Bi=e.mx_timer,Ai=e.mx_transform_uv,ki=e.mx_unifiednoise2d,Gi=e.mx_unifiednoise3d,Li=e.mx_worley_noise_float,Oi=e.mx_worley_noise_vec2,ji=e.mx_worley_noise_vec3,Ui=e.negate,Wi=e.neutralToneMapping,Ei=e.nodeArray,qi=e.nodeImmutable,zi=e.nodeObject,Zi=e.nodeObjectIntent,Xi=e.nodeObjects,Ki=e.nodeProxy,Yi=e.nodeProxyIntent,Hi=e.normalFlat,Ji=e.normalGeometry,Qi=e.normalLocal,$i=e.normalMap,en=e.normalView,tn=e.normalViewGeometry,rn=e.normalWorld,an=e.normalWorldGeometry,on=e.normalize,nn=e.not,ln=e.notEqual,sn=e.numWorkgroups,cn=e.objectDirection,mn=e.objectGroup,dn=e.objectPosition,pn=e.objectRadius,un=e.objectScale,gn=e.objectViewPosition,hn=e.objectWorldMatrix,xn=e.OnObjectUpdate,fn=e.OnMaterialUpdate,bn=e.oneMinus,wn=e.or,_n=e.orthographicDepthToViewZ,vn=e.oscSawtooth,Sn=e.oscSine,Tn=e.oscSquare,yn=e.oscTriangle,Vn=e.output,Mn=e.outputStruct,Dn=e.overlay,Fn=e.overloadingFn,In=e.parabola,Cn=e.parallaxDirection,Pn=e.parallaxUV,Nn=e.parameter,Rn=e.pass,Bn=e.passTexture,An=e.pcurve,kn=e.perspectiveDepthToViewZ,Gn=e.pmremTexture,Ln=e.pointShadow,On=e.pointUV,jn=e.pointWidth,Un=e.positionGeometry,Wn=e.positionLocal,En=e.positionPrevious,qn=e.positionView,zn=e.positionViewDirection,Zn=e.positionWorld,Xn=e.positionWorldDirection,Kn=e.posterize,Yn=e.pow,Hn=e.pow2,Jn=e.pow3,Qn=e.pow4,$n=e.premultiplyAlpha,el=e.property,tl=e.radians,rl=e.rand,al=e.range,ol=e.rangeFog,il=e.rangeFogFactor,nl=e.reciprocal,ll=e.reference,sl=e.referenceBuffer,cl=e.reflect,ml=e.reflectVector,dl=e.reflectView,pl=e.reflector,ul=e.refract,gl=e.refractVector,hl=e.refractView,xl=e.reinhardToneMapping,fl=e.remap,bl=e.remapClamp,wl=e.renderGroup,_l=e.renderOutput,vl=e.rendererReference,Sl=e.rotate,Tl=e.rotateUV,yl=e.roughness,Vl=e.round,Ml=e.rtt,Dl=e.sRGBTransferEOTF,Fl=e.sRGBTransferOETF,Il=e.sample,Cl=e.sampler,Pl=e.samplerComparison,Nl=e.saturate,Rl=e.saturation,Bl=e.screen,Al=e.screenCoordinate,kl=e.screenSize,Gl=e.screenUV,Ll=e.scriptable,Ol=e.scriptableValue,jl=e.select,Ul=e.setCurrentStack,Wl=e.setName,El=e.shaderStages,ql=e.shadow,zl=e.shadowPositionWorld,Zl=e.shapeCircle,Xl=e.sharedUniformGroup,Kl=e.sheen,Yl=e.sheenRoughness,Hl=e.shiftLeft,Jl=e.shiftRight,Ql=e.shininess,$l=e.sign,es=e.sin,ts=e.sinc,rs=e.skinning,as=e.smoothstep,os=e.smoothstepElement,is=e.specularColor,ns=e.specularF90,ls=e.spherizeUV,ss=e.split,cs=e.spritesheetUV,ms=e.sqrt,ds=e.stack,ps=e.step,us=e.stepElement,gs=e.storage,hs=e.storageBarrier,xs=e.storageObject,fs=e.storageTexture,bs=e.string,ws=e.struct,_s=e.sub,vs=e.subBuild,Ss=e.subgroupIndex,Ts=e.subgroupSize,ys=e.tan,Vs=e.tangentGeometry,Ms=e.tangentLocal,Ds=e.tangentView,Fs=e.tangentWorld,Is=e.temp,Cs=e.texture,Ps=e.texture3D,Ns=e.textureBarrier,Rs=e.textureBicubic,Bs=e.textureBicubicLevel,As=e.textureCubeUV,ks=e.textureLoad,Gs=e.textureSize,Ls=e.textureStore,Os=e.thickness,js=e.time,Us=e.timerDelta,Ws=e.timerGlobal,Es=e.timerLocal,qs=e.toneMapping,zs=e.toneMappingExposure,Zs=e.toonOutlinePass,Xs=e.transformDirection,Ks=e.transformNormal,Ys=e.transformNormalToView,Hs=e.transformedClearcoatNormalView,Js=e.transformedNormalView,Qs=e.transformedNormalWorld,$s=e.transmission,ec=e.transpose,tc=e.triNoise3D,rc=e.triplanarTexture,ac=e.triplanarTextures,oc=e.trunc,ic=e.uint,nc=e.uniform,lc=e.uniformArray,sc=e.uniformCubeTexture,cc=e.uniformGroup,mc=e.uniformTexture,dc=e.unpremultiplyAlpha,pc=e.userData,uc=e.uv,gc=e.uvec2,hc=e.uvec3,xc=e.uvec4,fc=e.varying,bc=e.varyingProperty,wc=e.vec2,_c=e.vec3,vc=e.vec4,Sc=e.vectorComponents,Tc=e.velocity,yc=e.vertexColor,Vc=e.vertexIndex,Mc=e.vertexStage,Dc=e.vibrance,Fc=e.viewZToLogarithmicDepth,Ic=e.viewZToOrthographicDepth,Cc=e.viewZToPerspectiveDepth,Pc=e.viewport,Nc=e.viewportCoordinate,Rc=e.viewportDepthTexture,Bc=e.viewportLinearDepth,Ac=e.viewportMipTexture,kc=e.viewportResolution,Gc=e.viewportSafeUV,Lc=e.viewportSharedTexture,Oc=e.viewportSize,jc=e.viewportTexture,Uc=e.viewportUV,Wc=e.wgsl,Ec=e.wgslFn,qc=e.workgroupArray,zc=e.workgroupBarrier,Zc=e.workgroupId,Xc=e.workingToColorSpace,Kc=e.xor;export{t as BRDF_GGX,r as BRDF_Lambert,a as BasicPointShadowFilter,o as BasicShadowFilter,i as Break,n as Const,l as Continue,s as DFGApprox,c as D_GGX,m as Discard,d as EPSILON,p as F_Schlick,u as Fn,g as INFINITY,h as If,x as Loop,f as NodeAccess,b as NodeShaderStage,w as NodeType,_ as NodeUpdateType,fn as OnMaterialUpdate,xn as OnObjectUpdate,v as PCFShadowFilter,S as PCFSoftShadowFilter,T as PI,y as PI2,V as PointShadowFilter,M as Return,D as Schlick_to_F0,F as ScriptableNodeResources,I as ShaderNode,C as Stack,P as Switch,N as TBNViewMatrix,R as VSMShadowFilter,B as V_GGX_SmithCorrelated,A as Var,k as VarIntent,G as abs,L as acesFilmicToneMapping,O as acos,j as add,U as addMethodChaining,W as addNodeElement,E as agxToneMapping,q as all,z as alphaT,Z as and,X as anisotropy,K as anisotropyB,Y as anisotropyT,H as any,J as append,Q as array,$ as arrayBuffer,ee as asin,te as assign,re as atan,ae as atan2,oe as atomicAdd,ie as atomicAnd,ne as atomicFunc,le as atomicLoad,se as atomicMax,ce as atomicMin,me as atomicOr,de as atomicStore,pe as atomicSub,ue as atomicXor,ge as attenuationColor,he as attenuationDistance,xe as attribute,fe as attributeArray,be as backgroundBlurriness,we as backgroundIntensity,_e as backgroundRotation,ve as batch,Se as bentNormalView,Te as billboarding,ye as bitAnd,Ve as bitNot,Me as bitOr,De as bitXor,Fe as bitangentGeometry,Ie as bitangentLocal,Ce as bitangentView,Pe as bitangentWorld,Ne as bitcast,Re as blendBurn,Be as blendColor,Ae as blendDodge,ke as blendOverlay,Ge as blendScreen,Le as blur,Oe as bool,je as buffer,Ue as bufferAttribute,We as bumpMap,Ee as burn,qe as bvec2,ze as bvec3,Ze as bvec4,Xe as bypass,Ke as cache,Ye as call,He as cameraFar,Je as cameraIndex,Qe as cameraNear,$e as cameraNormalMatrix,et as cameraPosition,tt as cameraProjectionMatrix,rt as cameraProjectionMatrixInverse,at as cameraViewMatrix,ot as cameraWorldMatrix,it as cbrt,nt as cdl,lt as ceil,st as checker,ct as cineonToneMapping,mt as clamp,dt as clearcoat,pt as clearcoatNormalView,ut as clearcoatRoughness,gt as code,ht as color,xt as colorSpaceToWorking,ft as colorToDirection,bt as compute,wt as computeKernel,_t as computeSkinning,vt as context,St as convert,Tt as convertColorSpace,yt as convertToTexture,Vt as cos,Mt as cross,Dt as cubeTexture,Ft as cubeTextureBase,It as cubeToUV,Ct as dFdx,Pt as dFdy,Nt as dashSize,Rt as debug,Bt as decrement,At as decrementBefore,kt as defaultBuildStages,Gt as defaultShaderStages,Lt as defined,Ot as degrees,jt as deltaTime,Ut as densityFog,Wt as densityFogFactor,Et as depth,qt as depthPass,zt as determinant,Zt as difference,Xt as diffuseColor,Kt as directPointLight,Yt as directionToColor,Ht as directionToFaceDirection,Jt as dispersion,Qt as distance,$t as div,er as dodge,tr as dot,rr as drawIndex,ar as dynamicBufferAttribute,or as element,ir as emissive,nr as equal,lr as equals,sr as equirectUV,cr as exp,mr as exp2,dr as expression,pr as faceDirection,ur as faceForward,gr as faceforward,hr as float,xr as floor,fr as fog,br as fract,wr as frameGroup,_r as frameId,vr as frontFacing,Sr as fwidth,Tr as gain,yr as gapSize,Vr as getConstNodeType,Mr as getCurrentStack,Dr as getDirection,Fr as getDistanceAttenuation,Ir as getGeometryRoughness,Cr as getNormalFromDepth,Pr as getParallaxCorrectNormal,Nr as getRoughness,Rr as getScreenPosition,Br as getShIrradianceAt,Ar as getShadowMaterial,kr as getShadowRenderObjectFunction,Gr as getTextureIndex,Lr as getViewPosition,Or as globalId,jr as glsl,Ur as glslFn,Wr as grayscale,Er as greaterThan,qr as greaterThanEqual,zr as hash,Zr as highpModelNormalViewMatrix,Xr as highpModelViewMatrix,Kr as hue,Yr as increment,Hr as incrementBefore,Jr as instance,Qr as instanceIndex,$r as instancedArray,ea as instancedBufferAttribute,ta as instancedDynamicBufferAttribute,ra as instancedMesh,aa as int,oa as inverse,ia as inverseSqrt,na as inversesqrt,la as invocationLocalIndex,sa as invocationSubgroupIndex,ca as ior,ma as iridescence,da as iridescenceIOR,pa as iridescenceThickness,ua as ivec2,ga as ivec3,ha as ivec4,xa as js,fa as label,ba as length,wa as lengthSq,_a as lessThan,va as lessThanEqual,Sa as lightPosition,Ta as lightProjectionUV,ya as lightShadowMatrix,Va as lightTargetDirection,Ma as lightTargetPosition,Da as lightViewPosition,Fa as lightingContext,Ia as lights,Ca as linearDepth,Pa as linearToneMapping,Na as localId,Ra as log,Ba as log2,Aa as logarithmicDepthToViewZ,ka as luminance,Ga as mat2,La as mat3,Oa as mat4,ja as matcapUV,Ua as materialAO,Wa as materialAlphaTest,Ea as materialAnisotropy,qa as materialAnisotropyVector,za as materialAttenuationColor,Za as materialAttenuationDistance,Xa as materialClearcoat,Ka as materialClearcoatNormal,Ya as materialClearcoatRoughness,Ha as materialColor,Ja as materialDispersion,Qa as materialEmissive,$a as materialEnvIntensity,eo as materialEnvRotation,to as materialIOR,ro as materialIridescence,ao as materialIridescenceIOR,oo as materialIridescenceThickness,io as materialLightMap,no as materialLineDashOffset,lo as materialLineDashSize,so as materialLineGapSize,co as materialLineScale,mo as materialLineWidth,po as materialMetalness,uo as materialNormal,go as materialOpacity,ho as materialPointSize,xo as materialReference,fo as materialReflectivity,bo as materialRefractionRatio,wo as materialRotation,_o as materialRoughness,vo as materialSheen,So as materialSheenRoughness,To as materialShininess,yo as materialSpecular,Vo as materialSpecularColor,Mo as materialSpecularIntensity,Do as materialSpecularStrength,Fo as materialThickness,Io as materialTransmission,Co as max,Po as maxMipLevel,No as mediumpModelViewMatrix,Ro as metalness,Bo as min,Ao as mix,ko as mixElement,Go as mod,Lo as modInt,Oo as modelDirection,jo as modelNormalMatrix,Uo as modelPosition,Wo as modelRadius,Eo as modelScale,qo as modelViewMatrix,zo as modelViewPosition,Zo as modelViewProjection,Xo as modelWorldMatrix,Ko as modelWorldMatrixInverse,Yo as morphReference,Ho as mrt,Jo as mul,Qo as mx_aastep,$o as mx_add,ei as mx_atan2,ti as mx_cell_noise_float,ri as mx_contrast,ai as mx_divide,oi as mx_fractal_noise_float,ii as mx_fractal_noise_vec2,ni as mx_fractal_noise_vec3,li as mx_fractal_noise_vec4,si as mx_frame,ci as mx_heighttonormal,mi as mx_hsvtorgb,di as mx_ifequal,pi as mx_ifgreater,ui as mx_ifgreatereq,gi as mx_invert,hi as mx_modulo,xi as mx_multiply,fi as mx_noise_float,bi as mx_noise_vec3,wi as mx_noise_vec4,_i as mx_place2d,vi as mx_power,Si as mx_ramp4,Ti as mx_ramplr,yi as mx_ramptb,Vi as mx_rgbtohsv,Mi as mx_rotate2d,Di as mx_rotate3d,Fi as mx_safepower,Ii as mx_separate,Ci as mx_splitlr,Pi as mx_splittb,Ni as mx_srgb_texture_to_lin_rec709,Ri as mx_subtract,Bi as mx_timer,Ai as mx_transform_uv,ki as mx_unifiednoise2d,Gi as mx_unifiednoise3d,Li as mx_worley_noise_float,Oi as mx_worley_noise_vec2,ji as mx_worley_noise_vec3,Ui as negate,Wi as neutralToneMapping,Ei as nodeArray,qi as nodeImmutable,zi as nodeObject,Zi as nodeObjectIntent,Xi as nodeObjects,Ki as nodeProxy,Yi as nodeProxyIntent,Hi as normalFlat,Ji as normalGeometry,Qi as normalLocal,$i as normalMap,en as normalView,tn as normalViewGeometry,rn as normalWorld,an as normalWorldGeometry,on as normalize,nn as not,ln as notEqual,sn as numWorkgroups,cn as objectDirection,mn as objectGroup,dn as objectPosition,pn as objectRadius,un as objectScale,gn as objectViewPosition,hn as objectWorldMatrix,bn as oneMinus,wn as or,_n as orthographicDepthToViewZ,vn as oscSawtooth,Sn as oscSine,Tn as oscSquare,yn as oscTriangle,Vn as output,Mn as outputStruct,Dn as overlay,Fn as overloadingFn,In as parabola,Cn as parallaxDirection,Pn as parallaxUV,Nn as parameter,Rn as pass,Bn as passTexture,An as pcurve,kn as perspectiveDepthToViewZ,Gn as pmremTexture,Ln as pointShadow,On as pointUV,jn as pointWidth,Un as positionGeometry,Wn as positionLocal,En as positionPrevious,qn as positionView,zn as positionViewDirection,Zn as positionWorld,Xn as positionWorldDirection,Kn as posterize,Yn as pow,Hn as pow2,Jn as pow3,Qn as pow4,$n as premultiplyAlpha,el as property,tl as radians,rl as rand,al as range,ol as rangeFog,il as rangeFogFactor,nl as reciprocal,ll as reference,sl as referenceBuffer,cl as reflect,ml as reflectVector,dl as reflectView,pl as reflector,ul as refract,gl as refractVector,hl as refractView,xl as reinhardToneMapping,fl as remap,bl as remapClamp,wl as renderGroup,_l as renderOutput,vl as rendererReference,Sl as rotate,Tl as rotateUV,yl as roughness,Vl as round,Ml as rtt,Dl as sRGBTransferEOTF,Fl as sRGBTransferOETF,Il as sample,Cl as sampler,Pl as samplerComparison,Nl as saturate,Rl as saturation,Bl as screen,Al as screenCoordinate,kl as screenSize,Gl as screenUV,Ll as scriptable,Ol as scriptableValue,jl as select,Ul as setCurrentStack,Wl as setName,El as shaderStages,ql as shadow,zl as shadowPositionWorld,Zl as shapeCircle,Xl as sharedUniformGroup,Kl as sheen,Yl as sheenRoughness,Hl as shiftLeft,Jl as shiftRight,Ql as shininess,$l as sign,es as sin,ts as sinc,rs as skinning,as as smoothstep,os as smoothstepElement,is as specularColor,ns as specularF90,ls as spherizeUV,ss as split,cs as spritesheetUV,ms as sqrt,ds as stack,ps as step,us as stepElement,gs as storage,hs as storageBarrier,xs as storageObject,fs as storageTexture,bs as string,ws as struct,_s as sub,vs as subBuild,Ss as subgroupIndex,Ts as subgroupSize,ys as tan,Vs as tangentGeometry,Ms as tangentLocal,Ds as tangentView,Fs as tangentWorld,Is as temp,Cs as texture,Ps as texture3D,Ns as textureBarrier,Rs as textureBicubic,Bs as textureBicubicLevel,As as textureCubeUV,ks as textureLoad,Gs as textureSize,Ls as textureStore,Os as thickness,js as time,Us as timerDelta,Ws as timerGlobal,Es as timerLocal,qs as toneMapping,zs as toneMappingExposure,Zs as toonOutlinePass,Xs as transformDirection,Ks as transformNormal,Ys as transformNormalToView,Hs as transformedClearcoatNormalView,Js as transformedNormalView,Qs as transformedNormalWorld,$s as transmission,ec as transpose,tc as triNoise3D,rc as triplanarTexture,ac as triplanarTextures,oc as trunc,ic as uint,nc as uniform,lc as uniformArray,sc as uniformCubeTexture,cc as uniformGroup,mc as uniformTexture,dc as unpremultiplyAlpha,pc as userData,uc as uv,gc as uvec2,hc as uvec3,xc as uvec4,fc as varying,bc as varyingProperty,wc as vec2,_c as vec3,vc as vec4,Sc as vectorComponents,Tc as velocity,yc as vertexColor,Vc as vertexIndex,Mc as vertexStage,Dc as vibrance,Fc as viewZToLogarithmicDepth,Ic as viewZToOrthographicDepth,Cc as viewZToPerspectiveDepth,Pc as viewport,Nc as viewportCoordinate,Rc as viewportDepthTexture,Bc as viewportLinearDepth,Ac as viewportMipTexture,kc as viewportResolution,Gc as viewportSafeUV,Lc as viewportSharedTexture,Oc as viewportSize,jc as viewportTexture,Uc as viewportUV,Wc as wgsl,Ec as wgslFn,qc as workgroupArray,zc as workgroupBarrier,Zc as workgroupId,Xc as workingToColorSpace,Kc as xor};
|