File tree Expand file tree Collapse file tree 4 files changed +0
-56
lines changed
include/nbl/builtin/hlsl/bxdf Expand file tree Collapse file tree 4 files changed +0
-56
lines changed Original file line number Diff line number Diff line change @@ -33,20 +33,6 @@ struct SDeltaDistribution
3333
3434 NBL_CONSTEXPR_STATIC_INLINE BxDFClampMode _clamp = BxDFClampMode::BCM_MAX;
3535
36- struct SCreationParams {};
37- using creation_type = SCreationParams;
38-
39- static this_t create ()
40- {
41- this_t retval;
42- // nothing here, just keeping in convention with others
43- return retval;
44- }
45- static this_t create (NBL_CONST_REF_ARG (creation_type) params)
46- {
47- return create ();
48- }
49-
5036 spectral_type eval (NBL_CONST_REF_ARG (sample_type) _sample, NBL_CONST_REF_ARG (isotropic_interaction_type) interaction)
5137 {
5238 return hlsl::promote<spectral_type>(0 );
Original file line number Diff line number Diff line change @@ -34,20 +34,6 @@ struct SLambertian
3434
3535 NBL_CONSTEXPR_STATIC_INLINE BxDFClampMode _clamp = BxDFClampMode::BCM_MAX;
3636
37- struct SCreationParams {};
38- using creation_type = SCreationParams;
39-
40- static this_t create ()
41- {
42- this_t retval;
43- // nothing here, just keeping in convention with others
44- return retval;
45- }
46- static this_t create (NBL_CONST_REF_ARG (creation_type) params)
47- {
48- return create ();
49- }
50-
5137 spectral_type eval (NBL_CONST_REF_ARG (sample_type) _sample, NBL_CONST_REF_ARG (isotropic_interaction_type) interaction)
5238 {
5339 return hlsl::promote<spectral_type>(_sample.getNdotL (_clamp) * numbers::inv_pi<scalar_type>);
Original file line number Diff line number Diff line change @@ -33,20 +33,6 @@ struct SDeltaDistribution
3333
3434 NBL_CONSTEXPR_STATIC_INLINE BxDFClampMode _clamp = BxDFClampMode::BCM_MAX;
3535
36- struct SCreationParams {};
37- using creation_type = SCreationParams;
38-
39- static this_t create ()
40- {
41- this_t retval;
42- // nothing here, just keeping in convention with others
43- return retval;
44- }
45- static this_t create (NBL_CONST_REF_ARG (creation_type) params)
46- {
47- return create ();
48- }
49-
5036 spectral_type eval (NBL_CONST_REF_ARG (sample_type) _sample, NBL_CONST_REF_ARG (isotropic_interaction_type) interaction)
5137 {
5238 return hlsl::promote<spectral_type>(0 );
Original file line number Diff line number Diff line change @@ -35,20 +35,6 @@ struct SLambertian
3535
3636 NBL_CONSTEXPR_STATIC_INLINE BxDFClampMode _clamp = BxDFClampMode::BCM_ABS;
3737
38- struct SCreationParams {};
39- using creation_type = SCreationParams;
40-
41- static this_t create ()
42- {
43- this_t retval;
44- // nothing here, just keeping convention with others
45- return retval;
46- }
47- static this_t create (NBL_CONST_REF_ARG (creation_type) params)
48- {
49- return create ();
50- }
51-
5238 spectral_type eval (NBL_CONST_REF_ARG (sample_type) _sample, NBL_CONST_REF_ARG (isotropic_interaction_type) interaction)
5339 {
5440 return hlsl::promote<spectral_type>(_sample.getNdotL (_clamp) * numbers::inv_pi<scalar_type> * 0.5 );
You can’t perform that action at this time.
0 commit comments