Quantcast
Channel: Questions in topic: "native plugin"
Viewing all articles
Browse latest Browse all 376

Which DXGI_FORMAT is supported by Unity's DDS Importer

$
0
0
Hi, I've created a texture atlas plugin to be used inside the Unity Editor. It collects the albedo, bump and metallic textures from the materials and bakes a new texture from each with proper mip-maps. All file loading, copying and saving is done inside the native plugin using DirectXTex library. The albedo is saved as DXGI_FORMAT_BC1_UNORM, the metallic as DXGI_FORMAT_BC3_UNORM. I've tried to export the bump map as DXGI_FORMAT_BC5_UNORM but Unity refuses to load it, so these are saved as TGAs for the moment. 1. The reimported atlas texture is darker than the original ones, because the color space in the inspector preview says "Linear" (source textures have "sRGB"). Switching to some BCX_UNORM_SRGB didn't work. Unity refused to import it. 2. Which DXGI_FORMAT can be used for storing the bump map as DXTmn ? (I assumed it would be DXGI_FORMAT_BC5_XXXX) Because I don't want to loose the proper mip maps. Thanks in advance, M.

Viewing all articles
Browse latest Browse all 376

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>