The material is irrelevant, I’ve also done with with imported textures as shown above.
And alongside the c++ sampling I made a material pixel sampler here,