three.js - r158


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

  • Global
  • Add test-circular-deps script. #26926 (@marcofugaro)
  • Add three/addons target for npm. #26910, #27003 (@CodyJasonBennett)
  • Fix typos. #27020 (@thapasusheel)
  • Box3
  • Better support for animated objects in expandByObject() in precise mode. #26919 (@Mugen87)
  • Material
  • Fix needsUpdate in context of alphaHash. #26900 (@donmccurdy)
  • Add missing blend parameters to toJSON(). #26947 (@Mugen87)
  • Add missing blending factors. #26949 (@Mugen87)
  • PMREMGenerator
  • Correctly restore render target. #27013 (@Mugen87)
  • Shaders
  • Ensure bump map scale is texture UV scale invariant. #26899 (@bhouston)
  • Ensure indirect sheen and clear coat are shadowed by specular ambient occlusion. #26940, #26941 (@bhouston)
  • Initialize geometryClearcoatNormal to suppress OpenGL warning. #27002 (@c-smile)
  • Add shader name. #27014 (@WestLangley)
  • SkinnedMesh
  • Use getVertexPosition() in bounding volume methods. #26913 (@Mugen87)
  • Introduce constants for bindMode. #26985 (@Mugen87)
  • Vector3
  • Optimize applyQuaternion(). #26456, #27025 (@infusion, @WestLangley)
  • WebGLProgram
  • Fragment shader also needs to define precision for sampler2DArray. #26853 (@kasparsj)
  • WebGLRenderer
  • Reset mask before clearing stencil. #26737 (@OndrejSpanel)
  • Disable transmission pass if override material is enabled. #26944 (@Oletus)
  • Defer blocking queries against WebGL programs after linking. #19745 (@toji)
  • Add compileAsync(). #19752, #26966 (@toji, @Mugen87)

Documentation

  • Remove outdated links from list.json. #26867 (@Mugen87)
  • Use MathML for math syntax. #26887, #26892, #26896 (@ycw)
  • Improve CapsuleGeometry page. #27005 (@Mugen87)
  • Improve Creating a scene page. #26895 (@ycw)
  • Improve Lensflare page. #27008 (@devXprite)
  • Improve Material page. #27000 (@fleroviux)
  • Improve Matrix4 page. #26893 (@ycw)
  • Improve Quaternion page. #26936 (@Mugen87)
  • Improve WebGLRenderer page. #26961, #26963, #26972 (@Mugen87)
  • Improve Chinese translation. #26945, #26952, #26953, #27001, #27032 (@cswwww, @puxiao)
  • Improve Korean translation. #26977, #26986 (@Sangminnn)
  • Add page for XREstimatedLight. #27041 (@snowzurfer

