three.js - r151


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

  • Global
  • More usage of strict equality operators. #25574 (@ycw)
  • Add missing /*@__PURE__*/ statements. #25604 (@ycw)
  • Use structuredClone() when available. #25535 (@RodrigoHamuy)
  • Improve deprecation comments. #25643 (@LeviPesin)
  • Add minified version of ESM build. #25714, #25719 (@Beilinson, @marcofugaro)
  • AnimationAction
  • Ensure class is exported. #25676 (@linbingquan)
  • Box3
  • Refactor setFromArray() and setFromBufferAttribute(). #25573 (@ycw)
  • Color
  • Simplify hex notation parsing in setStyle(). #25572 (@ycw)
  • ColorManagement
  • Clean up. #25709 (@WestLangley)
  • Float16BufferAttribute
  • Unpack/pack float16's in getters/setters. #25519 (@simondevyoutube)
  • InstancedMesh
  • Add bounding volumes. #25591 (@Mugen87)
  • Optimize raycast(). #25606 (@Mugen87)
  • LineBasicMaterial
  • Add support for map. #25717 (@Mugen87)
  • Material
  • Improve warnings in setValues(). #25582 (@ycw)
  • Math
  • Add convenience methods. #25637 (@WestLangley)
  • Mesh
  • Simplify function name. #25651 (@WestLangley)
  • MeshDistanceMaterial
  • Remove light related properties. #25695 (@Mugen87, @WestLangley)
  • Object3D
  • Honor up in toJSON() and ObjectLoader. #25687 (@Mugen87)
  • PointsMaterial
  • Add support for uv attribute. #25707 (@Mugen87)
  • Quaternion
  • Add toJSON(). #25631 (@Mugen87)
  • Raycaster
  • Add interpolated normals. #25566, #25639 (@zalo, @Mugen87)
  • SkinnedMesh
  • Rename boneTransform() to applyBoneTransform(). #25586 (@WestLangley)
  • Add bounding volumes. #25612 (@Mugen87)
  • ShaderMaterial
  • Disable two-pass rendering by default. #25720 (@WestLangley)
  • Shaders
  • Make inline comments more explicit. #25575 (@WestLangley)
  • Refactor PBR shaders. #25693 (@elalish)
  • UniformsUtils
  • Skip cloning textures of render targets and report warning. #25560 (@simondevyoutube)
  • Vector2
  • Add angleTo(). #25678 (@puxiao, @Mugen87)
  • WebGLPrograms
  • Sheen and transmission checks clean up. #25723 (@mrdoob)
  • WebGLRenderer
  • Render transmissive objects in two passes. #25502 (@mrdoob)
  • Convert to ES6 class. #25599 (@marcofugaro)
  • Add onShaderError(). #25679 (@Mugen87)
  • Add support for multiple uv sets and transforms. #25721 (@mrdoob)
  • Improve WebGL 2 detection in iframes. #25733 (@antpb)
  • WebXRManager
  • Correctly update the user camera when it has a parent. #25231 (@rhuitl)

Documentation

  • Add MapControls page. #25621 (@Mugen87
  • Improve 3DMLoader page. #25616 (@dgrcode)
  • Improve Color page. #25577 (@Mugen87)
  • Improve Material page. #25614 (@towhare)
  • Improve SkeletonUtils page. #25649 (@Legionses)
  • Improve Chinese translation. #25628, #25672, #25677, #25706, #25713 (@towhare, @newstart0514)
  • Improve French translation. #25644 (@Mael-Kehl)
  • Update Installation guide with clearer guidance on build tools and CDNs. #25468 (@donmccurdy)

Manual

  • Updated monaco-editor to 0.36.0. #25583 (@linbingquan)
  • Clean up. #25716 (@DavidDufour)

