Three.js r179

r179

https://github.com/mrdoob/three.js/wiki/Migration-Guide#178--179 https://github.com/mrdoob/three.js/milestone/92?closed=1

  • Global
    • Optimize CI workflow by eliminating redundant setup steps. #31383 (@souhailaS)
  • BatchedMesh
    • Fix setInstanceCount(). #31458 (@andreas-hilti)
  • PassNode
    • Add compileAsync(). #31501 (@Mugen87)
    • Provide viewport and scissor API. #31390, #31428 (@Mugen87)
  • ProjectorLight
    • Fix back-projection. #31473, #31474 (@Mugen87)
  • Line2NodeMaterial
    • Remove unused lineWidth property. #31401 (@Jenychen1996)
  • Line3
    • Add method for computing closest squared distance between line segments. #31384 (@TheBlek, @Mugen87)
  • Loader
    • Add abort(). #31276 (@Mugen87, @gkjohnson)
  • MaterialXNodes
    • Improved MaterialX import support to align with Blender's MaterialX exporter. #31439 (@bhouston, @sunag)
  • Matrix4
    • Rewrite makeOrthographic() for clarity. #31451 (@WestLangley)
  • NodeMaterial
    • Make sure fog is applied only once. #31463 (@Mugen87)
  • NodeMaterialObserver
    • Add checking the lights. #31440 (@sunag)
  • NodeUtils
    • Ignore private sub properties in getNodeChildren(). #31523 (@Mugen87, @sunag)
  • Renderer
    • Make info log evaluation more robust. #31438 (@Mugen87)
  • SkeletonHelper
    • Add setColors(). #31484 (@lukehorvat)
  • StorageTexture
    • Add .setSize(). #31502 (@sunag)
  • Timer
    • Move into core. #31385 (@Mugen87)
  • TSL
    • Double-check on the parents of the atomic functions to prevent errors. #31509 (@sunag)
    • Add load() function to texture(). #31510 (@sunag)
    • Introduce boolean for uniform(). #31507 (@sunag)
    • Sequential object as parameters for Fn( { .. } ). #31498 (@sunag)
    • Rename label() to setName(). #31490, #31546 (@Mugen87, @sunag)
    • Add debug() for the stack when running outside the code flow. #31486 (@sunag)
    • Introduce automatic use of toVar() to assign(). #31459 (@sunag)
    • Introduce computeKernel(). #31402 (@Spiri0, @sunag)
    • Fix pass() build during sample() call using Mesh. #31431 (@sunag)
    • viewportTexture() cache FramebufferTexture according to RenderTarget. #31343 (@sunag)
    • Introduce events. #31514 (@sunag)
    • Fix blocky gaussian blur. #31528 (@NoxDawnsong)
  • VideoTexture
    • Cancel rVFC on Dispose. #31375 (@ycw)
  • WebGLRenderer
    • Improve reversed depth buffer support. #31508, #31495, #31499, #31496, #31500, #31464, #31481, #31466, #31370, #31391, #31426, #31410, #31405, #31407, #31512 (@WestLangley, @CodyJasonBennett, @sunag)
    • Support MRT for 2d array textures. #31476 (@mrxz)
  • WebGPUBackend
    • Remove obsolete argument from getDrawingBufferSize(). #31460 (@Mugen87)
    • Fix manual clear() regression. #31388 (@Mugen87)
  • WebGPURenderer
    • Improve and fix texture bindings manager. #31497 (@sunag)
    • SampledTexture extends of Sampler for bindings. #31494 (@sunag)
    • Persistent video texture approach. #31416, #31425, #31423 (@sunag, @Mugen87)
    • Avoid hardcoding color spaces. #31519 (@Mugen87)
    • Explicitly set colorSpace for video textures. #31534 (@ycw)
  • WebGPUUtils
    • Ensure sample count is valid. #31352 (@ycw)
  • WebXRManager
    • Set glBinding separately from layer creation. #31443 (@mikeskydev)
    • Disable left eye layer for right eye camera and vice versa. #31437 (@mrxz)
    • Add Raw Camera Access module. #31487, #31543 (@mikeskydev, @Mugen87)

