1.1.3
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
inclay.standard
shader. Also supportocclusionTexture
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.