Skip to content

Commit 4f86042

Browse files
Almost start filling the visibility buffer
1 parent 531e6ab commit 4f86042

File tree

13 files changed

+435
-517
lines changed

13 files changed

+435
-517
lines changed

examples_tests/22.RaytracedAO/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ endif()
77
set(RAY_TRACED_AO_EXAMPLE_LIBS
88
${IRR_EXT_RADEON_RAYS_LIB}
99
${RADEON_RAYS_DEPENDENT_LIBS}
10+
${IRR_EXT_MITSUBA_LOADER_LIB}
11+
${MITSUBA_LOADER_DEPENDENT_LIBS}
1012
)
1113

1214
set(RAY_TRACED_AO_EXAMPLE_INCLUDE_DIRS
1315
${IRR_EXT_RADEON_RAYS_INCLUDE_DIRS}
16+
${IRR_EXT_MITSUBA_LOADER_INCLUDE_DIRS}
1417
)
1518

1619
if(IRR_BUILD_OPTIX)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#ifndef _INSTANCE_DATA_PER_CAMERA_INCLUDED_
2+
#define _INSTANCE_DATA_PER_CAMERA_INCLUDED_
3+
4+
#include "common.glsl"
5+
6+
struct InstanceDataPerCamera
7+
{
8+
mat4 MVP;
9+
mat4x3 NormalMatrix;
10+
};
11+
12+
#endif
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#ifndef _COMMON_INCLUDED_
2+
#define _COMMON_INCLUDED_
3+
4+
#define MAX_ACCUMULATED_SAMPLES (1024*1024)
5+
6+
#ifdef __cplusplus
7+
#define mat4 irr::core::matrix4SIMD
8+
#define mat4x3 irr::core::matrix3x4SIMD
9+
#endif
10+
11+
12+
#endif

0 commit comments

Comments
 (0)