Given a main texture how to split it in a grid of textures and out to a texture array (right that s easy) but clip the outer part out to black, something like the Sampler is doing when set to border. In the attached example we get a spread of textures but they are just “windows” of the main texture, not “cut off”.
texture test.v4p (7.2 KB)
While I don’t fully understand your question, you can use either the TextureTransform pin on Quad(Dx11) or Sampler dx11 advanced.
sampler advanced is your friend… but the patch you provided, not gonna work like that, to black out parts you gonna need to have each texture as a separated slice. or implement a function that will fill everything black but the part you need…
this will work tho tex array split.v4p (17.3 KB)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.