-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathBRDFPTParameters.h
43 lines (36 loc) · 1.56 KB
/
BRDFPTParameters.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/***************************************************************************
# Copyright (c) 2020-2023, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and related documentation without an express
# license agreement from NVIDIA CORPORATION is strictly prohibited.
**************************************************************************/
#ifndef RTXDI_BRDFPT_PARAMETERS_H
#define RTXDI_BRDFPT_PARAMETERS_H
#include <Rtxdi/DI/ReSTIRDIParameters.h>
struct BRDFPathTracing_MaterialOverrideParameters
{
float roughnessOverride;
float metalnessOverride;
float minSecondaryRoughness;
uint32_t pad1;
};
// Parameters for running ReSTIR DI on the secondary surface
// Spatial resampling is only enabled if the secondary hit is in the gbuffer (determined via projection)
struct BRDFPathTracing_SecondarySurfaceReSTIRDIParameters
{
ReSTIRDI_InitialSamplingParameters initialSamplingParams;
ReSTIRDI_SpatialResamplingParameters spatialResamplingParams;
};
struct BRDFPathTracing_Parameters
{
uint32_t enableIndirectEmissiveSurfaces;
uint32_t enableSecondaryResampling;
uint32_t enableReSTIRGI;
uint32_t pad1;
BRDFPathTracing_MaterialOverrideParameters materialOverrideParams;
BRDFPathTracing_SecondarySurfaceReSTIRDIParameters secondarySurfaceReSTIRDIParams;
};
#endif // RTXDI_BRDFPT_PARAMETERS_H