three.js - r157


https://github.com/mrdoob/three.js/wiki/Migration-Guide#r156--r157
https://github.com/mrdoob/three.js/milestone/70?closed=1

  • Global
  • Clean up. #26763, #26774 (@linbingquan)
  • Fix source maps in minified build files. #26780 (@ycw)
  • Remove outdated code in rollup.config.js. #26803 (@ycw)
  • AnimationUtils
  • Remove arraySlice(). #26756 (@ycw)
  • Camera
  • Simplify getWorldDirection(). #26743 (@ycw)
  • Color
  • Clean up offsetHSL(). #26817 (@ycw)
  • CubeCamera
  • Add comment to clarify mipmap generation. #26772 (@Mugen87)
  • Add activeMipmapLevel. #26770 (@sunag)
  • CurvePath
  • Return this in closePath(). #26697 (@Mugen87)
  • Use correct line type in closePath(). #26850 (@GuoBinyong)
  • Fog
  • Make sure name can be serialized/deserialized. (@ycw)
  • LightProbe
  • Remove AmbientLightProbe and HemisphereLightProbe. #26715 (@WestLangley)
  • Material
  • Clean up toJSON(). #26791 (@ycw)
  • MaterialLoader
  • Avoid creating undefined linewidth property. #26707 (@epreston)
  • RenderTarget
  • Refactor default constructor parameters. #26775 (@linbingquan)
  • Shaders
  • Remove struct GeometricContext to improve Adreno GPU support. #26805 (@Mugen87)
  • WebGLProgram
  • Add USE_ANISOTROPY to prefixVertex. (@uma-neko)
  • WebGLRenderer
  • Support "Linear Display P3" working color space and "Display P3" unlit rendering. #26644 (@donmccurdy)
  • Introduce USE_LIGHT_PROBES define. #26768 (@Mugen87)
  • WebGLTextures
  • Increase default precision for depth buffers with WebGL 2. #26764 (@Mugen87)

Documentation

  • Improve Fog page. #26792 (@ycw)
  • Improve Material page. #26664 (@donmccurdy)
  • Improve MeshPhysicalMaterial page. #26753 (@Ameobea)
  • Improve Chinese translation. #26693, #26701, #26728, #26855 (@sdarpeng, @Junior2Ran, @SADYX)
  • Improve Libraries and Plugins guide. #26723, #26722, #26819, #26828 (@marwie, @trusktr, @isaac-mason)
  • Document default value of userData properties. #26799 (@tim-we)

Examples

  • Clean up. #26678, #26706, #26800, d6c8dd0b50a2994c05f94687ed0dfa44ae61ee4c, 1c85c953f49d154997e43d73b3ce3847d723d0a5 (@WestLangley, @epreston, @sunag, @mrdoob)
  • Remove import maps polyfill. #26836 (@marcofugaro)
  • Rename some WebGPU Compute examples. #26845 (@sunag)


  • 3DMLoader
  • Update to support Rhino 8 files. #26745 (@fraguada)

  • BufferGeometryUtils

  • Shift the hash bin to avoid missing neighbors in mergeVertices(). #26746 (@gkjohnson)

  • DragControls

  • Add recursive property. #26747 (@ssk4988)

  • GLTFExporter

  • Simplify inner cone angle equation. #26787 (@WestLangley)

  • GLTFLoader

  • Fix to handle reject on afterRoot(). #26852 (@MtBlue81)

  • LDrawLoader

  • Use WeakMap instead of userData for indexing materials. #26700 (@Mugen87)

  • LightProbeGenerator

  • Add support for half float render targets. #26773 (@Mugen87)

  • LineMaterial

  • User getter/setter syntax. #26720 (@LeviPesin)

  • NodeMaterial

  • Clean up HashNode, cite original authorship. #26695 (@LeviPesin)
  • Export viewport and minor fixes. #26698 (@aardgoose)
  • Add Line2 support. #26704 (@aardgoose)
  • Consume labels() when used, to prevent duplicate uniform names. #26822 (@aardgoose)
  • Fix context.material reference in RenderNodes. #26838 (@sunag)
  • Rename TextureNode.getTextureMatrix() to getTransformedUV(). #26839 (@sunag)
  • Rename construct() to setup(). #26840 (@sunag)
  • Add support for other formats in StorageTexture. #26842 (@sunag)
  • Fix addNodeClass() and addNodeMaterial() in case of renaming classes. #26846 #26858 (@LeviPesin)

  • RGBELoader

  • Correct error display message. #26742 (@epreston)

  • Sky

  • Use cameraPosition uniform instead of world origin in sky shader. #26766 (@StrandedKitty)

  • TSL

  • Fix negate(). #26804 (@sunag)
  • Add SetNode. #26785 (@sunag)
  • Introduce ShaderCallNode & tslFn improvements. #26824 (@sunag)
  • Fix include one function under another. #26844 (@sunag)

  • USDZLoader

  • Distinguish between text (supported) and binary (not supported) usd files and fix UV parsing. #26709 (@hybridherbst)
  • Load metallic, roughness, emissive, occlusion textures and fix color spaces. #26710 (@hybridherbst)
  • Switch to MeshPhysicalMaterial and add initial clearcoat/clearcoatRoughness/ior support. #26713 (@hybridherbst)
  • Fix index array type. #26751 (@GitHubDragonFly)
  • Added texture scale + offset + rotation support. #26861 (@GitHubDragonFly)

  • WebGPURenderer

  • Invert viewport/scissor y coords. #26730 (@aardgoose)
  • dFdy vs dpdy #26776 (@aardgoose)
  • Add StorageTexture. #26769 (@sunag)
  • Texture fixes for WebGL backend. #26797 (@aardgoose)
  • CCW FrontFace as default. #26807 (@sunag)
  • Basic render to texture support for WebGL backend. #26801 (@aardgoose)
  • Support textureCompare() operations in WebGL backend. #26823 (@aardgoose)
  • Fix flipY example. #26843 (@sunag)

Editor

  • Fix style error when resizing the sidebar. #26703 (@linbingquan)
  • Add clearcoatMap and clearcoatRoughnessMap. #26712 (@hybridherbst)
  • Fix camera transform when using select in Firefox. #26717 (@Mugen87)
  • Add serialization support for modelviewer environment. #26718 (@Mugen87)
  • Fix CapsuleGeometry parameter. #26794 (@Mugen87)

Details

date
Sept. 28, 2023, 3:13 p.m.
name
r157
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