abstract struct BSDF

Direct Known Subclasses

Defined in:

bsdf.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def diffuse? #

[View source]
abstract def emitted(wo_world) : Color #

[View source]
abstract def f(wo_world : Vector, wi_world : Vector, flags : BxDF::Type) : Color #

[View source]
def glossy? #

[View source]
def matches_flags?(flags : BxDF::Type) #

[View source]
abstract def num_components(flags = BxDF::Type::All) : Int32 #

Number of components matching the given flag


[View source]
abstract def pdf(wo : Vector, wi : Vector, flags = BxDF::Type::All) : Float64 #

[View source]
abstract def sample_f(wo_world : Vector, flags : BxDF::Type) : Sample? #

[View source]