Using Mesh Paint Texture Object or Texture Collection Object in Custom HLSL Node

Basically I’m attempting to feed either a Mesh Paint Texture Object or a Texture Object from a Bindless Texture Collection to a POM custom node input so to use that as a blend mask between two different height maps. I sample the two height maps and the mask, and blend for each step.

The problem is that I encounter that the custom node seems not to recognize neither of them. For Mesh Paint, it detects a type called “TextureMeshPaint”, and for Texture Collections Objects, it’s directly unknown.

Here’s a very small example, with a regular Texture2DObject, a MeshPaintTextureObject, and a TextureObjectFromCollection.

Ofc my working material is much complex but even with the simplest custom node it throws this error…can this be work-arounded?
Thanks in advance.

Hi,
I’m testing the texture collection by directly feeding it into the custom HLSL node. The following examples work for me.

For Mesh Paint Texture Object, I haven’t used it before. Maybe you can create an ordinary material and look for relevant code generated by the compiler - this is how I worked with texture collection.

Btw UE5.7 changes the enabling method of bindless rendering. I manage to turn it on through WindowsEngine.ini