NVIDIA Index example code nvidia_logo_transpbg.gif Up
ray_sampling_heightfield.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 *****************************************************************************/
9#ifndef EXAMPLES_RAY_SAMPLING_HEIGHTFIELD_H
10#define EXAMPLES_RAY_SAMPLING_HEIGHTFIELD_H
11
12#include "ray_sampling_scenes.h"
14
15
16
17namespace heightfield {
18
20{
21public:
22 const char* name() const {return "Heightfield";}
23
24
25
27 nv::index::app::IApplication_layer* app_layer,
28 Scene_info& scene_info,
29 const mi::math::Bbox< mi::Float32, 3>& roi_bbox,
30 const mi::neuraylib::Tag& session_tag,
31 std::map<std::string, std::string>& opt_map,
32 mi::neuraylib::IDice_transaction* transaction) const
33 {
35 app_layer,
36 false /*enable_LOD*/,
37 scene_info, roi_bbox, session_tag, opt_map, transaction);
38 }
39};
40
41}//heightfield
42
43#endif
44
45
bool create_scene(nv::index::app::IApplication_layer *app_layer, Scene_info &scene_info, const mi::math::Bbox< mi::Float32, 3 > &roi_bbox, const mi::neuraylib::Tag &session_tag, std::map< std::string, std::string > &opt_map, mi::neuraylib::IDice_transaction *transaction) const
bool create_heightfield_scene(nv::index::app::IApplication_layer *app_layer, bool enable_LOD, Scene_info &scene_info, const mi::math::Bbox< mi::Float32, 3 > &roi_bbox, const mi::neuraylib::Tag &session_tag, std::map< std::string, std::string > &opt_map, mi::neuraylib::IDice_transaction *transaction) const
Scene setup interface for ray sampling example.