build.ninja 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. builddir = ../.build
  2. rule geometryc_pack_normal
  3. command = geometryc -f $in -o $out --packnormal 1
  4. description = Converting geometry $in...
  5. rule geometryc_pack_normal_barycentric
  6. command = geometryc -f $in -o $out --packnormal 1 --barycentric
  7. description = Converting geometry $in...
  8. rule texturec_bc1
  9. command = texturec -f $in -o $out -t bc1 -m
  10. rule texturec_bc2
  11. command = texturec -f $in -o $out -t bc2 -m
  12. rule texturec_bc3
  13. command = texturec -f $in -o $out -t bc3 -m
  14. rule texturec_bc4
  15. command = texturec -f $in -o $out -t bc4 -m
  16. rule texturec_bc5
  17. command = texturec -f $in -o $out -t bc5 -m
  18. rule texturec_etc1
  19. command = texturec -f $in -o $out -t etc1 -m
  20. rule texturec_etc2
  21. command = texturec -f $in -o $out -t etc2 -m
  22. rule texturec_diffuse
  23. command = texturec -f $in -o $out -t bc2 -m
  24. rule texturec_normal
  25. command = texturec -f $in -o $out -t bc5 -m -n
  26. rule texturec_height
  27. command = texturec -f $in -o $out -t r8
  28. pwd = ../examples/assets/meshes
  29. subninja ../examples/assets/meshes/meshes.ninja
  30. pwd = ../examples/assets/textures
  31. subninja ../examples/assets/textures/textures.ninja