I’m trying to write a small tool to weed out duplicated textures. It works well for “normal” textures using the method described here.
However, the method breaks down when working with virtual textures since mips array is empty. There is VTData
within the textures PlatfromData
, but I wasn’t able to force the engine to load the actual pixels in any form that I’d be able to access through code.
How do I access the individual pixels of a virtual texture?