luxrays::sdl::AlloyMaterial Class Reference

#include <material.h>

Inheritance diagram for luxrays::sdl::AlloyMaterial:
luxrays::sdl::SurfaceMaterial luxrays::sdl::Material

List of all members.

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 SpectrumGetKrefl () const

Private Attributes

Spectrum Krefl
Spectrum Kdiff
Spectrum KdiffOverPI
float exponent
float R0
bool reflectionSpecularBounce

Detailed Description

Definition at line 527 of file material.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Member Data Documentation

Definition at line 606 of file material.h.

Referenced by AlloyMaterial(), and Sample_f().

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().

Definition at line 604 of file material.h.

Referenced by AlloyMaterial(), GetKrefl(), and Sample_f().

Definition at line 607 of file material.h.

Referenced by AlloyMaterial(), f(), and Sample_f().

Definition at line 608 of file material.h.

Referenced by AlloyMaterial(), and Sample_f().


The documentation for this class was generated from the following file:
Generated on Sat Aug 21 14:06:21 2010 for LuxRays by  doxygen 1.6.3