#include <material.h>
Public Member Functions | |
| AlloyMaterial (const Spectrum &col, const Spectrum &refl, const float exp, const float schlickTerm, bool reflSpecularBounce) | |
| MaterialType | GetType () const |
| bool | IsDiffuse () const |
| bool | IsSpecular () const |
| Spectrum | f (const Vector &wo, const Vector &wi, const Normal &N) const |
| Spectrum | Sample_f (const Vector &wo, Vector *wi, const Normal &N, const Normal &shadeN, const float u0, const float u1, const float u2, const bool onlySpecular, float *pdf, bool &specularBounce) const |
| const Spectrum & | GetKrefl () const |
Private Attributes | |
| Spectrum | Krefl |
| Spectrum | Kdiff |
| Spectrum | KdiffOverPI |
| float | exponent |
| float | R0 |
| bool | reflectionSpecularBounce |
Definition at line 527 of file material.h.
| luxrays::sdl::AlloyMaterial::AlloyMaterial | ( | const Spectrum & | col, | |
| const Spectrum & | refl, | |||
| const float | exp, | |||
| const float | schlickTerm, | |||
| bool | reflSpecularBounce | |||
| ) | [inline] |
Definition at line 529 of file material.h.
References exponent, INV_PI, Kdiff, KdiffOverPI, Krefl, R0, and reflectionSpecularBounce.
| Spectrum luxrays::sdl::AlloyMaterial::f | ( | const Vector & | wo, | |
| const Vector & | wi, | |||
| const Normal & | N | |||
| ) | const [inline, virtual] |
Implements luxrays::sdl::SurfaceMaterial.
Definition at line 545 of file material.h.
References luxrays::Dot(), KdiffOverPI, and R0.
Referenced by Sample_f().
| const Spectrum& luxrays::sdl::AlloyMaterial::GetKrefl | ( | ) | const [inline] |
Definition at line 601 of file material.h.
References Krefl.
| MaterialType luxrays::sdl::AlloyMaterial::GetType | ( | ) | const [inline, virtual] |
Implements luxrays::sdl::Material.
Definition at line 540 of file material.h.
References luxrays::sdl::ALLOY.
| bool luxrays::sdl::AlloyMaterial::IsDiffuse | ( | ) | const [inline, virtual] |
Implements luxrays::sdl::Material.
Definition at line 542 of file material.h.
| bool luxrays::sdl::AlloyMaterial::IsSpecular | ( | ) | const [inline, virtual] |
Implements luxrays::sdl::Material.
Definition at line 543 of file material.h.
| Spectrum luxrays::sdl::AlloyMaterial::Sample_f | ( | const Vector & | wo, | |
| Vector * | wi, | |||
| const Normal & | N, | |||
| const Normal & | shadeN, | |||
| const float | u0, | |||
| const float | u1, | |||
| const float | u2, | |||
| const bool | onlySpecular, | |||
| float * | pdf, | |||
| bool & | specularBounce | |||
| ) | const [inline, virtual] |
Implements luxrays::sdl::SurfaceMaterial.
Definition at line 555 of file material.h.
References luxrays::CoordinateSystem(), luxrays::sdl::CosineSampleHemisphere(), luxrays::Dot(), exponent, f(), luxrays::sdl::MetalMaterial::GlossyReflection(), INV_PI, Kdiff, Krefl, R0, reflectionSpecularBounce, luxrays::Normal::x, luxrays::Vector::x, luxrays::Normal::y, luxrays::Vector::y, luxrays::Normal::z, and luxrays::Vector::z.
float luxrays::sdl::AlloyMaterial::exponent [private] |
Definition at line 606 of file material.h.
Referenced by AlloyMaterial(), and Sample_f().
Spectrum luxrays::sdl::AlloyMaterial::Kdiff [private] |
Definition at line 605 of file material.h.
Referenced by AlloyMaterial(), and Sample_f().
Definition at line 605 of file material.h.
Referenced by AlloyMaterial(), and f().
Spectrum luxrays::sdl::AlloyMaterial::Krefl [private] |
Definition at line 604 of file material.h.
Referenced by AlloyMaterial(), GetKrefl(), and Sample_f().
float luxrays::sdl::AlloyMaterial::R0 [private] |
Definition at line 607 of file material.h.
Referenced by AlloyMaterial(), f(), and Sample_f().
bool luxrays::sdl::AlloyMaterial::reflectionSpecularBounce [private] |
Definition at line 608 of file material.h.
Referenced by AlloyMaterial(), and Sample_f().
1.6.3