Arty
Public Member Functions | List of all members
GlossyPhongBsdf Class Reference

Specular part of the modified (physically correct) Phong. More...

#include <materials.h>

Inheritance diagram for GlossyPhongBsdf:
Bsdf

Public Member Functions

 GlossyPhongBsdf (const Texture &tex, float ns)
 
rgb eval (const float3 &in, const SurfaceParams &surf, const float3 &out) const override final
 Evaluates the material for the given pair of directions and surface point. Does NOT include the cosine term.
 
BsdfSample sample (Sampler &sampler, const SurfaceParams &surf, const float3 &out, bool) const override final
 Samples the material given a surface point and an outgoing direction. The contribution DOES include the cosine term.
 
float pdf (const float3 &in, const SurfaceParams &surf, const float3 &out) const override final
 Returns the probability to sample the given input direction (sampled using the sample function).
 
- Public Member Functions inherited from Bsdf
 Bsdf (Type ty)
 
Type type () const
 Returns the type of the BSDF, useful to make sampling decisions.
 

Additional Inherited Members

- Public Types inherited from Bsdf
enum  Type { Type::Diffuse = 0, Type::Glossy = 1, Type::Specular = 2 }
 Classification of BSDF shapes. More...
 
- Static Protected Member Functions inherited from Bsdf
template<bool below_surface = false>
static BsdfSample make_sample (const float3 &dir, float pdf, const rgb &color, const SurfaceParams &surf)
 
- Protected Attributes inherited from Bsdf
Type ty
 

Detailed Description

Specular part of the modified (physically correct) Phong.


The documentation for this class was generated from the following file: