2.130.0 • Published 2 years ago

three-js-debug-rendertarget v2.130.0

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

three-js-debug-rendertarget

Some tools to debug WebGLRenderTarget and Texture, and especially download their content as images.

var renderer = <a THREE.WebGLRenderer>;
var rtt = <a THREE.WEBGLRenderTarget>;
var texture = <a THREE.Texture>;

// Launch a browser download of a png file containing current data in rtt.
// The renderer must be the one used to render in rtt.
THREE.DebugRenderTarget.downloadAsImage(renderer, rtt, "filename", alpha);

// Launch a browser download of a png file of the provided texture.
THREE.DebugRenderTarget.downloadTextureAsImage(renderer, texture, "filename", alpha);
2.130.0

2 years ago

1.2.0

3 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago