diff --git a/examples/assets/textures/textures.ninja b/examples/assets/textures/textures.ninja index 33e283a8d..835da6870 100644 --- a/examples/assets/textures/textures.ninja +++ b/examples/assets/textures/textures.ninja @@ -1,26 +1,26 @@ -textures = $pwd/../../runtime/textures - -build $textures/texture_compression_bc1.ktx: texturec_bc1 $pwd/texture-compression-test.png -build $textures/texture_compression_bc2.ktx: texturec_bc2 $pwd/texture-compression-test.png -build $textures/texture_compression_bc3.ktx: texturec_bc3 $pwd/texture-compression-test.png -build $textures/texture_compression_bc7.ktx: texturec_bc7 $pwd/texture-compression-test.png -build $textures/texture_compression_astc_4x4.dds: texturec_astc4x4 $pwd/texture-compression-test.png -build $textures/texture_compression_astc_5x5.dds: texturec_astc5x5 $pwd/texture-compression-test.png -build $textures/texture_compression_astc_6x6.dds: texturec_astc6x6 $pwd/texture-compression-test.png -build $textures/texture_compression_astc_8x5.dds: texturec_astc8x5 $pwd/texture-compression-test.png -build $textures/texture_compression_astc_8x6.dds: texturec_astc8x6 $pwd/texture-compression-test.png -build $textures/texture_compression_astc_10x5.dds: texturec_astc10x5 $pwd/texture-compression-test.png -build $textures/texture_compression_etc1.ktx: texturec_etc1 $pwd/texture-compression-test.png -build $textures/texture_compression_etc2.ktx: texturec_etc2 $pwd/texture-compression-test.png - -build $textures/parallax-d.ktx: texturec_diffuse $pwd/parallax-d.png -build $textures/parallax-n.ktx: texturec_normal $pwd/parallax-n.png -build $textures/parallax-h.ktx: texturec_height $pwd/parallax-h.png -build $textures/lightmap.ktx: texturec_height $pwd/../sky/lightmap.png -build $textures/uffizi.ktx: texturec_equirect $pwd/uffizi-large.exr - -build $textures/texture_compression_rgba8.dds: texturec_rgba8 $pwd/texture-compression-test.png -build $textures/pf_alpha_test.dds: texturec_rgba8 $pwd/texture-alpha-test.png -build $textures/pf_uv_filtering_test.dds: texturec_rgba8 $pwd/texture-uv-filtering-test.png - -build $textures/aerial_rocks_04_diff_2k.ktx: texturec_bc7 $pwd/aerial_rocks_04_diff_2k.jpg \ No newline at end of file +textures = $pwd/../../runtime/textures + +build $textures/texture_compression_bc1.ktx: texturec_bc1 $pwd/texture-compression-test.png +build $textures/texture_compression_bc2.ktx: texturec_bc2 $pwd/texture-compression-test.png +build $textures/texture_compression_bc3.ktx: texturec_bc3 $pwd/texture-compression-test.png +build $textures/texture_compression_bc7.ktx: texturec_bc7 $pwd/texture-compression-test.png +build $textures/texture_compression_astc_4x4.dds: texturec_astc4x4 $pwd/texture-compression-test.png +build $textures/texture_compression_astc_5x5.dds: texturec_astc5x5 $pwd/texture-compression-test.png +build $textures/texture_compression_astc_6x6.dds: texturec_astc6x6 $pwd/texture-compression-test.png +build $textures/texture_compression_astc_8x5.dds: texturec_astc8x5 $pwd/texture-compression-test.png +build $textures/texture_compression_astc_8x6.dds: texturec_astc8x6 $pwd/texture-compression-test.png +build $textures/texture_compression_astc_10x5.dds: texturec_astc10x5 $pwd/texture-compression-test.png +build $textures/texture_compression_etc1.ktx: texturec_etc1 $pwd/texture-compression-test.png +build $textures/texture_compression_etc2.ktx: texturec_etc2 $pwd/texture-compression-test.png + +build $textures/parallax-d.ktx: texturec_diffuse $pwd/parallax-d.png +build $textures/parallax-n.ktx: texturec_normal $pwd/parallax-n.png +build $textures/parallax-h.ktx: texturec_height $pwd/parallax-h.png +build $textures/lightmap.ktx: texturec_height $pwd/../sky/lightmap.png +build $textures/uffizi.ktx: texturec_equirect $pwd/uffizi-large.exr + +build $textures/texture_compression_rgba8.dds: texturec_rgba8 $pwd/texture-compression-test.png +build $textures/pf_alpha_test.dds: texturec_rgba8 $pwd/texture-alpha-test.png +build $textures/pf_uv_filtering_test.dds: texturec_rgba8 $pwd/texture-uv-filtering-test.png + +build $textures/aerial_rocks_04_diff_2k.ktx: texturec_bc7 $pwd/aerial_rocks_04_diff_2k.jpg diff --git a/scripts/build.ninja b/scripts/build.ninja index b9851219b..081457fa7 100644 --- a/scripts/build.ninja +++ b/scripts/build.ninja @@ -29,22 +29,22 @@ rule texturec_bc5 rule texturec_bc7 command = texturec -f $in -o $out -t bc7 -m - + rule texturec_astc4x4 command = texturec -f $in -o $out -t astc4x4 -m - + rule texturec_astc5x5 command = texturec -f $in -o $out -t astc5x5 -m - + rule texturec_astc6x6 command = texturec -f $in -o $out -t astc6x6 -m - + rule texturec_astc8x5 command = texturec -f $in -o $out -t astc8x5 -m - + rule texturec_astc8x6 command = texturec -f $in -o $out -t astc8x6 -m - + rule texturec_astc10x5 command = texturec -f $in -o $out -t astc10x5 -m