convertToTexture = ( node, ...params ) => {

	if ( node.isTextureNode ) return node;
	if ( node.isPassNode ) return node.getTextureNode();

	return rtt( node, ...params );

}
TSL function for converting nodes to textures nodes.

@tsl
@function
@param {Node} node - The node to render a texture with.
@param {?number} [width=null] - The width of the internal render target. If not width is applied, the render target is automatically resized.
@param {?number} [height=null] - The height of the internal render target.
@param {Object} [options={type:HalfFloatType}] - The options for the internal render target.
@returns {RTTNode}