未验证 提交 94cd445d 编写于 作者: M Matt Pharr 提交者: GitHub

Merge pull request #289 from 1div0/denoiseAlpha

Corrected denoiseAlpha parameter type
......@@ -101,7 +101,11 @@ void Denoiser::Denoise(RGB *rgb, Normal3f *n, RGB *albedo, RGB *result) {
CUdeviceptr(scratchBuffer), memorySizes.withoutOverlapScratchSizeInBytes));
OptixDenoiserParams params = {};
#if (OPTIX_VERSION >= 70500)
params.denoiseAlpha = OPTIX_DENOISER_ALPHA_MODE_COPY;
#else
params.denoiseAlpha = 0;
#endif
params.hdrIntensity = CUdeviceptr(intensity);
params.blendFactor = 0; // TODO what should this be??
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册