three.js - r152


https://github.com/mrdoob/three.js/wiki/Migration-Guide#r151--r152
https://github.com/mrdoob/three.js/milestone/65?closed=1

  • Global
  • Add three.module.min.js to npm package. #25778, #25828 (@Beilinson, @marcofugaro)
  • AudioLoader
  • Trigger error callback when decodeAudioData fails. #25784 (@luisfonsivevo)
  • BufferGeometry
  • Renamed uv2, uv3, uv4 to uv1, uv2, uv3. #25943 (@mrdoob)
  • Color
  • Clean up. #25833 (@LeviPesin)
  • Fix rounding errors in getHex() and getStyle(). #25832 (@LeviPesin)
  • ColorManagement
  • Enable by default. #25866 (@donmccurdy)
  • MaterialLoader
  • Honor clipping and lights properties. #25891 (@tfreifeld)
  • Object3D
  • Honor animations in copy(). #25928 (@Mugen87)
  • Shaders
  • Clean up transmission_pars_fragment. #25776 (@sunag)
  • SkinnedMesh
  • Use correct bounding volume for raycasting. #25791 (@Mugen87)
  • Texture
  • Replace encoding with colorSpace. #25771 (@donmccurdy)
  • WebGLMultipleRenderTargets
  • Copy viewport and scissor from source. #25803 (@querielo)
  • WebGLRenderer
  • Remove inline sRGB decode of video textures. #25752 (@donmccurdy)
  • Replace outputEncoding with outputColorSpace. #25756 (@donmccurdy)
  • Default output to sRGB. #25783 (@donmccurdy)
  • Sort on bounding sphere center, not origin. #25913 (@donmccurdy)
  • Add support for uv3 and uv4. #25788 (@mrdoob)
  • Only update skeletons in frustum. #25937 (@ashconnell)
  • WebGLRenderTarget
  • Replace encoding with colorSpace. #25771 (@donmccurdy)
  • Honor scissor properties in copy(). #25805 (@Mugen87)
  • WebGLShadowMap
  • Fix shadow map types changes. #25847, #25863 (@digitalArt3DTobias, @jostschmithals, @Mugen87)
  • WebGLState
  • Fix bindTexture() does not have fallback for 2D array and 3D textures. #25758 (@RenaudRohlinger)
  • WebXRManager
  • Added getEnvironmentBlendMode(). #25825 (@mrdoob)

Documentation

  • Clean up. #25795, #25799, #25808, #25814, #25817, #25827, #25931, 12e6b0b455c3ec0ecb1c4c049e5392827aab8c82 (@vinaykulk621, @Mugen87, @mrdoob)
  • Improve BufferGeometry page. #25824, #25834 (@abernier, @Mugen87)
  • Improve BufferGeometryUtils page. #25813 (@makc)
  • Improve Triangle page. #25749 (@donmccurdy)
  • Improve WebGLRenderer page. #25745 (@Mugen87)
  • Improve Creating a scene guide. #25806 (@Mugen87)
  • Improve Updating resources guide. #25804 (@Mugen87)
  • Improve WebGL compatibility guide. #25761, #25762 (@0xAxiome, @Mugen87)
  • Improve Chinese translation. #25775, #25777, #25794, #25896 (@newstart0514, @Gerocer)
  • Update Color Management related pages. #25792 (@Mugen87)
  • Remove Testing with npm guide. #25807 (@Mugen87)
  • Use color management in scene browsers. #25816 (@Mugen87)
  • Clean up color space references. #25922 (@donmccurdy)
  • Improve color space constant documentation. #25939 (@donmccurdy)

Manual

  • Fix history bug in Firefox. #25918 (@greggman)

