texture_array_maker Tool - PrismaticFlower/shaderpatch GitHub Wiki

texture_array_maker

Interior mapping can use cube map arrays to have variations on the rooms. However modifying sp_texture_munge to handle stitching textures together into an array would've made the feature take too much time to implement.

This tool is an alternative. It is very simple and let's you turn multiple cube maps into an array in a single .DDS file that sp_texture_munge can handle.

Usage is extremely simple. First add the cubemaps by hitting Add Texture... or simply dragging the files from explorer into the tool. The input cubemaps must be unfolded, the same size and the same format.

Once you've added all the textures you want to be in the array, hit Build Array. This will prompt you to save the output, save it where you would like and be sure it is a .DDS file. And then use it like any other texture you would for a Shader Patch material.

There is an important gotcha to be aware of however. Somewhat counterintuitively the Type set in the .tex file for the texture array should be image not cubemap, if it is cubemap then sp_texture_munge will try to fold the texture into a cubemap but texture_array_maker has already done this and .DDS files can natively hold cubemaps.

texture_array_maker in v.1.16.0