@@ -37,6 +37,8 @@ function WebGLRenderTarget( width, height, options ) {
this.stencilBuffer = options.stencilBuffer !== undefined ? options.stencilBuffer : true;
this.depthTexture = options.depthTexture !== undefined ? options.depthTexture : null;
+ this.texture.name = options.name !== undefined ? options.name : "";
+
}
Object.assign( WebGLRenderTarget.prototype, EventDispatcher.prototype, {
@@ -79,6 +79,9 @@ Texture.prototype = {
copy: function ( source ) {
+ this.name = source.name + " (Copy)";
this.image = source.image;
this.mipmaps = source.mipmaps.slice( 0 );