Skip to content

Commit

Permalink
Fixed rebase for latest master
Browse files Browse the repository at this point in the history
  • Loading branch information
Microno95 committed Mar 22, 2024
1 parent 849af96 commit 4e191ce
Show file tree
Hide file tree
Showing 18 changed files with 185 additions and 144 deletions.
1 change: 1 addition & 0 deletions include/mitsuba/render/mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ class MI_EXPORT_LIB Mesh : public Shape<Float, Spectrum> {
Float pdf_position_surface(const PositionSample3f &ps, Mask active = true) const override;

DirectionSample3f sample_direction_volume(const Interaction3f &it, const Point3f &sample,
Mask active = true) const override;

std::pair<std::pair<Float, Float>, Float> get_intersection_extents(const Interaction3f &it,
const DirectionSample3f &ds,
Expand Down
2 changes: 1 addition & 1 deletion include/mitsuba/render/shape.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ class MI_EXPORT_LIB Shape : public Object {
* A \ref PositionSample instance describing the generated sample
*/
virtual PositionSample3f sample_position_volume(Float time, const Point3f &sample,
Mask active = true) const;
Mask active = true) const;

/**
* \brief Query the probability density of \ref sample_position_volume() for
Expand Down
2 changes: 1 addition & 1 deletion resources/data
Submodule data updated 36 files
+ tests/integrators/test_area_light_illum_rect_medium_albedo_image_fwd_ref.exr
+ tests/integrators/test_area_light_illum_rect_medium_albedo_image_primal_ref.exr
+ tests/integrators/test_area_light_illum_rect_medium_sigma_t_image_fwd_ref.exr
+ tests/integrators/test_area_light_illum_rect_medium_sigma_t_image_primal_ref.exr
+ tests/integrators/test_medium_constant_emitter_albedo_image_fwd_ref.exr
+ tests/integrators/test_medium_constant_emitter_albedo_image_primal_ref.exr
+ tests/integrators/test_medium_constant_emitter_phase_image_fwd_ref.exr
+ tests/integrators/test_medium_constant_emitter_phase_image_primal_ref.exr
+ tests/integrators/test_medium_constant_emitter_sigma_t_image_fwd_ref.exr
+ tests/integrators/test_medium_constant_emitter_sigma_t_image_primal_ref.exr
+ tests/integrators/test_rotate_shading_normals_plane_image_fwd_ref.exr
+ tests/integrators/test_rotate_shading_normals_plane_image_primal_ref.exr
+ tests/integrators/test_volume_light_bunny_radiance_gray_rect_image_fwd_ref.exr
+ tests/integrators/test_volume_light_bunny_radiance_gray_rect_image_primal_ref.exr
+ tests/integrators/test_volume_light_bunny_radiance_gray_rect_offscreen_image_fwd_ref.exr
+ tests/integrators/test_volume_light_bunny_radiance_gray_rect_offscreen_image_primal_ref.exr
+ tests/integrators/test_volume_light_cube_radiance_gray_rect_offscreen_image_fwd_ref.exr
+ tests/integrators/test_volume_light_cube_radiance_gray_rect_offscreen_image_primal_ref.exr
+ tests/integrators/test_volume_light_heterogeneous_radiance_image_fwd_ref.exr
+ tests/integrators/test_volume_light_heterogeneous_radiance_image_primal_ref.exr
+ tests/integrators/test_volume_light_illum_rect_medium_albedo_image_fwd_ref.exr
+ tests/integrators/test_volume_light_illum_rect_medium_albedo_image_primal_ref.exr
+ tests/integrators/test_volume_light_illum_rect_medium_sigma_t_image_fwd_ref.exr
+ tests/integrators/test_volume_light_illum_rect_medium_sigma_t_image_primal_ref.exr
+ tests/integrators/test_volume_light_radiance_gray_rect_image_fwd_ref.exr
+ tests/integrators/test_volume_light_radiance_gray_rect_image_primal_ref.exr
+ tests/integrators/test_volume_light_radiance_gray_rect_offscreen_image_fwd_ref.exr
+ tests/integrators/test_volume_light_radiance_gray_rect_offscreen_image_primal_ref.exr
+ tests/integrators/test_volume_light_radiance_image_fwd_ref.exr
+ tests/integrators/test_volume_light_radiance_image_primal_ref.exr
+ tests/integrators/test_volume_light_with_scattering_albedo_image_fwd_ref.exr
+ tests/integrators/test_volume_light_with_scattering_albedo_image_primal_ref.exr
+ tests/integrators/test_volume_light_with_scattering_radiance_image_fwd_ref.exr
+ tests/integrators/test_volume_light_with_scattering_radiance_image_primal_ref.exr
+ tests/integrators/test_volume_light_with_scattering_sigma_t_image_fwd_ref.exr
+ tests/integrators/test_volume_light_with_scattering_sigma_t_image_primal_ref.exr
2 changes: 2 additions & 0 deletions src/emitters/tests/test_volumelight.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def test02_eval(variants_vec_spectral, spectrum_key):
@pytest.mark.parametrize("spectrum_key", spectrum_dicts.keys())
def test03_sample_ray(variants_vec_spectral, spectrum_key):
# Check the correctness of the sample_ray() method


shape, spectrum = create_emitter_and_spectrum(spectrum_key)
emitter = shape.emitter()

Expand Down
Loading

0 comments on commit 4e191ce

Please sign in to comment.