three-stdlib 2.35.11 → 2.35.13
Sign up to get free protection for your applications and to get access to all the features.
- package/animation/AnimationClipCreator.d.ts +1 -1
- package/animation/CCDIKSolver.d.ts +1 -1
- package/animation/MMDAnimationHelper.d.ts +3 -3
- package/animation/MMDPhysics.d.ts +1 -1
- package/cameras/CinematicCamera.d.ts +2 -2
- package/controls/ArcballControls.d.ts +4 -4
- package/controls/DeviceOrientationControls.d.ts +4 -4
- package/controls/DragControls.d.ts +3 -3
- package/controls/FirstPersonControls.d.ts +2 -2
- package/controls/FlyControls.d.ts +3 -3
- package/controls/OrbitControls.d.ts +4 -4
- package/controls/PointerLockControls.d.ts +3 -3
- package/controls/TrackballControls.d.ts +4 -4
- package/controls/TransformControls.d.ts +2 -2
- package/controls/experimental/CameraControls.d.ts +3 -3
- package/csm/CSM.d.ts +2 -2
- package/csm/CSMFrustum.d.ts +2 -2
- package/csm/CSMHelper.d.ts +2 -2
- package/curves/CurveExtras.d.ts +1 -1
- package/curves/NURBSCurve.d.ts +1 -1
- package/curves/NURBSSurface.d.ts +1 -1
- package/curves/NURBSUtils.d.ts +1 -1
- package/deprecated/Geometry.d.ts +1 -1
- package/effects/AnaglyphEffect.d.ts +1 -1
- package/effects/AsciiEffect.d.ts +1 -1
- package/effects/OutlineEffect.d.ts +1 -1
- package/effects/ParallaxBarrierEffect.d.ts +1 -1
- package/effects/PeppersGhostEffect.d.ts +1 -1
- package/effects/StereoEffect.d.ts +1 -1
- package/environments/RoomEnvironment.d.ts +2 -2
- package/exporters/ColladaExporter.d.ts +2 -2
- package/exporters/DRACOExporter.d.ts +2 -2
- package/exporters/GLTFExporter.d.ts +4 -4
- package/exporters/MMDExporter.d.ts +2 -2
- package/exporters/OBJExporter.d.ts +2 -2
- package/exporters/PLYExporter.d.ts +2 -2
- package/exporters/STLExporter.d.ts +1 -1
- package/exporters/USDZExporter.d.ts +2 -2
- package/geometries/BoxLineGeometry.d.ts +1 -1
- package/geometries/ConvexGeometry.d.ts +1 -1
- package/geometries/DecalGeometry.d.ts +1 -1
- package/geometries/LightningStrike.d.ts +1 -1
- package/geometries/ParametricGeometries.d.ts +3 -3
- package/geometries/ParametricGeometry.d.ts +2 -2
- package/geometries/RoundedBoxGeometry.d.ts +1 -1
- package/geometries/TeapotGeometry.d.ts +1 -1
- package/geometries/TextGeometry.d.ts +3 -3
- package/helpers/LightProbeHelper.d.ts +1 -1
- package/helpers/PositionalAudioHelper.d.ts +1 -1
- package/helpers/RaycasterHelper.d.ts +2 -2
- package/helpers/RectAreaLightHelper.d.ts +1 -1
- package/helpers/VertexNormalsHelper.d.ts +1 -1
- package/helpers/VertexTangentsHelper.d.ts +1 -1
- package/index.d.ts +262 -262
- package/interactive/HTMLMesh.d.ts +1 -1
- package/interactive/InteractiveGroup.d.ts +1 -1
- package/interactive/SelectionBox.d.ts +1 -1
- package/interactive/SelectionHelper.d.ts +2 -2
- package/libs/MeshoptDecoder.d.ts +1 -1
- package/libs/MotionControllers.d.ts +1 -1
- package/lights/LightProbeGenerator.d.ts +2 -2
- package/lights/RectAreaLightUniformsLib.d.ts +1 -1
- package/lines/Line2.d.ts +3 -3
- package/lines/LineGeometry.d.ts +2 -2
- package/lines/LineMaterial.d.ts +1 -1
- package/lines/LineSegments2.d.ts +3 -3
- package/lines/LineSegmentsGeometry.d.ts +1 -1
- package/lines/Wireframe.d.ts +3 -3
- package/lines/WireframeGeometry2.d.ts +2 -2
- package/loaders/3DMLoader.d.ts +1 -1
- package/loaders/3MFLoader.d.ts +1 -1
- package/loaders/AMFLoader.d.ts +1 -1
- package/loaders/AssimpLoader.d.ts +1 -1
- package/loaders/BVHLoader.d.ts +1 -1
- package/loaders/BasisTextureLoader.d.ts +1 -1
- package/loaders/ColladaLoader.d.ts +1 -1
- package/loaders/DDSLoader.d.ts +1 -1
- package/loaders/DRACOLoader.d.ts +1 -1
- package/loaders/EXRLoader.d.ts +1 -1
- package/loaders/FBXLoader.d.ts +1 -1
- package/loaders/FontLoader.d.ts +2 -2
- package/loaders/GCodeLoader.d.ts +1 -1
- package/loaders/GLTFLoader.d.ts +3 -3
- package/loaders/HDRCubeTextureLoader.d.ts +2 -2
- package/loaders/KMZLoader.d.ts +2 -2
- package/loaders/KTX2Loader.d.ts +1 -1
- package/loaders/KTXLoader.d.ts +1 -1
- package/loaders/LDrawLoader.d.ts +1 -1
- package/loaders/LUT3dlLoader.d.ts +1 -1
- package/loaders/LUTCubeLoader.d.ts +1 -1
- package/loaders/LWOLoader.d.ts +1 -1
- package/loaders/LottieLoader.d.ts +1 -1
- package/loaders/MD2Loader.d.ts +1 -1
- package/loaders/MDDLoader.d.ts +1 -1
- package/loaders/MMDLoader.d.ts +1 -1
- package/loaders/MTLLoader.d.ts +1 -1
- package/loaders/NRRDLoader.d.ts +2 -2
- package/loaders/OBJLoader.d.ts +2 -2
- package/loaders/PCDLoader.d.ts +1 -1
- package/loaders/PDBLoader.d.ts +1 -1
- package/loaders/PLYLoader.d.ts +1 -1
- package/loaders/PRWMLoader.d.ts +1 -1
- package/loaders/PVRLoader.d.ts +1 -1
- package/loaders/RGBELoader.d.ts +1 -1
- package/loaders/RGBMLoader.d.ts +1 -1
- package/loaders/STLLoader.d.ts +1 -1
- package/loaders/SVGLoader.d.ts +1 -1
- package/loaders/TDSLoader.d.ts +1 -1
- package/loaders/TGALoader.d.ts +1 -1
- package/loaders/TTFLoader.d.ts +1 -1
- package/loaders/TiltLoader.d.ts +1 -1
- package/loaders/VOXLoader.d.ts +1 -1
- package/loaders/VRMLLoader.d.ts +1 -1
- package/loaders/VRMLoader.d.ts +3 -3
- package/loaders/VTKLoader.d.ts +1 -1
- package/loaders/XLoader.d.ts +1 -1
- package/loaders/XYZLoader.d.ts +1 -1
- package/math/Capsule.d.ts +1 -1
- package/math/ColorConverter.d.ts +2 -2
- package/math/ConvexHull.d.ts +1 -1
- package/math/Lut.d.ts +1 -1
- package/math/MeshSurfaceSampler.d.ts +1 -1
- package/math/OBB.d.ts +1 -1
- package/math/Octree.d.ts +2 -2
- package/misc/ConvexObjectBreaker.d.ts +1 -1
- package/misc/GPUComputationRenderer.d.ts +1 -1
- package/misc/Gyroscope.d.ts +1 -1
- package/misc/MD2Character.d.ts +1 -1
- package/misc/MD2CharacterComplex.d.ts +1 -1
- package/misc/MorphAnimMesh.d.ts +1 -1
- package/misc/MorphBlendMesh.d.ts +1 -1
- package/misc/ProgressiveLightmap.d.ts +1 -1
- package/misc/RollerCoaster.d.ts +1 -1
- package/misc/Timer.d.ts +1 -1
- package/misc/TubePainter.d.ts +1 -1
- package/misc/Volume.d.ts +2 -2
- package/misc/VolumeSlice.d.ts +2 -2
- package/modifiers/CurveModifier.d.ts +1 -1
- package/modifiers/EdgeSplitModifier.d.ts +2 -2
- package/modifiers/SimplifyModifier.d.ts +2 -2
- package/modifiers/TessellateModifier.d.ts +2 -2
- package/objects/BatchedMesh.d.ts +2 -2
- package/objects/GroundProjectedEnv.d.ts +1 -1
- package/objects/Lensflare.d.ts +1 -1
- package/objects/LightningStorm.d.ts +2 -2
- package/objects/MarchingCubes.d.ts +1 -1
- package/objects/Reflector.d.ts +2 -2
- package/objects/ReflectorForSSRPass.d.ts +1 -1
- package/objects/ReflectorRTT.d.ts +3 -3
- package/objects/Refractor.d.ts +2 -2
- package/objects/ShadowMesh.d.ts +1 -1
- package/objects/Sky.d.ts +2 -2
- package/objects/Water.d.ts +1 -1
- package/objects/Water2.d.ts +2 -2
- package/package.json +5 -11
- package/physics/AmmoPhysics.d.ts +1 -1
- package/postprocessing/AdaptiveToneMappingPass.d.ts +2 -2
- package/postprocessing/AfterimagePass.d.ts +3 -3
- package/postprocessing/BloomPass.d.ts +4 -4
- package/postprocessing/BokehPass.d.ts +3 -3
- package/postprocessing/ClearPass.d.ts +3 -3
- package/postprocessing/CubeTexturePass.d.ts +2 -2
- package/postprocessing/DotScreenPass.d.ts +4 -4
- package/postprocessing/EffectComposer.d.ts +3 -3
- package/postprocessing/FilmPass.d.ts +4 -4
- package/postprocessing/GlitchPass.d.ts +4 -4
- package/postprocessing/HalftonePass.d.ts +3 -3
- package/postprocessing/LUTPass.d.ts +2 -2
- package/postprocessing/MaskPass.d.ts +3 -3
- package/postprocessing/OutlinePass.d.ts +3 -3
- package/postprocessing/Pass.d.ts +2 -2
- package/postprocessing/RenderPass.d.ts +3 -3
- package/postprocessing/RenderPixelatedPass.d.ts +2 -2
- package/postprocessing/SAOPass.d.ts +2 -2
- package/postprocessing/SMAAPass.d.ts +2 -2
- package/postprocessing/SSAARenderPass.d.ts +2 -2
- package/postprocessing/SSAOPass.d.ts +2 -2
- package/postprocessing/SSRPass.d.ts +3 -3
- package/postprocessing/SavePass.d.ts +2 -2
- package/postprocessing/ShaderPass.d.ts +4 -4
- package/postprocessing/TAARenderPass.d.ts +2 -2
- package/postprocessing/TexturePass.d.ts +2 -2
- package/postprocessing/UnrealBloomPass.d.ts +2 -2
- package/postprocessing/WaterPass.d.ts +3 -3
- package/renderers/CSS2DRenderer.d.ts +1 -1
- package/renderers/CSS3DRenderer.d.ts +1 -1
- package/renderers/Projector.d.ts +1 -1
- package/renderers/SVGRenderer.d.ts +1 -1
- package/shaders/ACESFilmicToneMappingShader.cjs +35 -35
- package/shaders/ACESFilmicToneMappingShader.cjs.map +1 -1
- package/shaders/ACESFilmicToneMappingShader.d.ts +1 -1
- package/shaders/ACESFilmicToneMappingShader.js +35 -35
- package/shaders/ACESFilmicToneMappingShader.js.map +1 -1
- package/shaders/AfterimageShader.d.ts +1 -1
- package/shaders/BasicShader.d.ts +1 -1
- package/shaders/BleachBypassShader.d.ts +1 -1
- package/shaders/BokehShader.d.ts +1 -1
- package/shaders/BokehShader2.d.ts +1 -1
- package/shaders/ColorCorrectionShader.d.ts +1 -1
- package/shaders/ColorifyShader.d.ts +1 -1
- package/shaders/ConvolutionShader.d.ts +2 -2
- package/shaders/CopyShader.d.ts +1 -1
- package/shaders/DepthLimitedBlurShader.d.ts +2 -2
- package/shaders/DotScreenShader.d.ts +1 -1
- package/shaders/FXAAShader.cjs +4 -4
- package/shaders/FXAAShader.cjs.map +1 -1
- package/shaders/FXAAShader.d.ts +1 -1
- package/shaders/FXAAShader.js +4 -4
- package/shaders/FXAAShader.js.map +1 -1
- package/shaders/FreiChenShader.d.ts +1 -1
- package/shaders/GammaCorrectionShader.d.ts +1 -1
- package/shaders/GodRaysShader.cjs +4 -4
- package/shaders/GodRaysShader.cjs.map +1 -1
- package/shaders/GodRaysShader.d.ts +1 -1
- package/shaders/GodRaysShader.js +4 -4
- package/shaders/GodRaysShader.js.map +1 -1
- package/shaders/HorizontalBlurShader.d.ts +1 -1
- package/shaders/LuminosityHighPassShader.d.ts +1 -1
- package/shaders/NormalMapShader.d.ts +1 -1
- package/shaders/ParallaxShader.cjs +1 -1
- package/shaders/ParallaxShader.cjs.map +1 -1
- package/shaders/ParallaxShader.js +1 -1
- package/shaders/ParallaxShader.js.map +1 -1
- package/shaders/SAOShader.d.ts +2 -2
- package/shaders/SMAAShader.d.ts +1 -1
- package/shaders/SSAOShader.d.ts +1 -1
- package/shaders/SSRShader.d.ts +1 -1
- package/shaders/SobelOperatorShader.d.ts +1 -1
- package/shaders/ToonShader.d.ts +1 -1
- package/shaders/TriangleBlurShader.d.ts +1 -1
- package/shaders/VerticalBlurShader.d.ts +1 -1
- package/shaders/VignetteShader.cjs +4 -4
- package/shaders/VignetteShader.cjs.map +1 -1
- package/shaders/VignetteShader.js +4 -4
- package/shaders/VignetteShader.js.map +1 -1
- package/shaders/VolumeShader.d.ts +1 -1
- package/textures/FlakesTexture.d.ts +1 -1
- package/types/shared.d.ts +1 -1
- package/utils/BufferGeometryUtils.d.ts +1 -1
- package/utils/GeometryCompressionUtils.d.ts +2 -2
- package/utils/GeometryUtils.d.ts +1 -1
- package/utils/LDrawUtils.d.ts +2 -2
- package/utils/RoughnessMipmapper.d.ts +1 -1
- package/utils/SceneUtils.d.ts +2 -2
- package/utils/ShadowMapViewer.d.ts +1 -1
- package/utils/SkeletonUtils.d.ts +2 -2
- package/utils/UVsDebug.d.ts +1 -1
- package/webxr/ARButton.d.ts +2 -2
- package/webxr/OculusHandModel.d.ts +3 -3
- package/webxr/OculusHandPointerModel.d.ts +1 -1
- package/webxr/Text2D.d.ts +1 -1
- package/webxr/VRButton.d.ts +2 -2
- package/webxr/XRControllerModelFactory.d.ts +4 -4
- package/webxr/XREstimatedLight.d.ts +1 -1
- package/webxr/XRHandMeshModel.d.ts +2 -2
- package/webxr/XRHandModelFactory.d.ts +3 -3
- package/webxr/XRHandPrimitiveModel.d.ts +2 -2
- package/_polyfill/constants.d.cts +0 -1
- package/_polyfill/uv1.d.cts +0 -5
- package/animation/AnimationClipCreator.d.cts +0 -12
- package/animation/CCDIKSolver.d.cts +0 -30
- package/animation/MMDAnimationHelper.d.cts +0 -93
- package/animation/MMDPhysics.d.cts +0 -119
- package/cameras/CinematicCamera.d.cts +0 -34
- package/controls/ArcballControls.d.cts +0 -376
- package/controls/DeviceOrientationControls.d.cts +0 -29
- package/controls/DragControls.d.cts +0 -67
- package/controls/EventDispatcher.d.cts +0 -41
- package/controls/FirstPersonControls.d.cts +0 -49
- package/controls/FlyControls.d.cts +0 -39
- package/controls/OrbitControls.d.cts +0 -74
- package/controls/PointerLockControls.d.cts +0 -39
- package/controls/StandardControlsEventMap.d.cts +0 -14
- package/controls/TrackballControls.d.cts +0 -97
- package/controls/TransformControls.d.cts +0 -151
- package/controls/experimental/CameraControls.d.cts +0 -213
- package/csm/CSM.d.cts +0 -61
- package/csm/CSMFrustum.d.cts +0 -19
- package/csm/CSMHelper.d.cts +0 -26
- package/csm/CSMShader.d.cts +0 -4
- package/curves/CurveExtras.d.cts +0 -68
- package/curves/NURBSCurve.d.cts +0 -11
- package/curves/NURBSSurface.d.cts +0 -13
- package/curves/NURBSUtils.d.cts +0 -20
- package/deprecated/Geometry.d.cts +0 -341
- package/effects/AnaglyphEffect.d.cts +0 -11
- package/effects/AsciiEffect.d.cts +0 -18
- package/effects/OutlineEffect.d.cts +0 -28
- package/effects/ParallaxBarrierEffect.d.cts +0 -8
- package/effects/PeppersGhostEffect.d.cts +0 -10
- package/effects/StereoEffect.d.cts +0 -9
- package/environments/RoomEnvironment.d.cts +0 -6
- package/exporters/ColladaExporter.d.cts +0 -50
- package/exporters/DRACOExporter.d.cts +0 -36
- package/exporters/GLTFExporter.d.cts +0 -114
- package/exporters/MMDExporter.d.cts +0 -12
- package/exporters/OBJExporter.d.cts +0 -18
- package/exporters/PLYExporter.d.cts +0 -23
- package/exporters/STLExporter.d.cts +0 -28
- package/exporters/USDZExporter.d.cts +0 -27
- package/geometries/BoxLineGeometry.d.cts +0 -12
- package/geometries/ConvexGeometry.d.cts +0 -5
- package/geometries/DecalGeometry.d.cts +0 -10
- package/geometries/LightningStrike.d.cts +0 -108
- package/geometries/ParametricGeometries.d.cts +0 -26
- package/geometries/ParametricGeometry.d.cts +0 -18
- package/geometries/RoundedBoxGeometry.d.cts +0 -5
- package/geometries/TeapotGeometry.d.cts +0 -13
- package/geometries/TextGeometry.d.cts +0 -18
- package/helpers/LightProbeHelper.d.cts +0 -10
- package/helpers/PositionalAudioHelper.d.cts +0 -13
- package/helpers/RaycasterHelper.d.cts +0 -33
- package/helpers/RectAreaLightHelper.d.cts +0 -11
- package/helpers/VertexNormalsHelper.d.cts +0 -13
- package/helpers/VertexTangentsHelper.d.cts +0 -13
- package/index.d.cts +0 -262
- package/interactive/HTMLMesh.d.cts +0 -6
- package/interactive/InteractiveGroup.d.cts +0 -5
- package/interactive/SelectionBox.d.cts +0 -15
- package/interactive/SelectionHelper.d.cts +0 -17
- package/libs/MeshoptDecoder.d.cts +0 -12
- package/libs/MotionControllers.d.cts +0 -176
- package/libs/zstddec.d.cts +0 -8
- package/lights/LightProbeGenerator.d.cts +0 -6
- package/lights/RectAreaLightUniformsLib.d.cts +0 -3
- package/lines/Line2.d.cts +0 -11
- package/lines/LineGeometry.d.cts +0 -10
- package/lines/LineMaterial.d.cts +0 -31
- package/lines/LineSegments2.d.cts +0 -14
- package/lines/LineSegmentsGeometry.d.cts +0 -16
- package/lines/Wireframe.d.cts +0 -11
- package/lines/WireframeGeometry2.d.cts +0 -8
- package/loaders/3DMLoader.d.cts +0 -17
- package/loaders/3MFLoader.d.cts +0 -16
- package/loaders/AMFLoader.d.cts +0 -14
- package/loaders/AssimpLoader.d.cts +0 -19
- package/loaders/BVHLoader.d.cts +0 -21
- package/loaders/BasisTextureLoader.d.cts +0 -32
- package/loaders/ColladaLoader.d.cts +0 -20
- package/loaders/DDSLoader.d.cts +0 -16
- package/loaders/DRACOLoader.d.cts +0 -18
- package/loaders/EXRLoader.d.cts +0 -18
- package/loaders/FBXLoader.d.cts +0 -14
- package/loaders/FontLoader.d.cts +0 -37
- package/loaders/GCodeLoader.d.cts +0 -15
- package/loaders/GLTFLoader.d.cts +0 -155
- package/loaders/HDRCubeTextureLoader.d.cts +0 -18
- package/loaders/KMZLoader.d.cts +0 -16
- package/loaders/KTX2Loader.d.cts +0 -10
- package/loaders/KTXLoader.d.cts +0 -16
- package/loaders/LDrawLoader.d.cts +0 -26
- package/loaders/LUT3dlLoader.d.cts +0 -20
- package/loaders/LUTCubeLoader.d.cts +0 -23
- package/loaders/LWOLoader.d.cts +0 -26
- package/loaders/LottieLoader.d.cts +0 -15
- package/loaders/MD2Loader.d.cts +0 -14
- package/loaders/MDDLoader.d.cts +0 -19
- package/loaders/MMDLoader.d.cts +0 -63
- package/loaders/MTLLoader.d.cts +0 -100
- package/loaders/NRRDLoader.d.cts +0 -22
- package/loaders/OBJLoader.d.cts +0 -17
- package/loaders/PCDLoader.d.cts +0 -15
- package/loaders/PDBLoader.d.cts +0 -22
- package/loaders/PLYLoader.d.cts +0 -16
- package/loaders/PRWMLoader.d.cts +0 -16
- package/loaders/PVRLoader.d.cts +0 -16
- package/loaders/RGBELoader.d.cts +0 -20
- package/loaders/RGBMLoader.d.cts +0 -32
- package/loaders/STLLoader.d.cts +0 -14
- package/loaders/SVGLoader.d.cts +0 -63
- package/loaders/TDSLoader.d.cts +0 -42
- package/loaders/TGALoader.d.cts +0 -14
- package/loaders/TTFLoader.d.cts +0 -15
- package/loaders/TiltLoader.d.cts +0 -14
- package/loaders/VOXLoader.d.cts +0 -29
- package/loaders/VRMLLoader.d.cts +0 -14
- package/loaders/VRMLoader.d.cts +0 -19
- package/loaders/VTKLoader.d.cts +0 -14
- package/loaders/XLoader.d.cts +0 -19
- package/loaders/XYZLoader.d.cts +0 -14
- package/math/Capsule.d.cts +0 -27
- package/math/ColorConverter.d.cts +0 -21
- package/math/ConvexHull.d.cts +0 -89
- package/math/ImprovedNoise.d.cts +0 -4
- package/math/Lut.d.cts +0 -27
- package/math/MeshSurfaceSampler.d.cts +0 -18
- package/math/OBB.d.cts +0 -24
- package/math/Octree.d.cts +0 -24
- package/math/SimplexNoise.d.cts +0 -21
- package/misc/ConvexObjectBreaker.d.cts +0 -25
- package/misc/GPUComputationRenderer.d.cts +0 -53
- package/misc/Gyroscope.d.cts +0 -5
- package/misc/MD2Character.d.cts +0 -33
- package/misc/MD2CharacterComplex.d.cts +0 -47
- package/misc/MorphAnimMesh.d.cts +0 -13
- package/misc/MorphBlendMesh.d.cts +0 -21
- package/misc/ProgressiveLightmap.d.cts +0 -60
- package/misc/RollerCoaster.d.cts +0 -21
- package/misc/Timer.d.cts +0 -27
- package/misc/TubePainter.d.cts +0 -10
- package/misc/Volume.d.cts +0 -37
- package/misc/VolumeSlice.d.cts +0 -28
- package/misc/WebGL.d.cts +0 -5
- package/modifiers/CurveModifier.d.cts +0 -91
- package/modifiers/EdgeSplitModifier.d.cts +0 -19
- package/modifiers/SimplifyModifier.d.cts +0 -19
- package/modifiers/TessellateModifier.d.cts +0 -11
- package/objects/BatchedMesh.d.cts +0 -48
- package/objects/GroundProjectedEnv.d.cts +0 -12
- package/objects/Lensflare.d.cts +0 -17
- package/objects/LightningStorm.d.cts +0 -32
- package/objects/MarchingCubes.d.cts +0 -76
- package/objects/Reflector.d.cts +0 -23
- package/objects/ReflectorForSSRPass.d.cts +0 -48
- package/objects/ReflectorRTT.d.cts +0 -6
- package/objects/Refractor.d.cts +0 -23
- package/objects/ShadowMesh.d.cts +0 -10
- package/objects/Sky.d.cts +0 -18
- package/objects/Water.d.cts +0 -22
- package/objects/Water2.d.cts +0 -23
- package/physics/AmmoPhysics.d.cts +0 -7
- package/postprocessing/AdaptiveToneMappingPass.d.cts +0 -29
- package/postprocessing/AfterimagePass.d.cts +0 -15
- package/postprocessing/BloomPass.d.cts +0 -29
- package/postprocessing/BokehPass.d.cts +0 -26
- package/postprocessing/ClearPass.d.cts +0 -10
- package/postprocessing/CubeTexturePass.d.cts +0 -14
- package/postprocessing/DotScreenPass.d.cts +0 -11
- package/postprocessing/EffectComposer.d.cts +0 -28
- package/postprocessing/FilmPass.d.cts +0 -11
- package/postprocessing/GlitchPass.d.cts +0 -16
- package/postprocessing/HalftonePass.d.cts +0 -26
- package/postprocessing/LUTPass.d.cts +0 -13
- package/postprocessing/MaskPass.d.cts +0 -14
- package/postprocessing/OutlinePass.d.cts +0 -53
- package/postprocessing/Pass.d.cts +0 -21
- package/postprocessing/RenderPass.d.cts +0 -14
- package/postprocessing/RenderPixelatedPass.d.cts +0 -34
- package/postprocessing/SAOPass.d.cts +0 -78
- package/postprocessing/SMAAPass.d.cts +0 -21
- package/postprocessing/SSAARenderPass.d.cts +0 -17
- package/postprocessing/SSAOPass.d.cts +0 -70
- package/postprocessing/SSRPass.d.cts +0 -123
- package/postprocessing/SavePass.d.cts +0 -12
- package/postprocessing/ShaderPass.d.cts +0 -13
- package/postprocessing/TAARenderPass.d.cts +0 -8
- package/postprocessing/TexturePass.d.cts +0 -12
- package/postprocessing/UnrealBloomPass.d.cts +0 -31
- package/postprocessing/WaterPass.d.cts +0 -35
- package/renderers/CSS2DRenderer.d.cts +0 -23
- package/renderers/CSS3DRenderer.d.cts +0 -26
- package/renderers/Projector.d.cts +0 -60
- package/renderers/SVGRenderer.d.cts +0 -25
- package/shaders/ACESFilmicToneMappingShader.d.cts +0 -16
- package/shaders/AfterimageShader.d.cts +0 -15
- package/shaders/BasicShader.d.cts +0 -8
- package/shaders/BleachBypassShader.d.cts +0 -14
- package/shaders/BlendShader.d.cts +0 -21
- package/shaders/BokehShader.d.cts +0 -24
- package/shaders/BokehShader2.d.cts +0 -50
- package/shaders/BrightnessContrastShader.d.cts +0 -21
- package/shaders/ColorCorrectionShader.d.cts +0 -22
- package/shaders/ColorifyShader.d.cts +0 -16
- package/shaders/ConvolutionShader.d.cts +0 -21
- package/shaders/CopyShader.d.cts +0 -12
- package/shaders/DOFMipMapShader.d.cts +0 -23
- package/shaders/DepthLimitedBlurShader.d.cts +0 -28
- package/shaders/DigitalGlitch.d.cts +0 -39
- package/shaders/DotScreenShader.d.cts +0 -27
- package/shaders/FXAAShader.d.cts +0 -19
- package/shaders/FilmShader.d.cts +0 -43
- package/shaders/FocusShader.d.cts +0 -26
- package/shaders/FreiChenShader.d.cts +0 -19
- package/shaders/FresnelShader.d.cts +0 -24
- package/shaders/GammaCorrectionShader.d.cts +0 -12
- package/shaders/GodRaysShader.d.cts +0 -97
- package/shaders/HalftoneShader.d.cts +0 -51
- package/shaders/HorizontalBlurShader.d.cts +0 -18
- package/shaders/HorizontalTiltShiftShader.d.cts +0 -23
- package/shaders/HueSaturationShader.d.cts +0 -21
- package/shaders/KaleidoShader.d.cts +0 -24
- package/shaders/LuminosityHighPassShader.d.cts +0 -27
- package/shaders/LuminosityShader.d.cts +0 -13
- package/shaders/MirrorShader.d.cts +0 -18
- package/shaders/NormalMapShader.d.cts +0 -23
- package/shaders/ParallaxShader.d.cts +0 -28
- package/shaders/PixelShader.d.cts +0 -18
- package/shaders/RGBShiftShader.d.cts +0 -24
- package/shaders/SAOShader.d.cts +0 -25
- package/shaders/SMAAShader.d.cts +0 -60
- package/shaders/SSAOShader.d.cts +0 -86
- package/shaders/SSRShader.d.cts +0 -94
- package/shaders/SepiaShader.d.cts +0 -17
- package/shaders/SobelOperatorShader.d.cts +0 -19
- package/shaders/SubsurfaceScatteringShader.d.cts +0 -5
- package/shaders/TechnicolorShader.d.cts +0 -15
- package/shaders/ToneMapShader.d.cts +0 -27
- package/shaders/ToonShader.d.cts +0 -108
- package/shaders/TriangleBlurShader.d.cts +0 -22
- package/shaders/UnpackDepthRGBAShader.d.cts +0 -16
- package/shaders/VerticalBlurShader.d.cts +0 -18
- package/shaders/VerticalTiltShiftShader.d.cts +0 -23
- package/shaders/VignetteShader.d.cts +0 -20
- package/shaders/VolumeShader.d.cts +0 -30
- package/shaders/WaterRefractionShader.d.cts +0 -21
- package/shaders/types.d.cts +0 -13
- package/textures/FlakesTexture.d.cts +0 -4
- package/types/helpers.d.cts +0 -1
- package/types/shared.d.cts +0 -9
- package/types/utils.d.cts +0 -3
- package/utils/BufferGeometryUtils.d.cts +0 -63
- package/utils/GeometryCompressionUtils.d.cts +0 -7
- package/utils/GeometryUtils.d.cts +0 -6
- package/utils/LDrawUtils.d.cts +0 -5
- package/utils/RoughnessMipmapper.d.cts +0 -8
- package/utils/SceneUtils.d.cts +0 -9
- package/utils/ShadowMapViewer.d.cts +0 -24
- package/utils/SkeletonUtils.d.cts +0 -14
- package/utils/UVsDebug.d.cts +0 -3
- package/webxr/ARButton.d.cts +0 -6
- package/webxr/OculusHandModel.d.cts +0 -23
- package/webxr/OculusHandPointerModel.d.cts +0 -65
- package/webxr/Text2D.d.cts +0 -3
- package/webxr/VRButton.d.cts +0 -11
- package/webxr/XRControllerModelFactory.d.cts +0 -23
- package/webxr/XREstimatedLight.d.cts +0 -33
- package/webxr/XRHandMeshModel.d.cts +0 -9
- package/webxr/XRHandModelFactory.d.cts +0 -25
- package/webxr/XRHandPrimitiveModel.d.cts +0 -24
@@ -8,72 +8,72 @@ const ACESFilmicToneMappingShader = {
|
|
8
8
|
vertexShader: (
|
9
9
|
/* glsl */
|
10
10
|
`
|
11
|
-
varying vec2 vUv
|
11
|
+
varying vec2 vUv;
|
12
12
|
|
13
|
-
void main() {
|
13
|
+
void main() {
|
14
14
|
|
15
|
-
vUv = uv
|
16
|
-
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 )
|
15
|
+
vUv = uv;
|
16
|
+
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
|
17
17
|
|
18
|
-
}
|
18
|
+
}
|
19
19
|
`
|
20
20
|
),
|
21
21
|
fragmentShader: (
|
22
22
|
/* glsl */
|
23
23
|
`
|
24
|
-
#define saturate(a) clamp( a, 0.0, 1.0 )
|
24
|
+
#define saturate(a) clamp( a, 0.0, 1.0 )
|
25
25
|
|
26
|
-
uniform sampler2D tDiffuse
|
26
|
+
uniform sampler2D tDiffuse;
|
27
27
|
|
28
|
-
uniform float exposure
|
28
|
+
uniform float exposure;
|
29
29
|
|
30
|
-
varying vec2 vUv
|
30
|
+
varying vec2 vUv;
|
31
31
|
|
32
|
-
vec3 RRTAndODTFit( vec3 v ) {
|
32
|
+
vec3 RRTAndODTFit( vec3 v ) {
|
33
33
|
|
34
|
-
vec3 a = v * ( v + 0.0245786 ) - 0.000090537
|
35
|
-
vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081
|
36
|
-
return a / b
|
34
|
+
vec3 a = v * ( v + 0.0245786 ) - 0.000090537;
|
35
|
+
vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;
|
36
|
+
return a / b;
|
37
37
|
|
38
|
-
}
|
38
|
+
}
|
39
39
|
|
40
|
-
vec3 ACESFilmicToneMapping( vec3 color ) {
|
40
|
+
vec3 ACESFilmicToneMapping( vec3 color ) {
|
41
41
|
|
42
42
|
// sRGB => XYZ => D65_2_D60 => AP1 => RRT_SAT
|
43
|
-
const mat3 ACESInputMat = mat3(
|
44
|
-
vec3( 0.59719, 0.07600, 0.02840 )
|
45
|
-
vec3( 0.35458, 0.90834, 0.13383 )
|
46
|
-
vec3( 0.04823, 0.01566, 0.83777 )
|
47
|
-
)
|
43
|
+
const mat3 ACESInputMat = mat3(
|
44
|
+
vec3( 0.59719, 0.07600, 0.02840 ), // transposed from source
|
45
|
+
vec3( 0.35458, 0.90834, 0.13383 ),
|
46
|
+
vec3( 0.04823, 0.01566, 0.83777 )
|
47
|
+
);
|
48
48
|
|
49
49
|
// ODT_SAT => XYZ => D60_2_D65 => sRGB
|
50
|
-
const mat3 ACESOutputMat = mat3(
|
51
|
-
vec3( 1.60475, -0.10208, -0.00327 )
|
52
|
-
vec3( -0.53108, 1.10813, -0.07276 )
|
53
|
-
vec3( -0.07367, -0.00605, 1.07602 )
|
54
|
-
)
|
50
|
+
const mat3 ACESOutputMat = mat3(
|
51
|
+
vec3( 1.60475, -0.10208, -0.00327 ), // transposed from source
|
52
|
+
vec3( -0.53108, 1.10813, -0.07276 ),
|
53
|
+
vec3( -0.07367, -0.00605, 1.07602 )
|
54
|
+
);
|
55
55
|
|
56
|
-
color = ACESInputMat * color
|
56
|
+
color = ACESInputMat * color;
|
57
57
|
|
58
58
|
// Apply RRT and ODT
|
59
|
-
color = RRTAndODTFit( color )
|
59
|
+
color = RRTAndODTFit( color );
|
60
60
|
|
61
|
-
color = ACESOutputMat * color
|
61
|
+
color = ACESOutputMat * color;
|
62
62
|
|
63
63
|
// Clamp to [0, 1]
|
64
|
-
return saturate( color )
|
64
|
+
return saturate( color );
|
65
65
|
|
66
|
-
}
|
66
|
+
}
|
67
67
|
|
68
|
-
void main() {
|
68
|
+
void main() {
|
69
69
|
|
70
|
-
vec4 tex = texture2D( tDiffuse, vUv )
|
70
|
+
vec4 tex = texture2D( tDiffuse, vUv );
|
71
71
|
|
72
|
-
tex.rgb *= exposure / 0.6
|
72
|
+
tex.rgb *= exposure / 0.6; // pre-exposed, outside of the tone mapping function
|
73
73
|
|
74
|
-
gl_FragColor = vec4( ACESFilmicToneMapping( tex.rgb ), tex.a )
|
74
|
+
gl_FragColor = vec4( ACESFilmicToneMapping( tex.rgb ), tex.a );
|
75
75
|
|
76
|
-
}
|
76
|
+
}
|
77
77
|
`
|
78
78
|
)
|
79
79
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ACESFilmicToneMappingShader.cjs","sources":["../../src/shaders/ACESFilmicToneMappingShader.ts"],"sourcesContent":["/**\n * ACES Filmic Tone Mapping Shader by Stephen Hill\n * source: https://github.com/selfshadow/ltc_code/blob/master/webgl/shaders/ltc/ltc_blit.fs\n *\n * this implementation of ACES is modified to accommodate a brighter viewing environment.\n * the scale factor of 1/0.6 is subjective. see discussion in #19621.\n */\n\nimport type { IUniform, Texture } from 'three'\nimport type { IShader } from './types'\n\nexport type ACESFilmicToneMappingShaderUniforms = {\n exposure: IUniform<number>\n tDiffuse: IUniform<Texture | null>\n}\n\nexport interface IACESFilmicToneMappingShader extends IShader<ACESFilmicToneMappingShaderUniforms> {}\n\nexport const ACESFilmicToneMappingShader: IACESFilmicToneMappingShader = {\n uniforms: {\n tDiffuse: { value: null },\n exposure: { value: 1.0 },\n },\n\n vertexShader: /* glsl */ `\n varying vec2 vUv
|
1
|
+
{"version":3,"file":"ACESFilmicToneMappingShader.cjs","sources":["../../src/shaders/ACESFilmicToneMappingShader.ts"],"sourcesContent":["/**\n * ACES Filmic Tone Mapping Shader by Stephen Hill\n * source: https://github.com/selfshadow/ltc_code/blob/master/webgl/shaders/ltc/ltc_blit.fs\n *\n * this implementation of ACES is modified to accommodate a brighter viewing environment.\n * the scale factor of 1/0.6 is subjective. see discussion in #19621.\n */\n\nimport type { IUniform, Texture } from 'three'\nimport type { IShader } from './types'\n\nexport type ACESFilmicToneMappingShaderUniforms = {\n exposure: IUniform<number>\n tDiffuse: IUniform<Texture | null>\n}\n\nexport interface IACESFilmicToneMappingShader extends IShader<ACESFilmicToneMappingShaderUniforms> {}\n\nexport const ACESFilmicToneMappingShader: IACESFilmicToneMappingShader = {\n uniforms: {\n tDiffuse: { value: null },\n exposure: { value: 1.0 },\n },\n\n vertexShader: /* glsl */ `\n varying vec2 vUv;\n\n void main() {\n\n \tvUv = uv;\n \tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n }\n `,\n fragmentShader: /* glsl */ `\n #define saturate(a) clamp( a, 0.0, 1.0 )\n\n uniform sampler2D tDiffuse;\n\n uniform float exposure;\n\n varying vec2 vUv;\n\n vec3 RRTAndODTFit( vec3 v ) {\n\n \tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n \tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n \treturn a / b;\n\n }\n\n vec3 ACESFilmicToneMapping( vec3 color ) {\n\n // sRGB => XYZ => D65_2_D60 => AP1 => RRT_SAT\n \tconst mat3 ACESInputMat = mat3(\n \t\tvec3( 0.59719, 0.07600, 0.02840 ), // transposed from source\n \t\tvec3( 0.35458, 0.90834, 0.13383 ),\n \t\tvec3( 0.04823, 0.01566, 0.83777 )\n \t);\n\n // ODT_SAT => XYZ => D60_2_D65 => sRGB\n \tconst mat3 ACESOutputMat = mat3(\n \t\tvec3( 1.60475, -0.10208, -0.00327 ), // transposed from source\n \t\tvec3( -0.53108, 1.10813, -0.07276 ),\n \t\tvec3( -0.07367, -0.00605, 1.07602 )\n \t);\n\n \tcolor = ACESInputMat * color;\n\n // Apply RRT and ODT\n \tcolor = RRTAndODTFit( color );\n\n \tcolor = ACESOutputMat * color;\n\n // Clamp to [0, 1]\n \treturn saturate( color );\n\n }\n\n void main() {\n\n \tvec4 tex = texture2D( tDiffuse, vUv );\n\n \ttex.rgb *= exposure / 0.6; // pre-exposed, outside of the tone mapping function\n\n \tgl_FragColor = vec4( ACESFilmicToneMapping( tex.rgb ), tex.a );\n\n }\n `,\n}\n"],"names":[],"mappings":";;AAkBO,MAAM,8BAA4D;AAAA,EACvE,UAAU;AAAA,IACR,UAAU,EAAE,OAAO,KAAK;AAAA,IACxB,UAAU,EAAE,OAAO,EAAI;AAAA,EACzB;AAAA,EAEA;AAAA;AAAA,IAAyB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUzB;AAAA;AAAA,IAA2B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuD7B;;"}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
* the scale factor of 1/0.6 is subjective. see discussion in #19621.
|
7
7
|
*/
|
8
8
|
import type { IUniform, Texture } from 'three';
|
9
|
-
import type { IShader } from './types
|
9
|
+
import type { IShader } from './types';
|
10
10
|
export type ACESFilmicToneMappingShaderUniforms = {
|
11
11
|
exposure: IUniform<number>;
|
12
12
|
tDiffuse: IUniform<Texture | null>;
|
@@ -6,72 +6,72 @@ const ACESFilmicToneMappingShader = {
|
|
6
6
|
vertexShader: (
|
7
7
|
/* glsl */
|
8
8
|
`
|
9
|
-
varying vec2 vUv
|
9
|
+
varying vec2 vUv;
|
10
10
|
|
11
|
-
void main() {
|
11
|
+
void main() {
|
12
12
|
|
13
|
-
vUv = uv
|
14
|
-
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 )
|
13
|
+
vUv = uv;
|
14
|
+
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
|
15
15
|
|
16
|
-
}
|
16
|
+
}
|
17
17
|
`
|
18
18
|
),
|
19
19
|
fragmentShader: (
|
20
20
|
/* glsl */
|
21
21
|
`
|
22
|
-
#define saturate(a) clamp( a, 0.0, 1.0 )
|
22
|
+
#define saturate(a) clamp( a, 0.0, 1.0 )
|
23
23
|
|
24
|
-
uniform sampler2D tDiffuse
|
24
|
+
uniform sampler2D tDiffuse;
|
25
25
|
|
26
|
-
uniform float exposure
|
26
|
+
uniform float exposure;
|
27
27
|
|
28
|
-
varying vec2 vUv
|
28
|
+
varying vec2 vUv;
|
29
29
|
|
30
|
-
vec3 RRTAndODTFit( vec3 v ) {
|
30
|
+
vec3 RRTAndODTFit( vec3 v ) {
|
31
31
|
|
32
|
-
vec3 a = v * ( v + 0.0245786 ) - 0.000090537
|
33
|
-
vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081
|
34
|
-
return a / b
|
32
|
+
vec3 a = v * ( v + 0.0245786 ) - 0.000090537;
|
33
|
+
vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;
|
34
|
+
return a / b;
|
35
35
|
|
36
|
-
}
|
36
|
+
}
|
37
37
|
|
38
|
-
vec3 ACESFilmicToneMapping( vec3 color ) {
|
38
|
+
vec3 ACESFilmicToneMapping( vec3 color ) {
|
39
39
|
|
40
40
|
// sRGB => XYZ => D65_2_D60 => AP1 => RRT_SAT
|
41
|
-
const mat3 ACESInputMat = mat3(
|
42
|
-
vec3( 0.59719, 0.07600, 0.02840 )
|
43
|
-
vec3( 0.35458, 0.90834, 0.13383 )
|
44
|
-
vec3( 0.04823, 0.01566, 0.83777 )
|
45
|
-
)
|
41
|
+
const mat3 ACESInputMat = mat3(
|
42
|
+
vec3( 0.59719, 0.07600, 0.02840 ), // transposed from source
|
43
|
+
vec3( 0.35458, 0.90834, 0.13383 ),
|
44
|
+
vec3( 0.04823, 0.01566, 0.83777 )
|
45
|
+
);
|
46
46
|
|
47
47
|
// ODT_SAT => XYZ => D60_2_D65 => sRGB
|
48
|
-
const mat3 ACESOutputMat = mat3(
|
49
|
-
vec3( 1.60475, -0.10208, -0.00327 )
|
50
|
-
vec3( -0.53108, 1.10813, -0.07276 )
|
51
|
-
vec3( -0.07367, -0.00605, 1.07602 )
|
52
|
-
)
|
48
|
+
const mat3 ACESOutputMat = mat3(
|
49
|
+
vec3( 1.60475, -0.10208, -0.00327 ), // transposed from source
|
50
|
+
vec3( -0.53108, 1.10813, -0.07276 ),
|
51
|
+
vec3( -0.07367, -0.00605, 1.07602 )
|
52
|
+
);
|
53
53
|
|
54
|
-
color = ACESInputMat * color
|
54
|
+
color = ACESInputMat * color;
|
55
55
|
|
56
56
|
// Apply RRT and ODT
|
57
|
-
color = RRTAndODTFit( color )
|
57
|
+
color = RRTAndODTFit( color );
|
58
58
|
|
59
|
-
color = ACESOutputMat * color
|
59
|
+
color = ACESOutputMat * color;
|
60
60
|
|
61
61
|
// Clamp to [0, 1]
|
62
|
-
return saturate( color )
|
62
|
+
return saturate( color );
|
63
63
|
|
64
|
-
}
|
64
|
+
}
|
65
65
|
|
66
|
-
void main() {
|
66
|
+
void main() {
|
67
67
|
|
68
|
-
vec4 tex = texture2D( tDiffuse, vUv )
|
68
|
+
vec4 tex = texture2D( tDiffuse, vUv );
|
69
69
|
|
70
|
-
tex.rgb *= exposure / 0.6
|
70
|
+
tex.rgb *= exposure / 0.6; // pre-exposed, outside of the tone mapping function
|
71
71
|
|
72
|
-
gl_FragColor = vec4( ACESFilmicToneMapping( tex.rgb ), tex.a )
|
72
|
+
gl_FragColor = vec4( ACESFilmicToneMapping( tex.rgb ), tex.a );
|
73
73
|
|
74
|
-
}
|
74
|
+
}
|
75
75
|
`
|
76
76
|
)
|
77
77
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ACESFilmicToneMappingShader.js","sources":["../../src/shaders/ACESFilmicToneMappingShader.ts"],"sourcesContent":["/**\n * ACES Filmic Tone Mapping Shader by Stephen Hill\n * source: https://github.com/selfshadow/ltc_code/blob/master/webgl/shaders/ltc/ltc_blit.fs\n *\n * this implementation of ACES is modified to accommodate a brighter viewing environment.\n * the scale factor of 1/0.6 is subjective. see discussion in #19621.\n */\n\nimport type { IUniform, Texture } from 'three'\nimport type { IShader } from './types'\n\nexport type ACESFilmicToneMappingShaderUniforms = {\n exposure: IUniform<number>\n tDiffuse: IUniform<Texture | null>\n}\n\nexport interface IACESFilmicToneMappingShader extends IShader<ACESFilmicToneMappingShaderUniforms> {}\n\nexport const ACESFilmicToneMappingShader: IACESFilmicToneMappingShader = {\n uniforms: {\n tDiffuse: { value: null },\n exposure: { value: 1.0 },\n },\n\n vertexShader: /* glsl */ `\n varying vec2 vUv
|
1
|
+
{"version":3,"file":"ACESFilmicToneMappingShader.js","sources":["../../src/shaders/ACESFilmicToneMappingShader.ts"],"sourcesContent":["/**\n * ACES Filmic Tone Mapping Shader by Stephen Hill\n * source: https://github.com/selfshadow/ltc_code/blob/master/webgl/shaders/ltc/ltc_blit.fs\n *\n * this implementation of ACES is modified to accommodate a brighter viewing environment.\n * the scale factor of 1/0.6 is subjective. see discussion in #19621.\n */\n\nimport type { IUniform, Texture } from 'three'\nimport type { IShader } from './types'\n\nexport type ACESFilmicToneMappingShaderUniforms = {\n exposure: IUniform<number>\n tDiffuse: IUniform<Texture | null>\n}\n\nexport interface IACESFilmicToneMappingShader extends IShader<ACESFilmicToneMappingShaderUniforms> {}\n\nexport const ACESFilmicToneMappingShader: IACESFilmicToneMappingShader = {\n uniforms: {\n tDiffuse: { value: null },\n exposure: { value: 1.0 },\n },\n\n vertexShader: /* glsl */ `\n varying vec2 vUv;\n\n void main() {\n\n \tvUv = uv;\n \tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n }\n `,\n fragmentShader: /* glsl */ `\n #define saturate(a) clamp( a, 0.0, 1.0 )\n\n uniform sampler2D tDiffuse;\n\n uniform float exposure;\n\n varying vec2 vUv;\n\n vec3 RRTAndODTFit( vec3 v ) {\n\n \tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n \tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n \treturn a / b;\n\n }\n\n vec3 ACESFilmicToneMapping( vec3 color ) {\n\n // sRGB => XYZ => D65_2_D60 => AP1 => RRT_SAT\n \tconst mat3 ACESInputMat = mat3(\n \t\tvec3( 0.59719, 0.07600, 0.02840 ), // transposed from source\n \t\tvec3( 0.35458, 0.90834, 0.13383 ),\n \t\tvec3( 0.04823, 0.01566, 0.83777 )\n \t);\n\n // ODT_SAT => XYZ => D60_2_D65 => sRGB\n \tconst mat3 ACESOutputMat = mat3(\n \t\tvec3( 1.60475, -0.10208, -0.00327 ), // transposed from source\n \t\tvec3( -0.53108, 1.10813, -0.07276 ),\n \t\tvec3( -0.07367, -0.00605, 1.07602 )\n \t);\n\n \tcolor = ACESInputMat * color;\n\n // Apply RRT and ODT\n \tcolor = RRTAndODTFit( color );\n\n \tcolor = ACESOutputMat * color;\n\n // Clamp to [0, 1]\n \treturn saturate( color );\n\n }\n\n void main() {\n\n \tvec4 tex = texture2D( tDiffuse, vUv );\n\n \ttex.rgb *= exposure / 0.6; // pre-exposed, outside of the tone mapping function\n\n \tgl_FragColor = vec4( ACESFilmicToneMapping( tex.rgb ), tex.a );\n\n }\n `,\n}\n"],"names":[],"mappings":"AAkBO,MAAM,8BAA4D;AAAA,EACvE,UAAU;AAAA,IACR,UAAU,EAAE,OAAO,KAAK;AAAA,IACxB,UAAU,EAAE,OAAO,EAAI;AAAA,EACzB;AAAA,EAEA;AAAA;AAAA,IAAyB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUzB;AAAA;AAAA,IAA2B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuD7B;"}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* https://codepen.io/brunoimbrizi/pen/MoRJaN?page=1&
|
5
5
|
*/
|
6
6
|
import type { IUniform, Texture } from 'three';
|
7
|
-
import type { IShader } from './types
|
7
|
+
import type { IShader } from './types';
|
8
8
|
export type AfterimageShaderUniforms = {
|
9
9
|
damp: IUniform<number>;
|
10
10
|
tNew: IUniform<Texture | null>;
|
package/shaders/BasicShader.d.ts
CHANGED
@@ -4,7 +4,7 @@
|
|
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';
|
8
8
|
export type BleachBypassShaderUniforms = {
|
9
9
|
opacity: IUniform<number>;
|
10
10
|
tDiffuse: IUniform<Texture | null>;
|
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';
|
8
8
|
export type BokehShaderDefines = {
|
9
9
|
DEPTH_PACKING: number;
|
10
10
|
PERSPECTIVE_CAMERA: number;
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import
|
1
|
+
import { 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';
|
9
9
|
export type ConvolutionShaderDefines = {
|
10
10
|
KERNEL_SIZE_FLOAT: string;
|
11
11
|
KERNEL_SIZE_INT: string;
|
package/shaders/CopyShader.d.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
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';
|
6
6
|
export type CopyShaderUniforms = {
|
7
7
|
opacity: IUniform<number>;
|
8
8
|
tDiffuse: IUniform<Texture | null>;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import
|
1
|
+
import { Vector2 } from 'three';
|
2
2
|
import type { IUniform, Texture } from 'three';
|
3
|
-
import type { IShader } from './types
|
3
|
+
import type { IShader } from './types';
|
4
4
|
export type DepthLimitedBlurShaderDefines = {
|
5
5
|
DEPTH_PACKING: number;
|
6
6
|
KERNEL_RADIUS: number;
|
package/shaders/FXAAShader.cjs
CHANGED
@@ -52,7 +52,7 @@ const FXAAShader = {
|
|
52
52
|
// contributors may be used to endorse or promote products derived
|
53
53
|
// from this software without specific prior written permission.
|
54
54
|
//
|
55
|
-
|
55
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AS IS AND ANY
|
56
56
|
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
57
57
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
58
58
|
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
@@ -126,7 +126,7 @@ const FXAAShader = {
|
|
126
126
|
/*--------------------------------------------------------------------------*/
|
127
127
|
#ifndef FXAA_EARLY_EXIT
|
128
128
|
//
|
129
|
-
|
129
|
+
// Controls algorithms early exit path.
|
130
130
|
// On PS3 turning this ON adds 2 cycles to the shader.
|
131
131
|
// On 360 turning this OFF adds 10ths of a millisecond to the shader.
|
132
132
|
// Turning this off on console will result in a more blurry image.
|
@@ -143,9 +143,9 @@ const FXAAShader = {
|
|
143
143
|
// Only valid for PC OpenGL currently.
|
144
144
|
// Probably will not work when FXAA_GREEN_AS_LUMA = 1.
|
145
145
|
//
|
146
|
-
|
146
|
+
// 1 = Use discard on pixels which dont need AA.
|
147
147
|
// For APIs which enable concurrent TEX+ROP from same surface.
|
148
|
-
|
148
|
+
// 0 = Return unchanged color on pixels which dont need AA.
|
149
149
|
//
|
150
150
|
#define FXAA_DISCARD 0
|
151
151
|
#endif
|