three-stdlib 2.35.7 → 2.35.9
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/_polyfill/constants.d.cts +1 -0
- package/_polyfill/constants.d.ts +1 -1
- package/_polyfill/uv1.d.cts +5 -0
- package/_polyfill/uv1.d.ts +1 -1
- package/animation/AnimationClipCreator.d.cts +12 -0
- package/animation/AnimationClipCreator.d.ts +1 -1
- package/animation/CCDIKSolver.d.cts +30 -0
- package/animation/CCDIKSolver.d.ts +1 -1
- package/animation/MMDAnimationHelper.d.cts +93 -0
- package/animation/MMDAnimationHelper.d.ts +3 -3
- package/animation/MMDPhysics.d.cts +119 -0
- package/animation/MMDPhysics.d.ts +1 -1
- package/cameras/CinematicCamera.d.cts +34 -0
- package/cameras/CinematicCamera.d.ts +2 -2
- package/controls/ArcballControls.d.cts +376 -0
- package/controls/ArcballControls.d.ts +4 -4
- package/controls/DeviceOrientationControls.d.cts +29 -0
- package/controls/DeviceOrientationControls.d.ts +4 -4
- package/controls/DragControls.d.cts +67 -0
- package/controls/DragControls.d.ts +3 -3
- package/controls/EventDispatcher.d.cts +41 -0
- package/controls/EventDispatcher.d.ts +1 -1
- package/controls/FirstPersonControls.d.cts +49 -0
- package/controls/FirstPersonControls.d.ts +3 -3
- package/controls/FlyControls.d.cts +39 -0
- package/controls/FlyControls.d.ts +3 -3
- package/controls/OrbitControls.d.cts +74 -0
- package/controls/OrbitControls.d.ts +4 -4
- package/controls/PointerLockControls.d.cts +39 -0
- package/controls/PointerLockControls.d.ts +3 -3
- package/controls/StandardControlsEventMap.d.cts +14 -0
- package/controls/TrackballControls.d.cts +97 -0
- package/controls/TrackballControls.d.ts +4 -4
- package/controls/TransformControls.d.cts +151 -0
- package/controls/TransformControls.d.ts +2 -2
- package/controls/experimental/CameraControls.d.cts +213 -0
- package/controls/experimental/CameraControls.d.ts +4 -4
- package/csm/CSM.d.cts +61 -0
- package/csm/CSM.d.ts +2 -2
- package/csm/CSMFrustum.d.cts +19 -0
- package/csm/CSMFrustum.d.ts +2 -2
- package/csm/CSMHelper.d.cts +26 -0
- package/csm/CSMHelper.d.ts +2 -2
- package/csm/CSMShader.d.cts +4 -0
- package/curves/CurveExtras.d.cts +68 -0
- package/curves/CurveExtras.d.ts +1 -1
- package/curves/NURBSCurve.d.cts +11 -0
- package/curves/NURBSCurve.d.ts +1 -1
- package/curves/NURBSSurface.d.cts +13 -0
- package/curves/NURBSSurface.d.ts +1 -1
- package/curves/NURBSUtils.d.cts +20 -0
- package/curves/NURBSUtils.d.ts +1 -1
- package/deprecated/Geometry.d.cts +341 -0
- package/deprecated/Geometry.d.ts +1 -1
- package/effects/AnaglyphEffect.d.cts +11 -0
- package/effects/AnaglyphEffect.d.ts +1 -1
- package/effects/AsciiEffect.d.cts +18 -0
- package/effects/AsciiEffect.d.ts +1 -1
- package/effects/OutlineEffect.d.cts +28 -0
- package/effects/OutlineEffect.d.ts +1 -1
- package/effects/ParallaxBarrierEffect.d.cts +8 -0
- package/effects/ParallaxBarrierEffect.d.ts +1 -1
- package/effects/PeppersGhostEffect.d.cts +10 -0
- package/effects/PeppersGhostEffect.d.ts +1 -1
- package/effects/StereoEffect.d.cts +9 -0
- package/effects/StereoEffect.d.ts +1 -1
- package/environments/RoomEnvironment.d.cts +6 -0
- package/environments/RoomEnvironment.d.ts +2 -2
- package/exporters/ColladaExporter.d.cts +50 -0
- package/exporters/ColladaExporter.d.ts +2 -2
- package/exporters/DRACOExporter.d.cts +36 -0
- package/exporters/DRACOExporter.d.ts +2 -2
- package/exporters/GLTFExporter.d.cts +114 -0
- package/exporters/GLTFExporter.d.ts +4 -4
- package/exporters/MMDExporter.d.cts +12 -0
- package/exporters/MMDExporter.d.ts +2 -2
- package/exporters/OBJExporter.d.cts +18 -0
- package/exporters/OBJExporter.d.ts +2 -2
- package/exporters/PLYExporter.d.cts +23 -0
- package/exporters/PLYExporter.d.ts +2 -2
- package/exporters/STLExporter.d.cts +28 -0
- package/exporters/STLExporter.d.ts +2 -2
- package/exporters/USDZExporter.d.cts +27 -0
- package/exporters/USDZExporter.d.ts +2 -2
- package/geometries/BoxLineGeometry.d.cts +12 -0
- package/geometries/BoxLineGeometry.d.ts +1 -1
- package/geometries/ConvexGeometry.d.cts +5 -0
- package/geometries/ConvexGeometry.d.ts +1 -1
- package/geometries/DecalGeometry.d.cts +10 -0
- package/geometries/DecalGeometry.d.ts +1 -1
- package/geometries/LightningStrike.d.cts +108 -0
- package/geometries/LightningStrike.d.ts +1 -1
- package/geometries/ParametricGeometries.d.cts +26 -0
- package/geometries/ParametricGeometries.d.ts +3 -3
- package/geometries/ParametricGeometry.d.cts +18 -0
- package/geometries/ParametricGeometry.d.ts +2 -2
- package/geometries/RoundedBoxGeometry.d.cts +5 -0
- package/geometries/RoundedBoxGeometry.d.ts +1 -1
- package/geometries/TeapotGeometry.d.cts +13 -0
- package/geometries/TeapotGeometry.d.ts +1 -1
- package/geometries/TextGeometry.d.cts +18 -0
- package/geometries/TextGeometry.d.ts +4 -4
- package/helpers/LightProbeHelper.d.cts +10 -0
- package/helpers/LightProbeHelper.d.ts +1 -1
- package/helpers/PositionalAudioHelper.d.cts +13 -0
- package/helpers/PositionalAudioHelper.d.ts +1 -1
- package/helpers/RaycasterHelper.d.cts +33 -0
- package/helpers/RaycasterHelper.d.ts +2 -2
- package/helpers/RectAreaLightHelper.d.cts +11 -0
- package/helpers/RectAreaLightHelper.d.ts +1 -1
- package/helpers/VertexNormalsHelper.d.cts +13 -0
- package/helpers/VertexNormalsHelper.d.ts +1 -1
- package/helpers/VertexTangentsHelper.d.cts +13 -0
- package/helpers/VertexTangentsHelper.d.ts +1 -1
- package/index.d.cts +262 -0
- package/index.d.ts +262 -262
- package/interactive/HTMLMesh.d.cts +6 -0
- package/interactive/HTMLMesh.d.ts +1 -1
- package/interactive/InteractiveGroup.d.cts +5 -0
- package/interactive/InteractiveGroup.d.ts +1 -1
- package/interactive/SelectionBox.d.cts +15 -0
- package/interactive/SelectionBox.d.ts +1 -1
- package/interactive/SelectionHelper.d.cts +17 -0
- package/interactive/SelectionHelper.d.ts +2 -2
- package/libs/MeshoptDecoder.d.cts +12 -0
- package/libs/MeshoptDecoder.d.ts +1 -1
- package/libs/MotionControllers.d.cts +176 -0
- package/libs/MotionControllers.d.ts +1 -1
- package/libs/zstddec.d.cts +8 -0
- package/libs/zstddec.d.ts +1 -1
- package/lights/LightProbeGenerator.d.cts +6 -0
- package/lights/LightProbeGenerator.d.ts +2 -2
- package/lights/RectAreaLightUniformsLib.d.cts +3 -0
- package/lights/RectAreaLightUniformsLib.d.ts +1 -1
- package/lines/Line2.d.cts +11 -0
- package/lines/Line2.d.ts +3 -3
- package/lines/LineGeometry.d.cts +10 -0
- package/lines/LineGeometry.d.ts +2 -2
- package/lines/LineMaterial.d.cts +31 -0
- package/lines/LineMaterial.d.ts +1 -1
- package/lines/LineSegments2.d.cts +14 -0
- package/lines/LineSegments2.d.ts +3 -3
- package/lines/LineSegmentsGeometry.d.cts +16 -0
- package/lines/LineSegmentsGeometry.d.ts +1 -1
- package/lines/Wireframe.d.cts +11 -0
- package/lines/Wireframe.d.ts +3 -3
- package/lines/WireframeGeometry2.d.cts +8 -0
- package/lines/WireframeGeometry2.d.ts +2 -2
- package/loaders/3DMLoader.d.cts +17 -0
- package/loaders/3DMLoader.d.ts +1 -1
- package/loaders/3MFLoader.d.cts +16 -0
- package/loaders/3MFLoader.d.ts +1 -1
- package/loaders/AMFLoader.d.cts +14 -0
- package/loaders/AMFLoader.d.ts +1 -1
- package/loaders/AssimpLoader.d.cts +19 -0
- package/loaders/AssimpLoader.d.ts +1 -1
- package/loaders/BVHLoader.d.cts +21 -0
- package/loaders/BVHLoader.d.ts +1 -1
- package/loaders/BasisTextureLoader.d.cts +32 -0
- package/loaders/BasisTextureLoader.d.ts +1 -1
- package/loaders/ColladaLoader.d.cts +20 -0
- package/loaders/ColladaLoader.d.ts +1 -1
- package/loaders/DDSLoader.d.cts +16 -0
- package/loaders/DDSLoader.d.ts +1 -1
- package/loaders/DRACOLoader.d.cts +18 -0
- package/loaders/DRACOLoader.d.ts +1 -1
- package/loaders/EXRLoader.d.cts +18 -0
- package/loaders/EXRLoader.d.ts +1 -1
- package/loaders/FBXLoader.d.cts +14 -0
- package/loaders/FBXLoader.d.ts +1 -1
- package/loaders/FontLoader.d.cts +37 -0
- package/loaders/FontLoader.d.ts +4 -4
- package/loaders/GCodeLoader.d.cts +15 -0
- package/loaders/GCodeLoader.d.ts +1 -1
- package/loaders/GLTFLoader.d.cts +155 -0
- package/loaders/GLTFLoader.d.ts +3 -3
- package/loaders/HDRCubeTextureLoader.d.cts +18 -0
- package/loaders/HDRCubeTextureLoader.d.ts +2 -2
- package/loaders/KMZLoader.d.cts +16 -0
- package/loaders/KMZLoader.d.ts +2 -2
- package/loaders/KTX2Loader.d.cts +10 -0
- package/loaders/KTX2Loader.d.ts +1 -1
- package/loaders/KTXLoader.d.cts +16 -0
- package/loaders/KTXLoader.d.ts +1 -1
- package/loaders/LDrawLoader.d.cts +26 -0
- package/loaders/LDrawLoader.d.ts +1 -1
- package/loaders/LUT3dlLoader.d.cts +20 -0
- package/loaders/LUT3dlLoader.d.ts +1 -1
- package/loaders/LUTCubeLoader.d.cts +23 -0
- package/loaders/LUTCubeLoader.d.ts +1 -1
- package/loaders/LWOLoader.d.cts +26 -0
- package/loaders/LWOLoader.d.ts +1 -1
- package/loaders/LottieLoader.d.cts +15 -0
- package/loaders/LottieLoader.d.ts +1 -1
- package/loaders/MD2Loader.d.cts +14 -0
- package/loaders/MD2Loader.d.ts +1 -1
- package/loaders/MDDLoader.d.cts +19 -0
- package/loaders/MDDLoader.d.ts +1 -1
- package/loaders/MMDLoader.d.cts +63 -0
- package/loaders/MMDLoader.d.ts +1 -1
- package/loaders/MTLLoader.d.cts +100 -0
- package/loaders/MTLLoader.d.ts +1 -1
- package/loaders/NRRDLoader.d.cts +22 -0
- package/loaders/NRRDLoader.d.ts +2 -2
- package/loaders/OBJLoader.d.cts +17 -0
- package/loaders/OBJLoader.d.ts +2 -2
- package/loaders/PCDLoader.d.cts +15 -0
- package/loaders/PCDLoader.d.ts +1 -1
- package/loaders/PDBLoader.d.cts +22 -0
- package/loaders/PDBLoader.d.ts +1 -1
- package/loaders/PLYLoader.d.cts +16 -0
- package/loaders/PLYLoader.d.ts +1 -1
- package/loaders/PRWMLoader.d.cts +16 -0
- package/loaders/PRWMLoader.d.ts +1 -1
- package/loaders/PVRLoader.d.cts +16 -0
- package/loaders/PVRLoader.d.ts +1 -1
- package/loaders/RGBELoader.d.cts +20 -0
- package/loaders/RGBELoader.d.ts +1 -1
- package/loaders/RGBMLoader.d.cts +32 -0
- package/loaders/RGBMLoader.d.ts +1 -1
- package/loaders/STLLoader.d.cts +14 -0
- package/loaders/STLLoader.d.ts +1 -1
- package/loaders/SVGLoader.d.cts +63 -0
- package/loaders/SVGLoader.d.ts +1 -1
- package/loaders/TDSLoader.d.cts +42 -0
- package/loaders/TDSLoader.d.ts +1 -1
- package/loaders/TGALoader.d.cts +14 -0
- package/loaders/TGALoader.d.ts +1 -1
- package/loaders/TTFLoader.d.cts +15 -0
- package/loaders/TTFLoader.d.ts +1 -1
- package/loaders/TiltLoader.d.cts +14 -0
- package/loaders/TiltLoader.d.ts +1 -1
- package/loaders/VOXLoader.d.cts +29 -0
- package/loaders/VOXLoader.d.ts +1 -1
- package/loaders/VRMLLoader.d.cts +14 -0
- package/loaders/VRMLLoader.d.ts +1 -1
- package/loaders/VRMLoader.d.cts +19 -0
- package/loaders/VRMLoader.d.ts +3 -3
- package/loaders/VTKLoader.d.cts +14 -0
- package/loaders/VTKLoader.d.ts +1 -1
- package/loaders/XLoader.d.cts +19 -0
- package/loaders/XLoader.d.ts +1 -1
- package/loaders/XYZLoader.d.cts +14 -0
- package/loaders/XYZLoader.d.ts +1 -1
- package/math/Capsule.d.cts +27 -0
- package/math/Capsule.d.ts +1 -1
- package/math/ColorConverter.d.cts +21 -0
- package/math/ColorConverter.d.ts +2 -2
- package/math/ConvexHull.d.cts +89 -0
- package/math/ConvexHull.d.ts +1 -1
- package/math/ImprovedNoise.d.cts +4 -0
- package/math/Lut.d.cts +27 -0
- package/math/Lut.d.ts +1 -1
- package/math/MeshSurfaceSampler.d.cts +18 -0
- package/math/MeshSurfaceSampler.d.ts +1 -1
- package/math/OBB.d.cts +24 -0
- package/math/OBB.d.ts +1 -1
- package/math/Octree.d.cts +24 -0
- package/math/Octree.d.ts +2 -2
- package/math/SimplexNoise.d.cts +21 -0
- package/math/SimplexNoise.d.ts +1 -1
- package/misc/ConvexObjectBreaker.d.cts +25 -0
- package/misc/ConvexObjectBreaker.d.ts +1 -1
- package/misc/GPUComputationRenderer.d.cts +53 -0
- package/misc/GPUComputationRenderer.d.ts +1 -1
- package/misc/Gyroscope.d.cts +5 -0
- package/misc/Gyroscope.d.ts +1 -1
- package/misc/MD2Character.d.cts +33 -0
- package/misc/MD2Character.d.ts +1 -1
- package/misc/MD2CharacterComplex.d.cts +47 -0
- package/misc/MD2CharacterComplex.d.ts +1 -1
- package/misc/MorphAnimMesh.d.cts +13 -0
- package/misc/MorphAnimMesh.d.ts +1 -1
- package/misc/MorphBlendMesh.d.cts +21 -0
- package/misc/MorphBlendMesh.d.ts +1 -1
- package/misc/ProgressiveLightmap.d.cts +60 -0
- package/misc/ProgressiveLightmap.d.ts +1 -1
- package/misc/RollerCoaster.d.cts +21 -0
- package/misc/RollerCoaster.d.ts +1 -1
- package/misc/Timer.d.cts +27 -0
- package/misc/Timer.d.ts +1 -1
- package/misc/TubePainter.d.cts +10 -0
- package/misc/TubePainter.d.ts +1 -1
- package/misc/Volume.d.cts +37 -0
- package/misc/Volume.d.ts +2 -2
- package/misc/VolumeSlice.d.cts +28 -0
- package/misc/VolumeSlice.d.ts +2 -2
- package/misc/WebGL.d.cts +5 -0
- package/misc/WebGL.d.ts +5 -5
- package/modifiers/CurveModifier.d.cts +91 -0
- package/modifiers/CurveModifier.d.ts +7 -7
- package/modifiers/EdgeSplitModifier.d.cts +19 -0
- package/modifiers/EdgeSplitModifier.d.ts +2 -2
- package/modifiers/SimplifyModifier.d.cts +19 -0
- package/modifiers/SimplifyModifier.d.ts +2 -2
- package/modifiers/TessellateModifier.d.cts +11 -0
- package/modifiers/TessellateModifier.d.ts +2 -2
- package/objects/BatchedMesh.d.cts +48 -0
- package/objects/BatchedMesh.d.ts +2 -2
- package/objects/GroundProjectedEnv.d.cts +12 -0
- package/objects/GroundProjectedEnv.d.ts +2 -2
- package/objects/Lensflare.d.cts +17 -0
- package/objects/Lensflare.d.ts +1 -1
- package/objects/LightningStorm.d.cts +32 -0
- package/objects/LightningStorm.d.ts +2 -2
- package/objects/MarchingCubes.d.cts +76 -0
- package/objects/MarchingCubes.d.ts +1 -1
- package/objects/Reflector.d.cts +23 -0
- package/objects/Reflector.d.ts +2 -2
- package/objects/ReflectorForSSRPass.d.cts +48 -0
- package/objects/ReflectorForSSRPass.d.ts +1 -1
- package/objects/ReflectorRTT.d.cts +6 -0
- package/objects/ReflectorRTT.d.ts +3 -3
- package/objects/Refractor.d.cts +23 -0
- package/objects/Refractor.d.ts +2 -2
- package/objects/ShadowMesh.d.cts +10 -0
- package/objects/ShadowMesh.d.ts +1 -1
- package/objects/Sky.d.cts +18 -0
- package/objects/Sky.d.ts +2 -2
- package/objects/Water.d.cts +22 -0
- package/objects/Water.d.ts +1 -1
- package/objects/Water2.d.cts +23 -0
- package/objects/Water2.d.ts +2 -2
- package/package.json +11 -5
- package/physics/AmmoPhysics.d.cts +7 -0
- package/physics/AmmoPhysics.d.ts +1 -1
- package/postprocessing/AdaptiveToneMappingPass.d.cts +29 -0
- package/postprocessing/AdaptiveToneMappingPass.d.ts +2 -2
- package/postprocessing/AfterimagePass.d.cts +15 -0
- package/postprocessing/AfterimagePass.d.ts +3 -3
- package/postprocessing/BloomPass.d.cts +29 -0
- package/postprocessing/BloomPass.d.ts +4 -4
- package/postprocessing/BokehPass.d.cts +26 -0
- package/postprocessing/BokehPass.d.ts +3 -3
- package/postprocessing/ClearPass.d.cts +10 -0
- package/postprocessing/ClearPass.d.ts +3 -3
- package/postprocessing/CubeTexturePass.d.cts +14 -0
- package/postprocessing/CubeTexturePass.d.ts +2 -2
- package/postprocessing/DotScreenPass.d.cts +11 -0
- package/postprocessing/DotScreenPass.d.ts +4 -4
- package/postprocessing/EffectComposer.d.cts +28 -0
- package/postprocessing/EffectComposer.d.ts +3 -3
- package/postprocessing/FilmPass.d.cts +11 -0
- package/postprocessing/FilmPass.d.ts +4 -4
- package/postprocessing/GlitchPass.d.cts +16 -0
- package/postprocessing/GlitchPass.d.ts +4 -4
- package/postprocessing/HalftonePass.d.cts +26 -0
- package/postprocessing/HalftonePass.d.ts +3 -3
- package/postprocessing/LUTPass.d.cts +13 -0
- package/postprocessing/LUTPass.d.ts +2 -2
- package/postprocessing/MaskPass.d.cts +14 -0
- package/postprocessing/MaskPass.d.ts +3 -3
- package/postprocessing/OutlinePass.d.cts +53 -0
- package/postprocessing/OutlinePass.d.ts +3 -3
- package/postprocessing/Pass.d.cts +21 -0
- package/postprocessing/Pass.d.ts +2 -2
- package/postprocessing/RenderPass.d.cts +14 -0
- package/postprocessing/RenderPass.d.ts +3 -3
- package/postprocessing/RenderPixelatedPass.d.cts +34 -0
- package/postprocessing/RenderPixelatedPass.d.ts +2 -2
- package/postprocessing/SAOPass.d.cts +78 -0
- package/postprocessing/SAOPass.d.ts +2 -2
- package/postprocessing/SMAAPass.d.cts +21 -0
- package/postprocessing/SMAAPass.d.ts +2 -2
- package/postprocessing/SSAARenderPass.d.cts +17 -0
- package/postprocessing/SSAARenderPass.d.ts +2 -2
- package/postprocessing/SSAOPass.d.cts +70 -0
- package/postprocessing/SSAOPass.d.ts +2 -2
- package/postprocessing/SSRPass.d.cts +123 -0
- package/postprocessing/SSRPass.d.ts +3 -3
- package/postprocessing/SavePass.d.cts +12 -0
- package/postprocessing/SavePass.d.ts +2 -2
- package/postprocessing/ShaderPass.d.cts +13 -0
- package/postprocessing/ShaderPass.d.ts +4 -4
- package/postprocessing/TAARenderPass.d.cts +8 -0
- package/postprocessing/TAARenderPass.d.ts +2 -2
- package/postprocessing/TexturePass.d.cts +12 -0
- package/postprocessing/TexturePass.d.ts +2 -2
- package/postprocessing/UnrealBloomPass.d.cts +31 -0
- package/postprocessing/UnrealBloomPass.d.ts +2 -2
- package/postprocessing/WaterPass.d.cts +35 -0
- package/postprocessing/WaterPass.d.ts +3 -3
- package/renderers/CSS2DRenderer.d.cts +23 -0
- package/renderers/CSS2DRenderer.d.ts +1 -1
- package/renderers/CSS3DRenderer.d.cts +26 -0
- package/renderers/CSS3DRenderer.d.ts +1 -1
- package/renderers/Projector.d.cts +60 -0
- package/renderers/Projector.d.ts +1 -1
- package/renderers/SVGRenderer.d.cts +25 -0
- package/renderers/SVGRenderer.d.ts +1 -1
- package/shaders/ACESFilmicToneMappingShader.d.cts +16 -0
- package/shaders/ACESFilmicToneMappingShader.d.ts +2 -2
- package/shaders/AfterimageShader.d.cts +15 -0
- package/shaders/AfterimageShader.d.ts +2 -2
- package/shaders/BasicShader.d.cts +8 -0
- package/shaders/BasicShader.d.ts +2 -2
- package/shaders/BleachBypassShader.d.cts +14 -0
- package/shaders/BleachBypassShader.d.ts +2 -2
- package/shaders/BlendShader.d.cts +21 -0
- package/shaders/BlendShader.d.ts +1 -1
- package/shaders/BokehShader.d.cts +24 -0
- package/shaders/BokehShader.d.ts +2 -2
- package/shaders/BokehShader2.d.cts +50 -0
- package/shaders/BokehShader2.d.ts +3 -3
- package/shaders/BrightnessContrastShader.d.cts +21 -0
- package/shaders/BrightnessContrastShader.d.ts +1 -1
- package/shaders/ColorCorrectionShader.d.cts +22 -0
- package/shaders/ColorCorrectionShader.d.ts +2 -2
- package/shaders/ColorifyShader.d.cts +16 -0
- package/shaders/ColorifyShader.d.ts +2 -2
- package/shaders/ConvolutionShader.d.cts +21 -0
- package/shaders/ConvolutionShader.d.ts +3 -3
- package/shaders/CopyShader.d.cts +12 -0
- package/shaders/CopyShader.d.ts +2 -2
- package/shaders/DOFMipMapShader.d.cts +23 -0
- package/shaders/DOFMipMapShader.d.ts +1 -1
- package/shaders/DepthLimitedBlurShader.d.cts +28 -0
- package/shaders/DepthLimitedBlurShader.d.ts +4 -4
- package/shaders/DigitalGlitch.d.cts +39 -0
- package/shaders/DigitalGlitch.d.ts +1 -1
- package/shaders/DotScreenShader.d.cts +27 -0
- package/shaders/DotScreenShader.d.ts +2 -2
- package/shaders/FXAAShader.d.cts +19 -0
- package/shaders/FXAAShader.d.ts +2 -2
- package/shaders/FilmShader.d.cts +43 -0
- package/shaders/FilmShader.d.ts +1 -1
- package/shaders/FocusShader.d.cts +26 -0
- package/shaders/FocusShader.d.ts +1 -1
- package/shaders/FreiChenShader.d.cts +19 -0
- package/shaders/FreiChenShader.d.ts +2 -2
- package/shaders/FresnelShader.d.cts +24 -0
- package/shaders/FresnelShader.d.ts +1 -1
- package/shaders/GammaCorrectionShader.d.cts +12 -0
- package/shaders/GammaCorrectionShader.d.ts +2 -2
- package/shaders/GodRaysShader.d.cts +97 -0
- package/shaders/GodRaysShader.d.ts +5 -5
- package/shaders/HalftoneShader.d.cts +51 -0
- package/shaders/HalftoneShader.d.ts +1 -1
- package/shaders/HorizontalBlurShader.d.cts +18 -0
- package/shaders/HorizontalBlurShader.d.ts +2 -2
- package/shaders/HorizontalTiltShiftShader.d.cts +23 -0
- package/shaders/HorizontalTiltShiftShader.d.ts +1 -1
- package/shaders/HueSaturationShader.d.cts +21 -0
- package/shaders/HueSaturationShader.d.ts +1 -1
- package/shaders/KaleidoShader.d.cts +24 -0
- package/shaders/KaleidoShader.d.ts +1 -1
- package/shaders/LuminosityHighPassShader.d.cts +27 -0
- package/shaders/LuminosityHighPassShader.d.ts +2 -2
- package/shaders/LuminosityShader.d.cts +13 -0
- package/shaders/LuminosityShader.d.ts +1 -1
- package/shaders/MirrorShader.d.cts +18 -0
- package/shaders/MirrorShader.d.ts +1 -1
- package/shaders/NormalMapShader.d.cts +23 -0
- package/shaders/NormalMapShader.d.ts +2 -2
- package/shaders/ParallaxShader.d.cts +28 -0
- package/shaders/ParallaxShader.d.ts +1 -1
- package/shaders/PixelShader.d.cts +18 -0
- package/shaders/PixelShader.d.ts +1 -1
- package/shaders/RGBShiftShader.d.cts +24 -0
- package/shaders/RGBShiftShader.d.ts +1 -1
- package/shaders/SAOShader.d.cts +25 -0
- package/shaders/SAOShader.d.ts +3 -3
- package/shaders/SMAAShader.d.cts +60 -0
- package/shaders/SMAAShader.d.ts +4 -4
- package/shaders/SSAOShader.d.cts +86 -0
- package/shaders/SSAOShader.d.ts +4 -4
- package/shaders/SSRShader.d.cts +94 -0
- package/shaders/SSRShader.d.ts +4 -4
- package/shaders/SepiaShader.d.cts +17 -0
- package/shaders/SepiaShader.d.ts +1 -1
- package/shaders/SobelOperatorShader.d.cts +19 -0
- package/shaders/SobelOperatorShader.d.ts +2 -2
- package/shaders/SubsurfaceScatteringShader.d.cts +5 -0
- package/shaders/SubsurfaceScatteringShader.d.ts +1 -1
- package/shaders/TechnicolorShader.d.cts +15 -0
- package/shaders/TechnicolorShader.d.ts +1 -1
- package/shaders/ToneMapShader.d.cts +27 -0
- package/shaders/ToneMapShader.d.ts +1 -1
- package/shaders/ToonShader.d.cts +108 -0
- package/shaders/ToonShader.d.ts +5 -5
- package/shaders/TriangleBlurShader.d.cts +22 -0
- package/shaders/TriangleBlurShader.d.ts +2 -2
- package/shaders/UnpackDepthRGBAShader.d.cts +16 -0
- package/shaders/UnpackDepthRGBAShader.d.ts +1 -1
- package/shaders/VerticalBlurShader.d.cts +18 -0
- package/shaders/VerticalBlurShader.d.ts +2 -2
- package/shaders/VerticalTiltShiftShader.d.cts +23 -0
- package/shaders/VerticalTiltShiftShader.d.ts +1 -1
- package/shaders/VignetteShader.d.cts +20 -0
- package/shaders/VignetteShader.d.ts +1 -1
- package/shaders/VolumeShader.d.cts +30 -0
- package/shaders/VolumeShader.d.ts +2 -2
- package/shaders/WaterRefractionShader.d.cts +21 -0
- package/shaders/WaterRefractionShader.d.ts +1 -1
- package/shaders/types.d.cts +13 -0
- package/textures/FlakesTexture.d.cts +4 -0
- package/textures/FlakesTexture.d.ts +1 -1
- package/types/helpers.d.cts +1 -0
- package/types/helpers.d.ts +1 -1
- package/types/shared.d.cts +9 -0
- package/types/shared.d.ts +1 -1
- package/types/utils.d.cts +3 -0
- package/utils/BufferGeometryUtils.d.cts +63 -0
- package/utils/BufferGeometryUtils.d.ts +9 -9
- package/utils/GeometryCompressionUtils.d.cts +7 -0
- package/utils/GeometryCompressionUtils.d.ts +2 -2
- package/utils/GeometryUtils.d.cts +6 -0
- package/utils/GeometryUtils.d.ts +2 -2
- package/utils/LDrawUtils.d.cts +5 -0
- package/utils/LDrawUtils.d.ts +2 -2
- package/utils/RoughnessMipmapper.d.cts +8 -0
- package/utils/RoughnessMipmapper.d.ts +1 -1
- package/utils/SceneUtils.d.cts +9 -0
- package/utils/SceneUtils.d.ts +2 -2
- package/utils/ShadowMapViewer.d.cts +24 -0
- package/utils/ShadowMapViewer.d.ts +1 -1
- package/utils/SkeletonUtils.d.cts +14 -0
- package/utils/SkeletonUtils.d.ts +2 -2
- package/utils/UVsDebug.d.cts +3 -0
- package/utils/UVsDebug.d.ts +1 -1
- package/webxr/ARButton.d.cts +6 -0
- package/webxr/ARButton.d.ts +2 -2
- package/webxr/OculusHandModel.d.cts +23 -0
- package/webxr/OculusHandModel.d.ts +3 -3
- package/webxr/OculusHandPointerModel.d.cts +65 -0
- package/webxr/OculusHandPointerModel.d.ts +1 -1
- package/webxr/Text2D.d.cts +3 -0
- package/webxr/Text2D.d.ts +1 -1
- package/webxr/VRButton.d.cts +11 -0
- package/webxr/VRButton.d.ts +2 -2
- package/webxr/XRControllerModelFactory.d.cts +23 -0
- package/webxr/XRControllerModelFactory.d.ts +4 -4
- package/webxr/XREstimatedLight.d.cts +33 -0
- package/webxr/XREstimatedLight.d.ts +1 -1
- package/webxr/XRHandMeshModel.d.cts +9 -0
- package/webxr/XRHandMeshModel.d.ts +2 -2
- package/webxr/XRHandModelFactory.d.cts +25 -0
- package/webxr/XRHandModelFactory.d.ts +3 -3
- package/webxr/XRHandPrimitiveModel.d.cts +24 -0
- package/webxr/XRHandPrimitiveModel.d.ts +2 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bleach bypass shader [http://en.wikipedia.org/wiki/Bleach_bypass]
|
|
3
|
+
* - based on Nvidia example
|
|
4
|
+
* http://developer.download.nvidia.com/shaderlibrary/webpages/shader_library.html#post_bleach_bypass
|
|
5
|
+
*/
|
|
6
|
+
import type { IUniform, Texture } from 'three';
|
|
7
|
+
import type { IShader } from './types.d.cts';
|
|
8
|
+
export type BleachBypassShaderUniforms = {
|
|
9
|
+
opacity: IUniform<number>;
|
|
10
|
+
tDiffuse: IUniform<Texture | null>;
|
|
11
|
+
};
|
|
12
|
+
export interface IBleachBypassShader extends IShader<BleachBypassShaderUniforms> {
|
|
13
|
+
}
|
|
14
|
+
export type declare const BleachBypassShader: IBleachBypassShader;
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* http://developer.download.nvidia.com/shaderlibrary/webpages/shader_library.html#post_bleach_bypass
|
|
5
5
|
*/
|
|
6
6
|
import type { IUniform, Texture } from 'three';
|
|
7
|
-
import type { IShader } from './types';
|
|
7
|
+
import type { IShader } from './types.d.ts';
|
|
8
8
|
export type BleachBypassShaderUniforms = {
|
|
9
9
|
opacity: IUniform<number>;
|
|
10
10
|
tDiffuse: IUniform<Texture | null>;
|
|
11
11
|
};
|
|
12
12
|
export interface IBleachBypassShader extends IShader<BleachBypassShaderUniforms> {
|
|
13
13
|
}
|
|
14
|
-
export declare const BleachBypassShader: IBleachBypassShader;
|
|
14
|
+
export type declare const BleachBypassShader: IBleachBypassShader;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blend two textures
|
|
3
|
+
*/
|
|
4
|
+
export type declare const BlendShader: {
|
|
5
|
+
uniforms: {
|
|
6
|
+
tDiffuse1: {
|
|
7
|
+
value: null;
|
|
8
|
+
};
|
|
9
|
+
tDiffuse2: {
|
|
10
|
+
value: null;
|
|
11
|
+
};
|
|
12
|
+
mixRatio: {
|
|
13
|
+
value: number;
|
|
14
|
+
};
|
|
15
|
+
opacity: {
|
|
16
|
+
value: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
vertexShader: string;
|
|
20
|
+
fragmentShader: string;
|
|
21
|
+
};
|
package/shaders/BlendShader.d.ts
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Depth-of-field shader with bokeh
|
|
3
|
+
* ported from GLSL shader by Martins Upitis
|
|
4
|
+
* http://artmartinsh.blogspot.com/2010/02/glsl-lens-blur-filter-with-bokeh.html
|
|
5
|
+
*/
|
|
6
|
+
import type { IUniform, Texture } from 'three';
|
|
7
|
+
import type { IShader } from './types.d.cts';
|
|
8
|
+
export type BokehShaderDefines = {
|
|
9
|
+
DEPTH_PACKING: number;
|
|
10
|
+
PERSPECTIVE_CAMERA: number;
|
|
11
|
+
};
|
|
12
|
+
export type BokehShaderUniforms = {
|
|
13
|
+
aperture: IUniform<number>;
|
|
14
|
+
aspect: IUniform<number>;
|
|
15
|
+
farClip: IUniform<number>;
|
|
16
|
+
focus: IUniform<number>;
|
|
17
|
+
maxblur: IUniform<number>;
|
|
18
|
+
nearClip: IUniform<number>;
|
|
19
|
+
tColor: IUniform<Texture | null>;
|
|
20
|
+
tDepth: IUniform<Texture | null>;
|
|
21
|
+
};
|
|
22
|
+
export interface IBokehShader extends IShader<BokehShaderUniforms, BokehShaderDefines> {
|
|
23
|
+
}
|
|
24
|
+
export type declare const BokehShader: IBokehShader;
|
package/shaders/BokehShader.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* http://artmartinsh.blogspot.com/2010/02/glsl-lens-blur-filter-with-bokeh.html
|
|
5
5
|
*/
|
|
6
6
|
import type { IUniform, Texture } from 'three';
|
|
7
|
-
import type { IShader } from './types';
|
|
7
|
+
import type { IShader } from './types.d.ts';
|
|
8
8
|
export type BokehShaderDefines = {
|
|
9
9
|
DEPTH_PACKING: number;
|
|
10
10
|
PERSPECTIVE_CAMERA: number;
|
|
@@ -21,4 +21,4 @@ export type BokehShaderUniforms = {
|
|
|
21
21
|
};
|
|
22
22
|
export interface IBokehShader extends IShader<BokehShaderUniforms, BokehShaderDefines> {
|
|
23
23
|
}
|
|
24
|
-
export declare const BokehShader: IBokehShader;
|
|
24
|
+
export type declare const BokehShader: IBokehShader;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { IUniform, Texture, Vector2 } from 'three';
|
|
2
|
+
export interface BokehShader2Uniforms {
|
|
3
|
+
textureWidth: IUniform<number>;
|
|
4
|
+
textureHeight: IUniform<number>;
|
|
5
|
+
focalDepth: IUniform<number>;
|
|
6
|
+
focalLength: IUniform<number>;
|
|
7
|
+
fstop: IUniform<number>;
|
|
8
|
+
tColor: IUniform<Texture | null>;
|
|
9
|
+
tDepth: IUniform<Texture | null>;
|
|
10
|
+
maxblur: IUniform<number>;
|
|
11
|
+
showFocus: IUniform<number>;
|
|
12
|
+
manualdof: IUniform<number>;
|
|
13
|
+
vignetting: IUniform<number>;
|
|
14
|
+
depthblur: IUniform<number>;
|
|
15
|
+
threshold: IUniform<number>;
|
|
16
|
+
gain: IUniform<number>;
|
|
17
|
+
bias: IUniform<number>;
|
|
18
|
+
fringe: IUniform<number>;
|
|
19
|
+
znear: IUniform<number>;
|
|
20
|
+
zfar: IUniform<number>;
|
|
21
|
+
noise: IUniform<number>;
|
|
22
|
+
dithering: IUniform<number>;
|
|
23
|
+
pentagon: IUniform<number>;
|
|
24
|
+
shaderFocus: IUniform<number>;
|
|
25
|
+
focusCoords: IUniform<Vector2>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Depth-of-field shader with bokeh
|
|
29
|
+
* ported from GLSL shader by Martins Upitis
|
|
30
|
+
* http://blenderartists.org/forum/showthread.php?237488-GLSL-depth-of-field-with-bokeh-v2-4-(update)
|
|
31
|
+
*
|
|
32
|
+
* Requires #define RINGS and SAMPLES integers
|
|
33
|
+
*/
|
|
34
|
+
export type declare const BokehShader2: {
|
|
35
|
+
uniforms: BokehShader2Uniforms;
|
|
36
|
+
vertexShader: string;
|
|
37
|
+
fragmentShader: string;
|
|
38
|
+
};
|
|
39
|
+
export type declare const BokehDepthShader: {
|
|
40
|
+
uniforms: {
|
|
41
|
+
mNear: {
|
|
42
|
+
value: number;
|
|
43
|
+
};
|
|
44
|
+
mFar: {
|
|
45
|
+
value: number;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
vertexShader: string;
|
|
49
|
+
fragmentShader: string;
|
|
50
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUniform, Texture, Vector2 } from 'three';
|
|
1
|
+
import type { IUniform, Texture, Vector2 } from 'three';
|
|
2
2
|
export interface BokehShader2Uniforms {
|
|
3
3
|
textureWidth: IUniform<number>;
|
|
4
4
|
textureHeight: IUniform<number>;
|
|
@@ -31,12 +31,12 @@ export interface BokehShader2Uniforms {
|
|
|
31
31
|
*
|
|
32
32
|
* Requires #define RINGS and SAMPLES integers
|
|
33
33
|
*/
|
|
34
|
-
export declare const BokehShader2: {
|
|
34
|
+
export type declare const BokehShader2: {
|
|
35
35
|
uniforms: BokehShader2Uniforms;
|
|
36
36
|
vertexShader: string;
|
|
37
37
|
fragmentShader: string;
|
|
38
38
|
};
|
|
39
|
-
export declare const BokehDepthShader: {
|
|
39
|
+
export type declare const BokehDepthShader: {
|
|
40
40
|
uniforms: {
|
|
41
41
|
mNear: {
|
|
42
42
|
value: number;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brightness and contrast adjustment
|
|
3
|
+
* https://github.com/evanw/glfx.js
|
|
4
|
+
* brightness: -1 to 1 (-1 is solid black, 0 is no change, and 1 is solid white)
|
|
5
|
+
* contrast: -1 to 1 (-1 is solid gray, 0 is no change, and 1 is maximum contrast)
|
|
6
|
+
*/
|
|
7
|
+
export type declare const BrightnessContrastShader: {
|
|
8
|
+
uniforms: {
|
|
9
|
+
tDiffuse: {
|
|
10
|
+
value: null;
|
|
11
|
+
};
|
|
12
|
+
brightness: {
|
|
13
|
+
value: number;
|
|
14
|
+
};
|
|
15
|
+
contrast: {
|
|
16
|
+
value: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
vertexShader: string;
|
|
20
|
+
fragmentShader: string;
|
|
21
|
+
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* brightness: -1 to 1 (-1 is solid black, 0 is no change, and 1 is solid white)
|
|
5
5
|
* contrast: -1 to 1 (-1 is solid gray, 0 is no change, and 1 is maximum contrast)
|
|
6
6
|
*/
|
|
7
|
-
export declare const BrightnessContrastShader: {
|
|
7
|
+
export type declare const BrightnessContrastShader: {
|
|
8
8
|
uniforms: {
|
|
9
9
|
tDiffuse: {
|
|
10
10
|
value: null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Vector3 } from 'three';
|
|
2
|
+
/**
|
|
3
|
+
* Color correction
|
|
4
|
+
*/
|
|
5
|
+
export type declare const ColorCorrectionShader: {
|
|
6
|
+
uniforms: {
|
|
7
|
+
tDiffuse: {
|
|
8
|
+
value: null;
|
|
9
|
+
};
|
|
10
|
+
powRGB: {
|
|
11
|
+
value: Vector3;
|
|
12
|
+
};
|
|
13
|
+
mulRGB: {
|
|
14
|
+
value: Vector3;
|
|
15
|
+
};
|
|
16
|
+
addRGB: {
|
|
17
|
+
value: Vector3;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
vertexShader: string;
|
|
21
|
+
fragmentShader: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Color } from 'three';
|
|
2
|
+
/**
|
|
3
|
+
* Colorify shader
|
|
4
|
+
*/
|
|
5
|
+
export type declare const ColorifyShader: {
|
|
6
|
+
uniforms: {
|
|
7
|
+
tDiffuse: {
|
|
8
|
+
value: null;
|
|
9
|
+
};
|
|
10
|
+
color: {
|
|
11
|
+
value: Color;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
vertexShader: string;
|
|
15
|
+
fragmentShader: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Vector2 } from 'three';
|
|
2
|
+
/**
|
|
3
|
+
* Convolution shader
|
|
4
|
+
* ported from o3d sample to WebGL / GLSL
|
|
5
|
+
* http://o3d.googlecode.com/svn/trunk/samples/convolution.html
|
|
6
|
+
*/
|
|
7
|
+
import type { IUniform, Texture } from 'three';
|
|
8
|
+
import type { IShader } from './types.d.cts';
|
|
9
|
+
export type ConvolutionShaderDefines = {
|
|
10
|
+
KERNEL_SIZE_FLOAT: string;
|
|
11
|
+
KERNEL_SIZE_INT: string;
|
|
12
|
+
};
|
|
13
|
+
export type ConvolutionShaderUniforms = {
|
|
14
|
+
cKernel: IUniform<number[]>;
|
|
15
|
+
tDiffuse: IUniform<Texture | null>;
|
|
16
|
+
uImageIncrement: IUniform<Vector2>;
|
|
17
|
+
};
|
|
18
|
+
export interface IConvolutionShader extends IShader<ConvolutionShaderUniforms, ConvolutionShaderDefines> {
|
|
19
|
+
buildKernel: (sigma: number) => number[];
|
|
20
|
+
}
|
|
21
|
+
export type declare const ConvolutionShader: IConvolutionShader;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Vector2 } from 'three';
|
|
1
|
+
import type { Vector2 } from 'three';
|
|
2
2
|
/**
|
|
3
3
|
* Convolution shader
|
|
4
4
|
* ported from o3d sample to WebGL / GLSL
|
|
5
5
|
* http://o3d.googlecode.com/svn/trunk/samples/convolution.html
|
|
6
6
|
*/
|
|
7
7
|
import type { IUniform, Texture } from 'three';
|
|
8
|
-
import type { IShader } from './types';
|
|
8
|
+
import type { IShader } from './types.d.ts';
|
|
9
9
|
export type ConvolutionShaderDefines = {
|
|
10
10
|
KERNEL_SIZE_FLOAT: string;
|
|
11
11
|
KERNEL_SIZE_INT: string;
|
|
@@ -18,4 +18,4 @@ export type ConvolutionShaderUniforms = {
|
|
|
18
18
|
export interface IConvolutionShader extends IShader<ConvolutionShaderUniforms, ConvolutionShaderDefines> {
|
|
19
19
|
buildKernel: (sigma: number) => number[];
|
|
20
20
|
}
|
|
21
|
-
export declare const ConvolutionShader: IConvolutionShader;
|
|
21
|
+
export type declare const ConvolutionShader: IConvolutionShader;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Full-screen textured quad shader
|
|
3
|
+
*/
|
|
4
|
+
import type { IUniform, Texture } from 'three';
|
|
5
|
+
import type { IShader } from './types.d.cts';
|
|
6
|
+
export type CopyShaderUniforms = {
|
|
7
|
+
opacity: IUniform<number>;
|
|
8
|
+
tDiffuse: IUniform<Texture | null>;
|
|
9
|
+
};
|
|
10
|
+
export interface ICopyShader extends IShader<CopyShaderUniforms> {
|
|
11
|
+
}
|
|
12
|
+
export type declare const CopyShader: ICopyShader;
|
package/shaders/CopyShader.d.ts
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Full-screen textured quad shader
|
|
3
3
|
*/
|
|
4
4
|
import type { IUniform, Texture } from 'three';
|
|
5
|
-
import type { IShader } from './types';
|
|
5
|
+
import type { IShader } from './types.d.ts';
|
|
6
6
|
export type CopyShaderUniforms = {
|
|
7
7
|
opacity: IUniform<number>;
|
|
8
8
|
tDiffuse: IUniform<Texture | null>;
|
|
9
9
|
};
|
|
10
10
|
export interface ICopyShader extends IShader<CopyShaderUniforms> {
|
|
11
11
|
}
|
|
12
|
-
export declare const CopyShader: ICopyShader;
|
|
12
|
+
export type declare const CopyShader: ICopyShader;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Depth-of-field shader using mipmaps
|
|
3
|
+
* - from Matt Handley @applmak
|
|
4
|
+
* - requires power-of-2 sized render target with enabled mipmaps
|
|
5
|
+
*/
|
|
6
|
+
export type declare const DOFMipMapShader: {
|
|
7
|
+
uniforms: {
|
|
8
|
+
tColor: {
|
|
9
|
+
value: null;
|
|
10
|
+
};
|
|
11
|
+
tDepth: {
|
|
12
|
+
value: null;
|
|
13
|
+
};
|
|
14
|
+
focus: {
|
|
15
|
+
value: number;
|
|
16
|
+
};
|
|
17
|
+
maxblur: {
|
|
18
|
+
value: number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
vertexShader: string;
|
|
22
|
+
fragmentShader: string;
|
|
23
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Vector2 } from 'three';
|
|
2
|
+
import type { IUniform, Texture } from 'three';
|
|
3
|
+
import type { IShader } from './types.d.cts';
|
|
4
|
+
export type DepthLimitedBlurShaderDefines = {
|
|
5
|
+
DEPTH_PACKING: number;
|
|
6
|
+
KERNEL_RADIUS: number;
|
|
7
|
+
PERSPECTIVE_CAMERA: number;
|
|
8
|
+
};
|
|
9
|
+
export type DepthLimitedBlurShaderUniforms = {
|
|
10
|
+
cameraFar: IUniform<number>;
|
|
11
|
+
cameraNear: IUniform<number>;
|
|
12
|
+
depthCutoff: IUniform<number>;
|
|
13
|
+
sampleUvOffsets: IUniform<Vector2[]>;
|
|
14
|
+
sampleWeights: IUniform<number[]>;
|
|
15
|
+
size: IUniform<Vector2>;
|
|
16
|
+
tDepth: IUniform<Texture | null>;
|
|
17
|
+
tDiffuse: IUniform<Texture | null>;
|
|
18
|
+
};
|
|
19
|
+
export interface IDepthLimitedBlurShader extends IShader<DepthLimitedBlurShaderUniforms, DepthLimitedBlurShaderDefines> {
|
|
20
|
+
defines: DepthLimitedBlurShaderDefines;
|
|
21
|
+
needsUpdate?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export type declare const DepthLimitedBlurShader: IDepthLimitedBlurShader;
|
|
24
|
+
export type declare const BlurShaderUtils: {
|
|
25
|
+
createSampleWeights: (kernelRadius: number, stdDev: number) => number[];
|
|
26
|
+
createSampleOffsets: (kernelRadius: number, uvIncrement: Vector2) => Vector2[];
|
|
27
|
+
configure: (shader: IDepthLimitedBlurShader, kernelRadius: number, stdDev: number, uvIncrement: Vector2) => void;
|
|
28
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Vector2 } from 'three';
|
|
1
|
+
import type { Vector2 } from 'three';
|
|
2
2
|
import type { IUniform, Texture } from 'three';
|
|
3
|
-
import type { IShader } from './types';
|
|
3
|
+
import type { IShader } from './types.d.ts';
|
|
4
4
|
export type DepthLimitedBlurShaderDefines = {
|
|
5
5
|
DEPTH_PACKING: number;
|
|
6
6
|
KERNEL_RADIUS: number;
|
|
@@ -20,8 +20,8 @@ export interface IDepthLimitedBlurShader extends IShader<DepthLimitedBlurShaderU
|
|
|
20
20
|
defines: DepthLimitedBlurShaderDefines;
|
|
21
21
|
needsUpdate?: boolean;
|
|
22
22
|
}
|
|
23
|
-
export declare const DepthLimitedBlurShader: IDepthLimitedBlurShader;
|
|
24
|
-
export declare const BlurShaderUtils: {
|
|
23
|
+
export type declare const DepthLimitedBlurShader: IDepthLimitedBlurShader;
|
|
24
|
+
export type declare const BlurShaderUtils: {
|
|
25
25
|
createSampleWeights: (kernelRadius: number, stdDev: number) => number[];
|
|
26
26
|
createSampleOffsets: (kernelRadius: number, uvIncrement: Vector2) => Vector2[];
|
|
27
27
|
configure: (shader: IDepthLimitedBlurShader, kernelRadius: number, stdDev: number, uvIncrement: Vector2) => void;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type declare const DigitalGlitch: {
|
|
2
|
+
uniforms: {
|
|
3
|
+
tDiffuse: {
|
|
4
|
+
value: null;
|
|
5
|
+
};
|
|
6
|
+
tDisp: {
|
|
7
|
+
value: null;
|
|
8
|
+
};
|
|
9
|
+
byp: {
|
|
10
|
+
value: number;
|
|
11
|
+
};
|
|
12
|
+
amount: {
|
|
13
|
+
value: number;
|
|
14
|
+
};
|
|
15
|
+
angle: {
|
|
16
|
+
value: number;
|
|
17
|
+
};
|
|
18
|
+
seed: {
|
|
19
|
+
value: number;
|
|
20
|
+
};
|
|
21
|
+
seed_x: {
|
|
22
|
+
value: number;
|
|
23
|
+
};
|
|
24
|
+
seed_y: {
|
|
25
|
+
value: number;
|
|
26
|
+
};
|
|
27
|
+
distortion_x: {
|
|
28
|
+
value: number;
|
|
29
|
+
};
|
|
30
|
+
distortion_y: {
|
|
31
|
+
value: number;
|
|
32
|
+
};
|
|
33
|
+
col_s: {
|
|
34
|
+
value: number;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
vertexShader: string;
|
|
38
|
+
fragmentShader: string;
|
|
39
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Vector2 } from 'three';
|
|
2
|
+
/**
|
|
3
|
+
* Dot screen shader
|
|
4
|
+
* based on glfx.js sepia shader
|
|
5
|
+
* https://github.com/evanw/glfx.js
|
|
6
|
+
*/
|
|
7
|
+
export type declare const DotScreenShader: {
|
|
8
|
+
uniforms: {
|
|
9
|
+
tDiffuse: {
|
|
10
|
+
value: null;
|
|
11
|
+
};
|
|
12
|
+
tSize: {
|
|
13
|
+
value: Vector2;
|
|
14
|
+
};
|
|
15
|
+
center: {
|
|
16
|
+
value: Vector2;
|
|
17
|
+
};
|
|
18
|
+
angle: {
|
|
19
|
+
value: number;
|
|
20
|
+
};
|
|
21
|
+
scale: {
|
|
22
|
+
value: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
vertexShader: string;
|
|
26
|
+
fragmentShader: string;
|
|
27
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Vector2 } from 'three';
|
|
1
|
+
import type { Vector2 } from 'three';
|
|
2
2
|
/**
|
|
3
3
|
* Dot screen shader
|
|
4
4
|
* based on glfx.js sepia shader
|
|
5
5
|
* https://github.com/evanw/glfx.js
|
|
6
6
|
*/
|
|
7
|
-
export declare const DotScreenShader: {
|
|
7
|
+
export type declare const DotScreenShader: {
|
|
8
8
|
uniforms: {
|
|
9
9
|
tDiffuse: {
|
|
10
10
|
value: null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Vector2 } from 'three';
|
|
2
|
+
/**
|
|
3
|
+
* NVIDIA FXAA by Timothy Lottes
|
|
4
|
+
* http://timothylottes.blogspot.com/2011/06/fxaa3-source-released.html
|
|
5
|
+
* - WebGL port by @supereggbert
|
|
6
|
+
* http://www.glge.org/demos/fxaa/
|
|
7
|
+
*/
|
|
8
|
+
export type declare const FXAAShader: {
|
|
9
|
+
uniforms: {
|
|
10
|
+
tDiffuse: {
|
|
11
|
+
value: null;
|
|
12
|
+
};
|
|
13
|
+
resolution: {
|
|
14
|
+
value: Vector2;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
vertexShader: string;
|
|
18
|
+
fragmentShader: string;
|
|
19
|
+
};
|
package/shaders/FXAAShader.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Vector2 } from 'three';
|
|
1
|
+
import type { Vector2 } from 'three';
|
|
2
2
|
/**
|
|
3
3
|
* NVIDIA FXAA by Timothy Lottes
|
|
4
4
|
* http://timothylottes.blogspot.com/2011/06/fxaa3-source-released.html
|
|
5
5
|
* - WebGL port by @supereggbert
|
|
6
6
|
* http://www.glge.org/demos/fxaa/
|
|
7
7
|
*/
|
|
8
|
-
export declare const FXAAShader: {
|
|
8
|
+
export type declare const FXAAShader: {
|
|
9
9
|
uniforms: {
|
|
10
10
|
tDiffuse: {
|
|
11
11
|
value: null;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Film grain & scanlines shader
|
|
3
|
+
*
|
|
4
|
+
* - ported from HLSL to WebGL / GLSL
|
|
5
|
+
* http://www.truevision3d.com/forums/showcase/staticnoise_colorblackwhite_scanline_shaders-t18698.0.html
|
|
6
|
+
*
|
|
7
|
+
* Screen Space Static Postprocessor
|
|
8
|
+
*
|
|
9
|
+
* Produces an analogue noise overlay similar to a film grain / TV static
|
|
10
|
+
*
|
|
11
|
+
* Original implementation and noise algorithm
|
|
12
|
+
* Pat 'Hawthorne' Shearon
|
|
13
|
+
*
|
|
14
|
+
* Optimized scanlines + noise version with intensity scaling
|
|
15
|
+
* Georg 'Leviathan' Steinrohder
|
|
16
|
+
*
|
|
17
|
+
* This version is provided under a Creative Commons Attribution 3.0 License
|
|
18
|
+
* http://creativecommons.org/licenses/by/3.0/
|
|
19
|
+
*/
|
|
20
|
+
export type declare const FilmShader: {
|
|
21
|
+
uniforms: {
|
|
22
|
+
tDiffuse: {
|
|
23
|
+
value: null;
|
|
24
|
+
};
|
|
25
|
+
time: {
|
|
26
|
+
value: number;
|
|
27
|
+
};
|
|
28
|
+
nIntensity: {
|
|
29
|
+
value: number;
|
|
30
|
+
};
|
|
31
|
+
sIntensity: {
|
|
32
|
+
value: number;
|
|
33
|
+
};
|
|
34
|
+
sCount: {
|
|
35
|
+
value: number;
|
|
36
|
+
};
|
|
37
|
+
grayscale: {
|
|
38
|
+
value: number;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
vertexShader: string;
|
|
42
|
+
fragmentShader: string;
|
|
43
|
+
};
|
package/shaders/FilmShader.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* This version is provided under a Creative Commons Attribution 3.0 License
|
|
18
18
|
* http://creativecommons.org/licenses/by/3.0/
|
|
19
19
|
*/
|
|
20
|
-
export declare const FilmShader: {
|
|
20
|
+
export type declare const FilmShader: {
|
|
21
21
|
uniforms: {
|
|
22
22
|
tDiffuse: {
|
|
23
23
|
value: null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Focus shader
|
|
3
|
+
* based on PaintEffect postprocess from ro.me
|
|
4
|
+
* http://code.google.com/p/3-dreams-of-black/source/browse/deploy/js/effects/PaintEffect.js
|
|
5
|
+
*/
|
|
6
|
+
export type declare const FocusShader: {
|
|
7
|
+
uniforms: {
|
|
8
|
+
tDiffuse: {
|
|
9
|
+
value: null;
|
|
10
|
+
};
|
|
11
|
+
screenWidth: {
|
|
12
|
+
value: number;
|
|
13
|
+
};
|
|
14
|
+
screenHeight: {
|
|
15
|
+
value: number;
|
|
16
|
+
};
|
|
17
|
+
sampleDistance: {
|
|
18
|
+
value: number;
|
|
19
|
+
};
|
|
20
|
+
waveFactor: {
|
|
21
|
+
value: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
vertexShader: string;
|
|
25
|
+
fragmentShader: string;
|
|
26
|
+
};
|
package/shaders/FocusShader.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* based on PaintEffect postprocess from ro.me
|
|
4
4
|
* http://code.google.com/p/3-dreams-of-black/source/browse/deploy/js/effects/PaintEffect.js
|
|
5
5
|
*/
|
|
6
|
-
export declare const FocusShader: {
|
|
6
|
+
export type declare const FocusShader: {
|
|
7
7
|
uniforms: {
|
|
8
8
|
tDiffuse: {
|
|
9
9
|
value: null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Vector2 } from 'three';
|
|
2
|
+
/**
|
|
3
|
+
* Edge Detection Shader using Frei-Chen filter
|
|
4
|
+
* Based on http://rastergrid.com/blog/2011/01/frei-chen-edge-detector
|
|
5
|
+
*
|
|
6
|
+
* aspect: vec2 of (1/width, 1/height)
|
|
7
|
+
*/
|
|
8
|
+
export type declare const FreiChenShader: {
|
|
9
|
+
uniforms: {
|
|
10
|
+
tDiffuse: {
|
|
11
|
+
value: null;
|
|
12
|
+
};
|
|
13
|
+
aspect: {
|
|
14
|
+
value: Vector2;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
vertexShader: string;
|
|
18
|
+
fragmentShader: string;
|
|
19
|
+
};
|