I was wondering what the most portable way of putting a PNG/JPG into a material was. I mainly use Omniverse where MDL is common, but there use UsdPreviewSurface. Is there a “really portable” approach for materials? I am just after simple materials.
I had some code doing depth map projections where you take an image and a depth map greyscale for the image, then project it on to a distorted mesh. I was going to share as a python command line script rather than an Omniverse extension, then realized I did not know how to do the material. I assume UsdPreviewSurface… but when I tried what I thought would work in Omniverse, it failed. Hence this request for an example of a “very portable” way of putting a simple texture onto a mesh.
Thanks!