Examples

  • Clean up. #26869, #26870, #26871, #26955, #26969, #26981, #27015, #27039, #27050, #27059 (@Methuselah96, @linbingquan, @Mugen87, @WestLangley, @mkkellogg)
  • Track pointer in misc_exporter_exr example. #26890 (@WestLangley)
  • Use OutputPass in webgl_postprocessing_fxaa example. #26927 (@Mugen87)
  • Make webgl_postprocessing_smaa example more configurable. #26934 (@Mugen87)
  • Match all words, in any order in search. #26971 (@sunag)
  • Add shared skeleton setup to webgl_animation_multiple. #26995 (@Mugen87)
  • Don't expose LWO parsers. #26996 (@CodyJasonBennett)
  • Added webgpu_compute_particles_rain example. #27053 (@sunag)
  • Added addScene() to AmmoPhysics and RapierPhysics. 2bd56174d69b05ec37e729413446cd368ac8859a, 92c71d7c12dbd652f8cfe3f60ad24b6806efb243 (@mrdoob)


  • BatchedMesh
  • Introduce new addon for batching geometries. #25059, #27043, #27045, #27049, #27046, #27054, #27060, #27066 (@takahirox, @donmccurdy, @gkjohnson)

  • BokehPass

  • Correctly set aspect uniform in setSize(). #27063 (@Mugen87)

  • Capsule

  • Move and rename lineToLineClosestPoints() function to Octree. #27044 (@gkjohnson)

  • CSS3DRenderer

  • Modify perspective transform to avoid issues in Chrome and Firefox. #27017 (@donmccurdy)

  • FilmShader

  • Fix deterioration. #26908 (@kaisavi)

  • FlyControls

  • React on pointercancel event. #26973 (@Mugen87)

  • FullScreenQuad

  • Refactor internal geometry. #26938 (@CodyJasonBennett)

  • GLTFExporter

  • Handle count=Infinity in processAccessor(). #26898 (@Dadibom)
  • Support EXT_mesh_gpu_instancing to export InstancedMesh. #26854 (@repalash)
  • Add support for four UV channels. #26909 (@bhouston)

  • GLTFLoader

  • Log error when loader extension doesn't have a name. #26559 (@marwie)

  • IFFParser

  • Convert to ES6 classes. #26929 (@CodyJasonBennett)

  • InstancedPoints

  • Introduce new class for rendering point clouds. #26930, #26965, #27019, #27047 (@WestLangley, @sunag)

  • Lensflare

  • Better RTT support. #26886 (@Mugen87)

  • LottieLoader

  • Add document check for SSR. #26989 (@CodyJasonBennett)

  • LUTImageLoader

  • Add new loader for loading 2D LUT images. #26880 (@NikLever)

  • NodeMaterial

  • Subflows of TextureNode and UVNode in BumpMapNode. #26865 (@sunag)
  • Define stack.assign() as default. #26881 (@sunag)
  • Refactor VarNode. #26821 (@LeviPesin)
  • Modular usage of PhysicalLightingModel. #26885 (@sunag)
  • Allow JS-like assigns, implement AssignNode. #26795 (@LeviPesin)
  • Fixes and clean up. #26931 (@sunag)
  • Attenuate color in Line2NodeMaterial. #26970 (@WestLangley)
  • Merge *MaterialNode into singular MaterialNode, fix exports, some cleanup. #26976 (@LeviPesin)
  • Update PropertyNode exports. #26975 (@LeviPesin)
  • Force replacement of UVNode if the context includes forceUVContext=true. #27031 (@sunag)

  • OrbitControls

  • Add 3D cursor and limit to orbit camera target. #26558 (@schwyzl)

  • OutputShader

  • Use #include instead of ShaderChunk. #26990 (@CodyJasonBennett)

  • SAOPass

  • Remove depthMaterial reference from dispose(). #26946 (@paradoxxxzero)

  • SDFGeometryGenerator

  • Add geometry generator from SDF definitions. #26837 (@santi-grau)

  • SimplifyModifier

  • Add uv/normal/tangent/color support. #26875 (@Makio64)

  • SMAAPass

  • Swap buffers after rendering. #26928 (@Mugen87)

  • SVGRenderer

  • Add .outputColorSpace=DisplayP3ColorSpace support. #26914 (@donmccurdy)

  • TAARenderPass

  • Fix runtime error in dispose(). #26991 (@Archimagus)

  • TessellateModifier

  • Fix color access. #26873 (@freealise)

  • TransformControls

  • Use in-plane rotation when eye and selected gizmo axis are parallel. #26860 (@alankalb)

  • TSL

  • Function Layout. #26889 (@sunag)
  • Transpiler: GLSL to TSL. #26982 (@sunag)

  • VRButton

  • Test navigator for SSR. #26915 (@CodyJasonBennett)

  • WebGPURenderer

  • Support occlusion query for WebGL backend. #26744 (@aardgoose)
  • Handle instanced geometries in WebGL backend #26731 (@aardgoose)
  • Add isWeb*Backend flags. #26877 (@WestLangley)
  • Fix rendering of line segments. #26884 (@WestLangley)
  • Fix uniform update when using compute(). #26906 (@sunag)
  • Environment Nodes Hash. #26942 (@sunag)
  • Ensure bump map scale is texture UV scale invariant. #26958 (@sunag)
  • Clearcoat and sheen is shadowed by ambient occlusion. #26957 (@sunag)
  • Support integer vertex attributes in WebGLBackend. #26974 (@aardgoose)
  • Add getInstanceIndex() for GLSLNodeBuilder. #26978 (@aardgoose)
  • Add flat qualifiers for integer attributes in GLSLNodeBuilder. #26987 (@aardgoose)
  • Support Nodes buffer() in GLSLNodeBuilder and WebGLSLBackend #26988 (@aardgoose)
  • Correct initial blending state for WebGLBackend. #27009 (@aardgoose)
  • Implement WebGLBackend copyFramebufferToTexture(). #27012 (@aardgoose)
  • Fix color mask setting in WebGLBackend. #27026 (@aardgoose)
  • Enable shadow rendering in WebGLBackend. #27023 (@aardgoose)
  • Remove HTMLImage to OffscreenCanvas conversion. #27021 (@aardgoose)
  • Use recommended shader compile and link sequence for WebGL. #27055 (@aardgoose)
  • Use common clearing code and fix depth state for WebGLBackend. #27065 (@aardgoose)

  • XRButton

  • Allow specifying optional and required features. #27030 (@snowzurfer)

Editor

  • Fix sidebar refresh. #26951 (@Mugen87)
  • Fix default of timeScale. #26984 (@Mugen87)
  • Remove Fix Color Maps script. #27033 (@Mugen87)
  • Assign SRGBColorSpace only to color maps. #27042 (@Mugen87)
  • Add KTX2 support. #27016 (@CITIZENDOT)

Details

date
Oct. 27, 2023, 9:29 a.m.
name
r158
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