Examples

  • Clean up. #25605, #25633, #25640 (@LeviPesin, @Mugen87)
  • Fix invalid Object3D ctor usage in css3d_molecules. #25587 (@Methuselah96)
  • Update Tween.js. #25607 (@Methuselah96)
  • Update FBXLoader examples to .outputEncoding = sRGBEncoding. #25441 (@donmccurdy)
  • Update webgl_morphtargets_*, use physically-based lights. #25537 (@donmccurdy)
  • Rename GroundProjectedEnv to GroundProjectedSkybox. #25645 (@Mugen87)
  • Added damping to webgl_loader_ldraw example. #25656 (@WestLangley)
  • Change skinned model asset in some examples. #25654 (@greggman)
  • Fix GUI in webgl_loader_md2 example. #25670 (@llzen44)
  • Add missing render() to webgl_geometry_spline_editor example. #25690 (@puqeko)
  • Update model in glTF AVIF demo. #25708, #25712 (@Mugen87)
  • Clean up webgl_materials_texture_rotation example. #25711 (@WestLangley)


  • 3DMLoader
  • Clean up. #25423 (@LeviPesi)

  • BufferGeometryUtils

  • Simplify function names. #25652, #25657 (@WestLangley)

  • CSS2DRenderer

  • Introduce CSS2DObject.center. #25673 (@WestLangley)

  • FBXLoader

  • Fix DeformPercent regex. #25689 (@FXTD-ODYSSEY)
  • Allow usage of custom texture loader via LoadingManager. #25730 (@soma-arc)

  • GLTFLoader

  • Do not disable frustum culling for InstancedMesh. #25623 (@Mugen87)
  • Texture URI as name. #25664, #25682 (@sunag)
  • Prevent load exception for assets that animation.target.node is undefined. #24770 (@hybridherbst)

  • HTMLMesh

  • Add image support. #25660 (@Mugen87)

  • MapControls

  • Move implementation in its own file. #25608 (@WestLangley)
  • Clean up. #25622 (@LeviPesin)

  • NodeEditor

  • Add support for exporting node chaining, materials and Object3Ds (individually). #25553 (@sunag)
  • New Version (Rev. 3). #25692 (@sunag)

  • NodeMaterial

  • Added InputNode.setPrecision(). #25561 (@sunag)
  • Rework NodeUtils.getNodesKeys(). #25581 (@LeviPesin)
  • Fix if timeNode is not a nodeObject() in OscNode. #25588 (@sunag)
  • Deserialize sub-properties and fixes in NodeLoader. #25590 (@sunag)
  • TSL: if, elseif, else syntax. #25653 (@sunag)
  • TSL: Different params order if method chaining is used. #25683 (@sunag)
  • TSL: Add ScriptableNode. #25685 (@sunag)
  • Fix specular color node in MeshStandardNodeMaterial. #25700 (@sunag)
  • Rename invert() -> oneMinus(). #25725 (@sunag)

  • OrbitControls

  • Use onPointerUp() for pointercancel events. #25540 (@Mugen87)

  • PLYLoader

  • Fix comments. #25578 (@girumasfaw)

  • PointerLockControls

  • Refactor class structure. #25665 (@Mugen87)

  • SkeletonUtils

  • Fix retargetClip() final keyframe. #25589 (@kate-grant)

  • TrackballControls

  • Add minZoom/maxZoom properties. #25597 (@agargaro)

  • USDZExporter

  • Add flipY support. #25559 (@elalish)

  • WebGPURenderer

  • Fix backward compatibility of scene.environment. #25698 (@sunag)
  • Added VideoTexture support. #25530 (@sunag)

Editor

  • Rename physicallyCorrectLights to useLegacyLights. #25556 (@linbingquan)
  • Use selected camera when playing the scene. #25641 (@Mugen87)
  • Fix broken material tab when Texture.image is null. #25703 (@Mugen87)

Tests

  • Convert some todos to done. #25567 (@epreston)
  • Update versions of used actions. #25585 (@marcofugaro)
  • Report tree-shaking size in PRs. #25615, #25625, #25627, #25630 (@marcofugaro, @donmccurdy)

Details

date
March 30, 2023, 11:48 a.m.
name
r151
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