Features
- Add
clay.InstancedMesh
. Usage:
var instancedMesh = new clay.InstancedMesh({
geometry: geometry, material: material
});
for (var i = 0; i < 100; i++) {
var instanceNode = new clay.Node();
instanceNode.position.set(i - 50, 0, 0);
instanceNode.update();
instancedMesh.instances.push({ node: instanceNode });
}
scene.add(instancedMesh);
Enhancements
-
Support base64 decode of buffer in glTF loader.
-
Add transform decompose when creating OrbitControl
-
Better compatibility on weapp platform
Bugfixes
-
Fix skybox with orthographic camera
-
Fix uv repeat and uv offset in preZ pass and shadow pass.
fbx2gltf
- Add vertex color support by @xAlien95