Skip to content

Fyrestar/THREE.RenderTargetInspector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

RTI-01

THREE.RenderTargetInspector

A helper for debugging WebGLRenderTarget. It will add a sidebar overlay that can be placed at left, right, top and bottom, showing live-thumbnails of the inspecting render targets or data textures, by clicking on those they will be opened in a popup you can zoom in and move around, inspect pixel values and positions.

RTI

Click on the small square above each thumbnail to save the render target as PNG.

Demo: webgl gpgpu water

const rti = new THREE.RenderTargetInspector( renderer, 256, 'left' );
rti.add( renderTarget, 'Some render target' );
rti.add( material.uniforms.dataTexture, 'Data texture from uniform' );
rti.add( material.uniforms.dataTexture.value, 'Data texture' );
rti.add( csm.lights, null, { // An array of lights
	type: 'depth'
});

Calling update in your render loop.

rti.update()

About

A helper for debugging WebGLRenderTarget.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published