Skip to content

1.1.0

Compare
Choose a tag to compare
@pissang pissang released this 28 Feb 06:12
· 179 commits to master since this release

Breaking Changes

  • All the modules under math have been moved to root for more short reference. For example, clay.math.Vector3 now is clay.Vector3. For now clay.math.Vector can still work but not suggested.

  • Move clay.animation.Timeline to clay.Timeline. For now clay.animation.Timeline can still work but not suggested.

  • Move clay.compositor.createCompositor to clay.createCompositor. For now clay.compositor.createCompositor can still work but not suggested.

  • clay.util.mesh.splitJoints will use the material of input mesh. Not clone a new one for each new-created mesh.

  • Remove Renderable#lineWidth

New Features

Bug Fixes

  • Fix disposeTexture parameter not work in Scene#disposeNode

  • [OrbitControl] Fix dragging will not be stopped when the mouse is out of the viewport.

  • [OrbitControl] Disable the right mouse button.

Enhancements

  • Improve shader parser, support uniform initialization value and multiple declaration in one line. Now code like following can be parsed and extrated uniforms correctly
uniform vec3 color = vec3(0.0, 0.0, 0.0), opacity = 1.0;
  • Performance improvements for the large scenes. Can be up to 50% in the scene of 10k objects.

  • [OrbitControl] Optimize the dragging when mouse events are triggered more frequently than animation frame.

  • [PBR] 4x faster cubemap prefiltering