Rust crate to implement at least parts of the PBRT book's C++ code. See also https://www.rs-pbrt.org/about ...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
3.8 KiB

  1. all: without-exr
  2. clean:
  3. -rm -f *~ examples/*~ src/*~ examples/*.rs.bk src/*.rs.bk *.exr *.png
  4. clobber: clean
  5. -rm -fr target
  6. distclean: clobber
  7. -rm -f *.exr *.png master.zip
  8. -rm -fr openexr-rs-master
  9. doc:
  10. cargo doc --no-default-features
  11. browse: doc
  12. firefox ./target/doc/pbrt/index.html
  13. debug: # master.zip
  14. cargo test --no-default-features
  15. cargo run --no-default-features -- --help
  16. release: # master.zip
  17. cargo test --release
  18. cargo run --release -- --help
  19. without-exr:
  20. cargo test --release --no-default-features
  21. cargo run --release --no-default-features -- --help
  22. # master.zip:
  23. # wget https://github.com/cessen/openexr-rs/archive/master.zip
  24. # unzip master.zip
  25. examples: without-exr
  26. ./target/release/examples/api_make_camera
  27. ./target/release/examples/cameras_perspective_generate_ray_differential
  28. ./target/release/examples/core_lowdiscrepancy_radical_inverse
  29. ./target/release/examples/core_next_float_down
  30. ./target/release/examples/core_next_float_up
  31. ./target/release/examples/core_quadratic
  32. ./target/release/examples/core_read_float_file
  33. ./target/release/examples/core_rng_set_sequence
  34. ./target/release/examples/filters_create_box_filter
  35. ./target/release/examples/filters_create_gaussian_filter
  36. ./target/release/examples/filters_create_mitchell_filter
  37. ./target/release/examples/filters_create_sinc_filter
  38. ./target/release/examples/filters_create_triangle_filter
  39. ./target/release/examples/geometry_bounds2_unit_cube
  40. ./target/release/examples/geometry_bounds3_unit_cube
  41. ./target/release/examples/geometry_length
  42. ./target/release/examples/geometry_length_squared
  43. ./target/release/examples/geometry_normal3_null
  44. ./target/release/examples/geometry_point2_origin
  45. ./target/release/examples/geometry_point3_origin
  46. ./target/release/examples/geometry_ray_creation
  47. ./target/release/examples/geometry_spherical_direction_vec3
  48. ./target/release/examples/geometry_vector2_null
  49. ./target/release/examples/geometry_vector3_null
  50. ./target/release/examples/integrators_sspm_hash
  51. ./target/release/examples/lights_diffuse_area_light_new
  52. ./target/release/examples/lights_distant_light_new
  53. ./target/release/examples/lights_infinite_area_light_new
  54. ./target/release/examples/lights_point_light_new
  55. ./target/release/examples/parse_ass_file -i ./assets/ass/cornell_box.ass
  56. ./target/release/examples/parse_blend_file ./assets/blend/suzanne_integrator_test_2_79.blend
  57. ./target/release/examples/pbrt_spheres_differentials_texfilt
  58. ./target/release/examples/pbrt_teapot_area_light
  59. ./target/release/examples/shapes_cylinder_create_cylinder_shape
  60. ./target/release/examples/shapes_disk_create_disk_shape
  61. ./target/release/examples/shapes_sphere_create_sphere_shape
  62. ./target/release/examples/shapes_sphere_intersect
  63. ./target/release/examples/shapes_sphere_world_bound
  64. ./target/release/examples/shapes_triangle_create_triangle_mesh
  65. ./target/release/examples/shapes_triangle_intersect
  66. ./target/release/examples/shapes_triangle_world_bound
  67. ./target/release/examples/transform_matrix4x4_identity
  68. ./target/release/examples/transform_matrix4x4_new
  69. ./target/release/examples/transform_matrix4x4_transpose
  70. ./target/release/examples/transform_quaternion_default
  71. ./target/release/examples/transform_transform_identity
  72. ./target/release/examples/transform_transform_look_at
  73. ./target/release/examples/transform_transform_new
  74. ./target/release/examples/transform_transform_point_with_error
  75. ./target/release/examples/transform_transform_ray_with_error
  76. ./target/release/examples/transform_transform_rotate
  77. ./target/release/examples/transform_transform_rotate_x
  78. ./target/release/examples/transform_transform_rotate_y
  79. ./target/release/examples/transform_transform_rotate_z
  80. ./target/release/examples/transform_transform_scale
  81. ./target/release/examples/transform_transform_translate
  82. ./target/release/examples/transform_transform_vector_with_error