Docs

  • Clean up. #31447, #31450 (@s-rigaud)
  • Add KTX2Exporter page. #31441 (@mkeblx)
  • Add USDZExporter page #31417 (@mkeblx)
  • Improve AnimationClip page. #31415 (@Mugen87)
  • Improve KeyframeTrack page. #31373 (@floriandotorg)
  • Improve Texture page. #31477 (@agargaro)
  • Improve Korean translation. #31344 (@sonwonjae)
  • Improve JSDoc. #31475, #31380, #31341, #31529, #31535 (@powah, @Mugen87, @WestLangley, @cmhhelgeson)

Examples

  • Clean up. #31504, #31483, #31485, #31412, #31411, #31379, 827a421c0fad4f4cc5c4be12bef62568459aa435 (@Mugen87, @WestLangley, @linbingquan, @mrdoob)
  • Improved webgpu_reflection example. #31409, #31372 (@mrdoob, @Mugen87)
  • Add webgpu_postprocessing_dof_basic. #31445 (@Mugen87)
  • Upgrade meshopt_decoder.module.js to 0.22. #31449 (@zeux)
  • Switch to OrbitControls in webgl_shadowmap example. #31406 (@WestLangley)
  • Improve AA approach in WebGPU water demo. #31354 (@Mugen87)
  • Use onLoad() in webgpu_materials. #31362 (@andyleiserson)
  • Add webgpu_compute_texture_3d example. #31337 (@RenaudRohlinger)
  • Rename import from three to three/webgpu in WebGPU demos. #31518 (@sunag)
  • Add GUI to webgpu_loader_materialx example. #31530 (@WestLangley)
  • Improve WebGPU SSR example. #31539 (@mrdoob)
  • Improve MaterialX example. #31541, d71fc3874e846b63960355f25c44c1a5315c9314 (@mrdoob)
  • Improve WebGPU reflection example. 5e919439cc0362c6b32fa1f493aaba0315b22579 (@mrdoob)
  • Improve transpiler example. 0688cb08bf181e1d7e6367a04a4c89c8b3cdc5bf ba0568f4f51644ec2b6c81e177bd4a1ad4c1db52 (@mrdoob)

Addons

  • EXRLoader

    • Added lossyDctChannelDecode. #31482 (@mrdoob)
    • Introduces output-format API. #31511 (@sciecode)
    • Set color space to linear-sRGB. #31525 (@WestLangley)
  • FBXLoader

    • Fix vertex color check. #31420 (@Mugen87)
  • GTAOPass

    • Improve cache performance. #31454 (@querielo)
    • Exclude Line2 objects from AO calculation #31422 (@wyc001122)
  • HTMLMesh

    • Add support for email and password inputs. #31345 (@HuangLinBao)
  • LensflareMesh

    • Use colorNode instead of fragmentNode. #31433 (@Mugen87)
  • LightProbeGenerator

    • Support FloatType in fromCubeRenderTarget(). #31349 (@Mugen87)
  • OutlinePass

    • Exclude Line2 objects from outline computation. #31503 (@pwlviolet)
  • RapierPhysics

    • Support RoundedBoxGeometry. #31351 (@linbingquan)
  • RoomEnvironment

    • Set emissiveIntensity instead. #31348 (@WestLangley)
  • RoundedBoxGeometry

    • Add type, parameters and toJSON(). #31340 (@vis-prime)
  • SSAOPass

    • Improve cache performance. #31453 (@querielo)
  • TRAANode

    • New TRAA implementation. #31421 (@Mugen87, @sunag)
  • TTFLoader

    • Fix when TTF has different unicode assign to same glyph index. #31386 (@Rikahei)
  • TSL Transpiler

    • Fix operator precedence of GLSLDecoder. #31515 (@sunag)
  • USDZExporter

    • Add option for onlyVisible. #31489 (@mkeblx)
    • Export scene hierarchy. #31448 (@mkeblx)
    • Use object names #31442, #31444 (@mkeblx)
    • Refactor to use two stages. #31400 (@mkeblx)

Tests

  • Clean up Frustum tests. #31456 (@WestLangley)
  • Add test for USDZExporter. #31435 (@mkeblx)

Editor

  • Fix crash when geometry lacks position attribute. #31334 (@AlexRynas)
  • Add support for EXR files. 01d3c943f0452ff856b4bdd162f4c86bd67dc2ee (@mrdoob)
  • Load image loaders only when needed. 2f3dd3822cb270b422dae55153f69dfffd08ff85 (@mrdoob)
View original

Upgraded? How did it go?

Discussion