Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Reflectance ¶
Reflectance uses Schlick's approximation for reflectance.
Types ¶
type Barycentric ¶
type Barycentric struct{}
barycentric
func NewBarycentric ¶
func NewBarycentric() Barycentric
type Dielectric ¶
type Dielectric struct {
// contains filtered or unexported fields
}
func NewDielectric ¶
func NewDielectric(indexOfRefraction float64) Dielectric
func NewDielectricWithColor ¶ added in v0.4.0
func NewDielectricWithColor(indexOfRefraction float64, color vector3.Float64) Dielectric
type DiffuseLight ¶
type DiffuseLight struct {
// contains filtered or unexported fields
}
func NewDiffuseLight ¶
func NewDiffuseLight(tex rendering.Texture) DiffuseLight
func NewDiffuseLightWithColor ¶
func NewDiffuseLightWithColor(color vector3.Float64) DiffuseLight
type Lambertian ¶
type Lambertian struct {
// contains filtered or unexported fields
}
func NewLambertian ¶
func NewLambertian(tex rendering.Texture) *Lambertian
Click to show internal directories.
Click to hide internal directories.