Skip to content

1.1.3

Compare
Choose a tag to compare
@pissang pissang released this 28 Mar 14:40
· 112 commits to master since this release

Enhancements

  • Reduced the minimum bundled size from 38k to 28k. Here is a minimum example code:
import { Renderer, Geometry, Shader, Material } from 'claygl';
const renderer = new Renderer({
    canvas: document.getElementById('main')
});
const geometry = new Geometry();
// Add triangle vertices to position attribute.
geometry.attributes.position.fromArray([
    [-0.5, -0.5, 0],
    [0.5, -0.5, 0],
    [0, 0.5, 0]
]);
const material = new Material({
    shader: new Shader(vsCode, fsCode)
});
renderer.renderPass([{ geometry, material }]);
  • Skybox support 2D panorama environment map. Skydome is DEPCRATED.

  • Add occlusionMap in clay.standard shader. Also support occlusionTexture in glTF Loader.

  • Use vertex texture to store skin matrices to support devices with limited uniforms number.

  • Compatible with browsers don't support EXT_shader_texture_lod extension.

Bug Fixes

  • Fix tree shaking in webpack 4.0 may cause builtin shader lost.

  • Fix velocity buffer may be wrong.