Examples

  • Clean up. #25753, #25739, 50993b246434a8beb637e6b0b212bb5b624ffa98 (@timgates42, @hybridherbst, @mrdoob)
  • Refactor webgl_loader_bvh example. #25763, #25811 (@Mugen87, @mattrossman)
  • Added XRButton. #25781 (@mrdoob)
  • Update webgpu_loader_gltf to match webgl_loader_gltf. #25812 (@mrdoob)
  • Fix wireframe toggle in webgl_loader_md2 example. #25838 (@NFSS10)
  • Remove redundant event listener in webgl_camera_cinematic example. #25869 (@TheRedLancer)
  • Upgrade three-gpu-pathtracer in webgl_renderer_pathtracer example. #25879 (@gkjohnson)
  • Adjust lego pathtraced materials in webgl_renderer_pathtracer example. #25883 (@gkjohnson)
  • Add physics_rapier_instancing example. #25892, 39936f7ec109fb8f8dc1ee6da95d2293188606f8 (@mrdoob)
  • Remove physics_oimo_instancing example. #25895 (@mrdoob)
  • Use color management in more examples. #25818, #25844, #25851, #25849, #25858, #25868, #25873, #25882, #25889, #25907, #25912 (@donmccurdy, @Mugen87)
  • Improve WebGPU error message. 124e7cc8d9a0a73e07b536d18e6779d702a6bf29, db4d0899d2f2e5eb38fb9408f82e110de09b6ee3, f9035d864253f131b767cc9b0ebf340eb1738891 (@mrdoob)
  • Improve dragging, paint and sculpt WebXR examples. 39779300e9b450f6de2cba0f0d33269f29db694d (@mrdoob)
  • Improve webxr_xr_haptics example. e0a631f1a520a7569c49ff8cbf595b85d59e9e2f, 443cb7dfde1e411ab659c288acbb9ab2ba6444c1 (@mrdoob)
  • Add floor clipping to webxr_xr_dragging example. 724b00b858c6d7f107e92b696dad95963150fb2e (@mrdoob)
  • Implement simpler floor clipping technique in XR examples. 0f81064166bc869f6c65a97f55a9edf693415fd4 (@mrdoob)


  • BufferGeometryUtils
  • Fix attribute count access in computeMikkTSpaceTangents(). #25884 (@paugit)

  • EffectComposer

  • Always honor pixel ratio when creating the composer. #25942 (@Mugen87)

  • EXRLoader

  • Default to Linear-sRGB. #25854 (@donmccurdy)

  • Flow

  • Remove unnecessary constructor arguments. #25747 (@sunag)

  • GLTFExporter

  • Support multiple UV sets. #25843 (@donmccurdy)

  • HDRCubeTextureLoader

  • Default to Linear-sRGB. #25856 (@donmccurdy)

  • HTMLMesh

  • Render image at the correct position. #25916, #25930 (@vincentfretin)

  • KTX2Loader

  • Add WebGPU support. #25867 (@Mugen87)
  • Prefer traditional for loop. #25929 (@RenaudRohlinger)

  • NodeMaterial

  • Clean up. #25768, #25860 (@LeviPesin)
  • Fix equirectUV background. #25842 (@sunag)

  • NRRDLoader

  • Fix spacing issue when loading 16 bit images. #25767 (@LinkunGao)

  • OBJLoader

  • Clarify comment skips. #25906 (@hamirmahal)

  • PLYLoader

  • Ignore lines in the body. #25796 (@pobrn)

  • RGBELoader

  • Default to Linear-sRGB. #25853 (@donmccurdy)

  • SkeletonUtils

  • Simplify module. #25769 (@Mugen87)
  • Revert "Fix retargetClip() final keyframe". #25809 (@Mugen87)

  • WebGPURenderer

  • New cache system. #25750 (@sunag)
  • Set labels of some WebGPU objects. #25773, #25785, #25801 (@takahirox)
  • Add DepthTexture support. #25766, #25886, #25890 (@sunag, @Mugen87)
  • Upload texture in the same frame if possible and clean up. #25821 (@sunag)
  • Shadows node-based. #25822 (@sunag)
  • Add basic support for ETC2 compressed textures. #25864 (@Mugen87)
  • Add basic support for ASTC compressed textures. #25865, #25876 (@Mugen87)
  • Request all supported GPU features. #25875, #25885 (@Mugen87)
  • Introduce hasFeature(). #25878 (@Mugen87)
  • Make work without three/nodes. #25904 (@sunag)
  • Backdrop Node - Part 1/3. #25903 (@sunag)
  • Improve vertex format support and revisions. #25924, #25934 (@sunag)

Editor

  • Honor latest color management changes. #25793 (@Mugen87)

Tests

  • Add missing constants to unit test. #25810 (@Mugen87)
  • Update sizes message of CI. #25826 (@marcofugaro)
  • Update Chromium version of E2E tests. #25840 (@LeviPesin)
  • Increase E2E timeout from 15 to 20 minutes. #25880 (@LeviPesin)

Details

date
April 27, 2023, 9:35 a.m.
name
r152
type
Major
👇
Register or login to:
  • 🔍View and search all three.js releases.
  • 🛠️Create and share lists to track your tools.
  • 🚨Setup notifications for major, security, feature or patch updates.
  • 🚀Much more coming soon!
Continue with GitHub
Continue with Google
or