struct BxDF::LambertianReflection

Defined in:

bxdfs/lambertian.cr

Constructors

Instance Method Summary

Instance methods inherited from struct BxDF

cos_phi(w : Vector) cos_phi, cos_theta(w : Vector) cos_theta, f(wo : Vector, wi : Vector) : Color f, matches_flags?(other : BxDF::Type) matches_flags?, pdf(wo : Vector, wi : Vector) : Color pdf, sample_f(wo : Vector, u1 : Float64 = rand, u2 : Float64 = rand) : Tuple(Color, Vector, Float64) sample_f, sin_phi(w : Vector) sin_phi, sin_theta(w : Vector) sin_theta, sin_theta_2(w : Vector) sin_theta_2, type : Type type

Constructor methods inherited from struct BxDF

new new

Constructor Detail

def self.new(color : Color) #

[View source]

Instance Method Detail

def f(wo : Vector, wi : Vector) #

[View source]
def pdf(wo, wi) #

[View source]
def sample_f(wo : Vector, u1 : Float64 = rand, u2 : Float64 = rand) : Tuple(Color, Vector, Float64) #

[View source]