Loading...
Searching...
No Matches
cooktorrance.h
Go to the documentation of this file.
1#ifndef _BBM_COOKTORRANCE_H_
2#define _BBM_COOKTORRANCE_H_
3
6#include "ndf/beckmann.h"
8
9/***********************************************************************/
10/*! \file cooktorrance.h
11 \brief Implements the Cook-Torrance BSDF Model [SIGGRAPH'82]:
12 https://doi.org/10.1145/357290.357293
13
14************************************************************************/
15namespace bbm {
16
17 /*********************************************************************/
18 /*! \brief Cook-Torrance microfacet BSDF model.
19
20 \tparam CONF = type configuration to use
21 \tparam NAME = model name (default = CookTorrance)
22
23 This is a microfacet model set to mimic the original BSDF model
24 as proposed by Cook and Torrance.
25
26 Implements: concepts::bsdfmodel
27 ***********************************************************************/
28 template<typename CONF, string_literal NAME = "CookTorrance"> requires concepts::config<CONF>
33 NAME>,
35
37
38} // end bbm nanespace
39
40#endif /* _BBM_COOKTORRANCE_H_ */
41
43
#define BBM_EXPORT_BSDFMODEL(BsdfModel)
Definition: bbm_fromstring.h:49
Implements the Beckman Microfacet Normal Distribution:
bsdfmodel concept
Definition: bsdfmodel.h:33
#define BBM_CHECK_CONCEPT(CONCEPTNAME, CLASSNAME,...)
Check a class for a concept with bbm::concepts::archetypes in the namespace.
Definition: macro.h:35
Microfacet BSDF model following "Microfacet Models for Refraction through Rough Surfaces" [Walter et ...
Definition: aggregatebsdf.h:29
Add an 'albedo' parameter to an existing bsdfmodel and scale the albedo and eval respectively.
Implements the Fresnel reflectance equation as proposed by Cook and Torrance [SIGGRAPH'82]: https://d...
Definition: fresnel_cook.h:21
Vgroove shadowing and masking.
Definition: vgroove.h:26
static constexpr literal Cook
Definition: microfacet.h:35
Scaled BSDF model.
Definition: scaledmodel.h:30
Vgroove shadowing and masking. Based on Torrance and Sparrow, 19967, "Theory for off-specular reflect...