| 22 | } |
| 23 | |
| 24 | struct Tutorial : public TutorialApplication |
| 25 | { |
| 26 | Tutorial() |
| 27 | : TutorialApplication(NAME,FEATURES) |
| 28 | { |
| 29 | /* set default camera */ |
| 30 | camera.from = Vec3fa(3.5f,3.0f,-5.0f); |
| 31 | camera.to = Vec3fa(0.0f,0.0f,0.0f); |
| 32 | } |
| 33 | #if defined(USE_GLFW) |
| 34 | |
| 35 | void drawGUI() override |
| 36 | { |
| 37 | ImGui::Checkbox ("enable ray mask", &g_ray_mask); |
| 38 | if (g_drawGUI) |
| 39 | g_drawGUI(); |
| 40 | } |
| 41 | #endif |
| 42 | }; |
| 43 | |
| 44 | } |
| 45 |