Arty
|
BSDF that can represent glass or any separation between two mediums. More...
#include <materials.h>
Public Member Functions | |
GlassBsdf (float n1=1.0f, float n2=1.4f, const rgb &c=rgb(1.0f)) | |
BsdfSample | sample (Sampler &sampler, const SurfaceParams &surf, const float3 &out, bool adjoint) const override final |
Samples the material given a surface point and an outgoing direction. The contribution DOES include the cosine term. | |
![]() | |
Bsdf (Type ty) | |
Type | type () const |
Returns the type of the BSDF, useful to make sampling decisions. | |
virtual rgb | eval (const float3 &, const SurfaceParams &, const float3 &) const |
Evaluates the material for the given pair of directions and surface point. Does NOT include the cosine term. | |
virtual float | pdf (const float3 &, const SurfaceParams &, const float3 &) const |
Returns the probability to sample the given input direction (sampled using the sample function). | |
Additional Inherited Members | |
![]() | |
enum | Type { Type::Diffuse = 0, Type::Glossy = 1, Type::Specular = 2 } |
Classification of BSDF shapes. More... | |
![]() | |
template<bool below_surface = false> | |
static BsdfSample | make_sample (const float3 &dir, float pdf, const rgb &color, const SurfaceParams &surf) |
![]() | |
Type | ty |
BSDF that can represent glass or any separation between two mediums.