<NME> build.ninja
<BEF> builddir  = ../.build

rule geometryc_pack_normal
    command = geometryc -f $in -o $out --packnormal 1
    description = Converting geometry $in...

rule geometryc_pack_normal_compressed
    command = geometryc -f $in -o $out --packnormal 1 -c
    description = Converting geometry $in...

rule geometryc_pack_normal_barycentric
    command = geometryc -f $in -o $out --packnormal 1 --barycentric
    description = Converting geometry $in...

rule texturec_bc1
    command = texturec -f $in -o $out -t bc1 -m

rule texturec_bc2
    command = texturec -f $in -o $out -t bc2 -m

rule texturec_bc3
    command = texturec -f $in -o $out -t bc3 -m

rule texturec_bc4
    command = texturec -f $in -o $out -t bc4 -m

rule texturec_bc5
    command = texturec -f $in -o $out -t bc5 -m

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_astc5x4
    command = texturec -f $in -o $out -t astc5x4 -m

rule texturec_astc5x5
    command = texturec -f $in -o $out -t astc5x5 -m
rule texturec_height
    command = texturec -f $in -o $out -t r8

pwd = ../examples/assets/meshes
subninja ../examples/assets/meshes/meshes.ninja


rule texturec_astc8x6
    command = texturec -f $in -o $out -t astc8x6 -m

rule texturec_astc10x5
    command = texturec -f $in -o $out -t astc10x5 -m

rule texturec_astc10x6
    command = texturec -f $in -o $out -t astc10x6 -m

rule texturec_astc8x8
    command = texturec -f $in -o $out -t astc8x8 -m

rule texturec_astc10x8
    command = texturec -f $in -o $out -t astc10x8 -m

rule texturec_astc10x10
    command = texturec -f $in -o $out -t astc10x10 -m

rule texturec_astc12x10
    command = texturec -f $in -o $out -t astc12x10 -m

rule texturec_astc12x12
    command = texturec -f $in -o $out -t astc12x12 -m

rule texturec_etc1
    command = texturec -f $in -o $out -t etc1 -m

rule texturec_etc2
    command = texturec -f $in -o $out -t etc2 -m

rule texturec_diffuse
    command = texturec -f $in -o $out -t bc2 -m

rule texturec_normal
    command = texturec -f $in -o $out -t bc5 -m -n

rule texturec_height
    command = texturec -f $in -o $out -t r8

rule texturec_equirect
    command = texturec -f $in -o $out --max 512 -t rgba16f --equirect

rule texturec_rgba8
    command = texturec -f $in -o $out -t rgba8

pwd = ../examples/assets/meshes
subninja ../examples/assets/meshes/meshes.ninja

pwd = ../examples/assets/textures
subninja ../examples/assets/textures/textures.ninja

<MSG> Added source uffizi light probe and conversion to runtime asset.

<DFF> @@ -41,6 +41,9 @@ rule texturec_normal
 rule texturec_height
     command = texturec -f $in -o $out -t r8
 
+rule texturec_equirect
+    command = texturec -f $in -o $out --max 512 -t rgba16f --equirect
+
 pwd = ../examples/assets/meshes
 subninja ../examples/assets/meshes/meshes.ninja
 

