From 248f8f7d2c1f466ceb0b1b7a296a50008069c912 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 22 Feb 2018 10:36:41 -0800 Subject: [PATCH] Updated Texconv (markdown) --- Texconv.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Texconv.md b/Texconv.md index 7346b01..aec2c36 100644 --- a/Texconv.md +++ b/Texconv.md @@ -163,6 +163,10 @@ This loads the PNG image 'heightmap.png', converts it to a normal-map using lumi This loads the HDR (Radiance RGBE) image `myimage.hdr`, performs a tone-mapping operation, and then writes the result to `myimage.bmp`. + texconv -pow2 -fl 9.3 -f BC3_UNORM -m 1 *.bmp + +This creates a ``DDS`` file for each ``BMP`` file in the current directory that is sized to a power-of-2 respecting aspect ratio with a maximum size of 4096 for a given dimension. The results are compressed as ``DXGI_FORMAT_BC3_UNORM`` (a.k.a. DXT5) and have no mipmaps. + # Remarks Support for [OpenEXR](http://www.openexr.com/) (``EXR``) can be added to the *texconv* utility. Uncomment ``#define USE_OPENEXR`` in the source, and add the DirectXTex auxiliary module to the project. See [[Adding OpenEXR]] for more details including building the OpenEXR library. \ No newline at end of file