0.4.2 • Published 4 years ago

@gltf-transform/ao v0.4.2

Weekly downloads
21
License
MIT
Repository
github
Last release
4 years ago

@gltf-transform/ao

Latest NPM release License

Part of the glTF-Transform project.

Installation

Install:

npm install --save @gltf-transform/ao

Import:

// ES6
import { WebIO } from '@gltf-transform/core';
import { ao } from '@gltf-transform/ao';

// CommonJS
const { WebIO } = require('@gltf-transform/core');
const { ao } = require('@gltf-transform/ao');

// Apply.
const io = new WebIO();
const document = await io.read('/model.glb');
document.transform(ao({samples: 1000}));
const glb = io.packGLB(document); // → ArrayBuffer

Options

  • gl: Callback taking (width, height) as parameters, and returning a GL instance. Optional on web; Requires headless-gl in Node.js.
  • resolution: Resolution of depth buffer. Default: 512.
  • samples: Number of samples to draw. Default: 500.
0.4.1

4 years ago

0.4.0

4 years ago

0.4.2

4 years ago

0.4.0-alpha.3

4 years ago

0.4.0-alpha.2

4 years ago

0.4.0-alpha.1

4 years ago

0.4.0-alpha.0

4 years ago

0.3.3

4 years ago

0.3.0

4 years ago

0.3.2

4 years ago

0.2.5

4 years ago

0.2.3

4 years ago

0.1.0

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago