Skip to content

Repository files navigation

three-js-debug-rendertarget

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

varrenderer=<aTHREE.WebGLRenderer>;
var rtt = <aTHREE.WEBGLRenderTarget>;
var texture = <aTHREE.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);

About

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

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages