Trying to customize the PBR rendered, I came to the conclusion that use naming texture aliases is not a bad idea. However, at the moment this is implemented through names with texture modes. Which leads to ambiguity.
At the moment, the classic PBR consists of such a set of texture maps.
- albedo
- normal
- metallic
- roughness
- ao
However, panda offers not quite suitable names.
https://docs.panda3d.org/1.10/python/reference/panda3d.core.TextureStage#_CPPv44Mode
I have a question is there any way to replace this with a name TextureStage('albedo')
Accordingly, in the shader it would look like this: uniform sampler2D albedo
or uniform sampler2D p3d_albedo