Skip to content

Commit 1eee3ca

Browse files
committed
fixed triangle light, rectangle needs checking
1 parent 6abb635 commit 1eee3ca

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

31_HLSLPathTracer/app_resources/hlsl/render.comp.hlsl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,13 @@ static const ext::Shape<ext::PST_RECTANGLE> rectangles[RECTANGLE_COUNT] = {
9797

9898
#define LIGHT_COUNT 1
9999
static const light_type lights[LIGHT_COUNT] = {
100-
light_type::create(spectral_t(30.0,25.0,15.0), 8u, ext::IntersectMode::IM_PROCEDURAL, LIGHT_TYPE)
100+
light_type::create(spectral_t(30.0,25.0,15.0),
101+
#ifdef SPHERE_LIGHT
102+
8u,
103+
#else
104+
0u,
105+
#endif
106+
ext::IntersectMode::IM_PROCEDURAL, LIGHT_TYPE)
101107
};
102108

103109
#define BXDF_COUNT 7

0 commit comments

Comments
 (0)