compare( compareNode ) {

		const textureNode = this.clone();
		textureNode.compareNode = nodeObject( compareNode );
		textureNode.referenceNode = this.getSelf();

		return nodeObject( textureNode );

	}
Samples the texture by executing a compare operation.

@param {Node<float>} compareNode - The node that defines the compare value.
@return {TextureNode} A texture node representing the texture sample.