Skip to content

Commit

Permalink
Fix OptiX denoiser initialization for OptiX 8.0.0
Browse files Browse the repository at this point in the history
Fixes #422.
  • Loading branch information
mmp committed Oct 26, 2024
1 parent b7d2936 commit a1f4d0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pbrt/gpu/optix/denoiser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ Denoiser::Denoiser(Vector2i resolution, bool haveAlbedoAndNormal)
OptixDenoiserOptions options = {};
#if (OPTIX_VERSION >= 80000)
options.denoiseAlpha = OPTIX_DENOISER_ALPHA_MODE_COPY;
#elif (OPTIX_VERSION >= 70300)
#endif

#if (OPTIX_VERSION >= 70300)
if (haveAlbedoAndNormal)
options.guideAlbedo = options.guideNormal = 1;

Expand Down

0 comments on commit a1f4d0f

Please sign in to comment.