From 544db44480f5cbe82cd2d3d091fe3677a15b349b Mon Sep 17 00:00:00 2001
From: Mathias Paulin <mathias.paulin@irit.fr>
Date: Wed, 23 Feb 2022 08:24:17 +0100
Subject: [PATCH] [librender] Textures from sources are named by instance.

---
 .../NodeGraph/PremadeNodes/Sources/ColorTextureNode.hpp         | 2 +-
 .../NodeGraph/PremadeNodes/Sources/DepthTextureNode.hpp         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libRender/RadiumNBR/NodeGraph/PremadeNodes/Sources/ColorTextureNode.hpp b/src/libRender/RadiumNBR/NodeGraph/PremadeNodes/Sources/ColorTextureNode.hpp
index 4b46f08..78271b6 100644
--- a/src/libRender/RadiumNBR/NodeGraph/PremadeNodes/Sources/ColorTextureNode.hpp
+++ b/src/libRender/RadiumNBR/NodeGraph/PremadeNodes/Sources/ColorTextureNode.hpp
@@ -7,7 +7,7 @@ class NodeBasedRenderer_LIBRARY_API ColorTextureNode : public TextureNode
     explicit ColorTextureNode( const std::string& name ) :
         TextureNode( name,
                      getTypename(),
-                     Ra::Engine::Data::TextureParameters{ "Color Texture",
+                     Ra::Engine::Data::TextureParameters{ name + " (Color)",
                                                           gl::GL_TEXTURE_2D,
                                                           1,
                                                           1,
diff --git a/src/libRender/RadiumNBR/NodeGraph/PremadeNodes/Sources/DepthTextureNode.hpp b/src/libRender/RadiumNBR/NodeGraph/PremadeNodes/Sources/DepthTextureNode.hpp
index dc8f3ba..62a0593 100644
--- a/src/libRender/RadiumNBR/NodeGraph/PremadeNodes/Sources/DepthTextureNode.hpp
+++ b/src/libRender/RadiumNBR/NodeGraph/PremadeNodes/Sources/DepthTextureNode.hpp
@@ -7,7 +7,7 @@ class NodeBasedRenderer_LIBRARY_API DepthTextureNode : public TextureNode
     explicit DepthTextureNode( const std::string& name ) :
         TextureNode( name,
                      getTypename(),
-                     Ra::Engine::Data::TextureParameters{ "Depth Texture",
+                     Ra::Engine::Data::TextureParameters{ name + " (Depth)",
                                                           gl::GL_TEXTURE_2D,
                                                           1,
                                                           1,
-- 
GitLab