what's new.md 7.8 KB

5.0.0

Major updates

Updates

General

  • Added static CenterToRef for vectors 2/3/4 (aWeirdo)
  • Added ability to view images (ktx2, png, jpg) to the sandbox. (bghgary)
  • Added optional smoothed normals for extruded procedural polygons. (snagy)
  • Added support for infinite perspective cameras (Deltakosh)
  • Added ability to enable/disable ArcRotateCamera zoom on multiTouch event (NicolasBuecher)
  • Moving button to shared uI folder.(msDestiny14)
  • Moving additional components to shared UI folder.(msDestiny14)
  • Added encapsulate and encapsulateBoundingInfo methods to BoundingInfo. (Tolo789)

Engine

  • Moved all instance data from Geometry to Mesh such that the same Geometry objects can be used by many meshes with instancing. Reduces memory consumption on CPU/GPU. (breakin

Loaders

  • Added support for EXT_meshopt_compression for glTF loader. (zeux)
  • Increased KHR_materials_transmission render target texture default size. (Drigax)
  • Changed glTF loader to remove empty animation groups if there are no animation channels loaded with the given options. (bghgary)
  • Update glTF validator to 2.0.0-dev.3.3. (bghgary)
  • Added support for KHR_xmp_json_ld for glTF loader. (Sebavan, bghgary)
  • Added a OptimizeNormals option to the OBJ loader to smooth lighting (Popov72)

Navigation

Materials

  • Added an OcclusionMaterial to simplify depth-only rendering of geometry (rgerd)
  • PrePass can now be used in RenderTargets speeding up effects like SSAO2 or MotionBlur (CraigFeldspar)
  • Added support for morph targets to ShaderMaterial (Popov72)

Inspector

NME

  • Increased float precision to 4(msDestiny14)
  • Added ability to make input node's properties visible in the properties of a custom frame (msDestiny14)

GUI

  • Added a FocusableButton gui control to simplify creating menus with keyboard navigation (Flux159)
  • Added focus() and blur() functions for controls that implement IFocusableControl (Flux159)
  • Added ToggleButton GUI control (kintz09)
  • Added shorthand methods which set all padding values at once, named setPadding and setPaddingInPixels, to the control class (kintz09)

WebXR

  • A browser error preventing the emulator to render scene is now correctly dealt with (RaananW)
  • Added a way to extend the XRSessionInit Object from inside of a feature (RaananW)
  • Added image tracking feature (RaananW)
  • Pointer Events of WebXR controllers have pointerType xr (RaananW)

Bugs

  • Fix issue with the Promise polyfill where a return value was expected from resolve() (Deltakosh)
  • Fix ArcRotateCamera panning with axis decomposition (CedricGuillemet)
  • Fix an issue with keyboard control (re)attachment. (#9411) (RaananW)
  • Fix issue where PBRSpecularGlossiness materials were excluded from export #9423(Drigax)
  • Fix issue when scaling is reapplied with BoundingBoxGizmo and GizmoManager (CedricGuillemet)
  • Fix direct loading of a glTF string that has base64-encoded URI. (bghgary)
  • Fix crash of some node materials using instances on iOS (Popov72)
  • Fix the code generated for the NME gradient block (Popov72)
  • Fix ssao2RenderingPipeline for orthographic cameras (Kesshi)
  • Fix mipmaps creation in the KTX2 decoder for non square textures (Popov72)
  • Fix detail map not working in WebGL1 (Popov72)
  • Fix ArcRotateCamera behaviour when panning is disabled on multiTouch event (NicolasBuecher)
  • Fix vertically interlaced stereoscopic rendering (RIG_MODE_STEREOSCOPIC_INTERLACED) not working (follow-up #7425, #8000) (foxxyz)
  • Fix accessibility of BaseCameraMouseWheelInput and BaseCameraPointersInput. They appear in documentation but were not available for include. (mrdunk)
  • Fix function creation inside regularly called freeCameraMouseWheelInput method leading to excessive GC load. (mrdunk)
  • Fix clip plane not reset to the rigth value when using mirrors (Popov72)
  • Fix lens flares not working in right handed system (Popov72)
  • Fix canvas not resized correctly in a multi-canvas scenario (Popov72)
  • Fix NaN values returned by GetAngleBetweenVectors when vectors are the same or directly opposite (Popov72)
  • Fix 404 occurring on some pictures in some cases when using particle systems (Popov72)
  • Fix PrePass bugs with transparency (CraigFeldspar)
  • Fix PrePass bugs with layers (CraigFeldspar)
  • Fix SSAO2 with PrePass sometimes causing colors brighter than they should be (CraigFeldspar)
  • Fix PostProcess sharing between cameras/renderTargets, that would create/destroy a texture on every frame (CraigFeldspar)

Breaking changes