{'commit': 'diff --git a/examples/09-hdr/hdr.cpp b/examples/09-hdr/hdr.cpp\nindex c4e7c0c18..8e59b49d0 100644\n--- a/examples/09-hdr/hdr.cpp\n+++ b/examples/09-hdr/hdr.cpp\n@@ -168,7 +168,7 @@ public:\n \t\t// Create vertex stream declaration.\n \t\tPosColorTexCoord0Vertex::init();\n \n-\t\tm_uffizi = loadTexture("textures/uffizi.dds"\n+\t\tm_uffizi = loadTexture("textures/uffizi.ktx"\n \t\t\t\t, 0\n \t\t\t\t| BGFX_TEXTURE_U_CLAMP\n \t\t\t\t| BGFX_TEXTURE_V_CLAMP\ndiff --git a/examples/assets/textures/textures.ninja b/examples/assets/textures/textures.ninja\nindex 72b284919..ee31be41d 100644\n--- a/examples/assets/textures/textures.ninja\n+++ b/examples/assets/textures/textures.ninja\n@@ -7,7 +7,8 @@ build $textures/texture_compression_bc7.ktx:  texturec_bc7  $pwd/texture_compres\n build $textures/texture_compression_etc1.ktx: texturec_etc1 $pwd/texture_compression.png\n build $textures/texture_compression_etc2.ktx: texturec_etc2 $pwd/texture_compression.png\n \n-build $textures/parallax-d.ktx: texturec_diffuse $pwd/parallax-d.png\n-build $textures/parallax-n.ktx: texturec_normal  $pwd/parallax-n.png\n-build $textures/parallax-h.ktx: texturec_height  $pwd/parallax-h.png\n-build $textures/lightmap.ktx:   texturec_height  $pwd/../sky/lightmap.png\n+build $textures/parallax-d.ktx: texturec_diffuse  $pwd/parallax-d.png\n+build $textures/parallax-n.ktx: texturec_normal   $pwd/parallax-n.png\n+build $textures/parallax-h.ktx: texturec_height   $pwd/parallax-h.png\n+build $textures/lightmap.ktx:   texturec_height   $pwd/../sky/lightmap.png\n+build $textures/uffizi.ktx:     texturec_equirect $pwd/uffizi-large.exr\ndiff --git a/examples/assets/textures/uffizi-large.exr b/examples/assets/textures/uffizi-large.exr\nnew file mode 100644\nindex 000000000..f93148c4f\nBinary files /dev/null and b/examples/assets/textures/uffizi-large.exr differ\ndiff --git a/examples/runtime/textures/uffizi.dds b/examples/runtime/textures/uffizi.ktx\nsimilarity index 59%\nrename from examples/runtime/textures/uffizi.dds\nrename to examples/runtime/textures/uffizi.ktx\nindex e6c4fc328..dee260dec 100644\nBinary files a/examples/runtime/textures/uffizi.dds and b/examples/runtime/textures/uffizi.ktx differ\ndiff --git a/scripts/build.ninja b/scripts/build.ninja\nindex a27c523d9..1cfcac5c4 100644\n--- a/scripts/build.ninja\n+++ b/scripts/build.ninja\n@@ -41,6 +41,9 @@ rule texturec_normal\n rule texturec_height\n     command = texturec -f $in -o $out -t r8\n \n+rule texturec_equirect\n+    command = texturec -f $in -o $out --max 512 -t rgba16f --equirect\n+\n pwd = ../examples/assets/meshes\n subninja ../examples/assets/meshes/meshes.ninja\n \n', 'commit_subject': 'Added source uffizi light probe and conversion to runtime asset.', 'repo_name': 'bkaradzic/bgfx', 'committer': {'name': 'Branimir Karadžić', 'email': 'a51d32610a255449bd8868a3bbd33941625e0ee1@gmail.com', 'time_sec': '1530398783', 'tz_offset': '-420', 'date': {'seconds': '1530398783'}}, 'commit_tree': 'd6d2ffad5809f2c915595c53fcb2c8a6b5871292', 'commit_message': 'Added source uffizi light probe and conversion to runtime asset.\n', 'language_name': 'C#', 'license': 'bsd-2-clause', 'hunks': '@@ -41,6 +41,9 @@ rule texturec_normal\n rule texturec_height\n     command = texturec -f $in -o $out -t r8\n \n+rule texturec_equirect\n+    command = texturec -f $in -o $out --max 512 -t rgba16f --equirect\n+\n pwd = ../examples/assets/meshes\n subninja ../examples/assets/meshes/meshes.ninja\n \n', 'addition_count': 3, 'deletion_count': 0, 'src_file': 'a/scripts/build.ninja', 'tgt_file': 'b/scripts/build.ninja', 'file_extension': '.ninja', 'before_file': 'builddir  = ../.build\n\nrule geometryc_pack_normal\n    command = geometryc -f $in -o $out --packnormal 1\n    description = Converting geometry $in...\n\nrule geometryc_pack_normal_compressed\n    command = geometryc -f $in -o $out --packnormal 1 -c\n    description = Converting geometry $in...\n\nrule geometryc_pack_normal_barycentric\n    command = geometryc -f $in -o $out --packnormal 1 --barycentric\n    description = Converting geometry $in...\n\nrule texturec_bc1\n    command = texturec -f $in -o $out -t bc1 -m\n\nrule texturec_bc2\n    command = texturec -f $in -o $out -t bc2 -m\n\nrule texturec_bc3\n    command = texturec -f $in -o $out -t bc3 -m\n\nrule texturec_bc4\n    command = texturec -f $in -o $out -t bc4 -m\n\nrule texturec_bc5\n    command = texturec -f $in -o $out -t bc5 -m\n\nrule texturec_bc7\n    command = texturec -f $in -o $out -t bc7 -m\n\nrule texturec_astc4x4\n    command = texturec -f $in -o $out -t astc4x4 -m\n\nrule texturec_astc5x4\n    command = texturec -f $in -o $out -t astc5x4 -m\n\nrule texturec_astc5x5\n    command = texturec -f $in -o $out -t astc5x5 -m\nrule texturec_height\n    command = texturec -f $in -o $out -t r8\n\npwd = ../examples/assets/meshes\nsubninja ../examples/assets/meshes/meshes.ninja\n\n\nrule texturec_astc8x6\n    command = texturec -f $in -o $out -t astc8x6 -m\n\nrule texturec_astc10x5\n    command = texturec -f $in -o $out -t astc10x5 -m\n\nrule texturec_astc10x6\n    command = texturec -f $in -o $out -t astc10x6 -m\n\nrule texturec_astc8x8\n    command = texturec -f $in -o $out -t astc8x8 -m\n\nrule texturec_astc10x8\n    command = texturec -f $in -o $out -t astc10x8 -m\n\nrule texturec_astc10x10\n    command = texturec -f $in -o $out -t astc10x10 -m\n\nrule texturec_astc12x10\n    command = texturec -f $in -o $out -t astc12x10 -m\n\nrule texturec_astc12x12\n    command = texturec -f $in -o $out -t astc12x12 -m\n\nrule texturec_etc1\n    command = texturec -f $in -o $out -t etc1 -m\n\nrule texturec_etc2\n    command = texturec -f $in -o $out -t etc2 -m\n\nrule texturec_diffuse\n    command = texturec -f $in -o $out -t bc2 -m\n\nrule texturec_normal\n    command = texturec -f $in -o $out -t bc5 -m -n\n\nrule texturec_height\n    command = texturec -f $in -o $out -t r8\n\nrule texturec_equirect\n    command = texturec -f $in -o $out --max 512 -t rgba16f --equirect\n\nrule texturec_rgba8\n    command = texturec -f $in -o $out -t rgba8\n\npwd = ../examples/assets/meshes\nsubninja ../examples/assets/meshes/meshes.ninja\n\npwd = ../examples/assets/textures\nsubninja ../examples/assets/textures/textures.ninja\n', 'message': 'Added source uffizi light probe and conversion to runtime asset.\n', 'author_name': 'Branimir Karadžić', 'lang': 'ninja'}