Skip to content

Version 2.0.0-beta2

Pre-release
Pre-release
Compare
Choose a tag to compare
@peteroupc peteroupc released this 18 Feb 10:22
· 288 commits to master since this release

The changes in beta 2 from beta 1 include:

  • Added H3DU.PbrMaterial class and supported physically-based shading in the default shader.
  • H3DU.Shape objects contain H3DU.PbrMaterial by default.
  • Extras folder contains a glTF loader, which is preliminary and incomplete.
  • H3DU.Scene3D will create a WebGL 2 rendering context if possible and supported by the browser.
  • H3DU.MeshBuffer stores vertex data by semantic (such as position, normal or texture coordinates), rather than by name.
  • The new H3DU.Semantic class contains constants for attribute and uniform semantics.
  • The new H3DU.TextureInfo class is a lightweight class for storing a texture's settings, but not its data.
  • H3DU.ShaderInfo class can now accept H3DU.TextureInfo objects as uniform values.
  • H3DU.Material can accept a parameter object in the constructor as it can in the setParams method, similarly to the
    new H3DU.PbrMaterial class.
  • Added fromBasic and fromBasicTexture methods to H3DU.Material class.
  • Many new methods were added to the H3DU.Math class, including methods to add and
    subtract 4-element vectors, to clamp vectors, and to convert to and from linear RGB colors,
    as well as vec3proj, vec4proj, mat3invert, and vec3fromWindowPoint methods.
    The frustumHasBox method was improved.
  • The shapeCount, getShape, setShape, and copy methods were added to H3DU.ShapeGroup.
  • New H3DU.CubeMap class holds information on the textures that make up a cube map.
    However, cube maps are not yet supported in the default shader (its code is
    currently commented out)
  • In the H3DU.GraphicsPath extra, added methods for high-level shapes and path
    interpolation and improved code on path triangulation.
  • H3DU.TextFont extra supports multichannel signed distance field fonts.
  • Several new demos were added.
  • Some methods were removed: setMaterialParams methods from both H3DU.Shape and H3DU.ShapeGroup; mapTexture and mapTexturesAll methods from TextureLoader; forShader method from H3DU.Material.
  • Renamed setOrientation and multOrientation in H3DU.Transform to setRotation and multRotation, and deprecated the old names.
  • Bug fixes.

Full Changelog: v1.5.0...v2.0.0-beta2