Documentation
¶
Index ¶
- func NewBvhNode(objects ObjectList, time0, time1 Double) *bvhNode
- func NewConstantMedium(boundary Object, density Double, texture Texture) *constantMedium
- func NewDielectric(refIdx Double) *dielectric
- func NewDiffuseLight(emit Texture) *diffuseLight
- func NewIsotropic(albedo Texture) *isotropic
- func NewLambertian(albedo Texture) *lambertian
- func NewMetal(albedo Color, fuzz Double) *metal
- func NewMovingSphere(center1, center2 Vec3, radius Double, mat Material, time0, time1 Double) *movingSphere
- func NewRotateY(obj Object, angle Double) *rotateY
- func NewSphere(center Vec3, radius Double, mat Material) *sphere
- func NewXYRect(x0, x1, y0, y1, k Double, material Material) *xyRect
- func NewXZRect(x0, x1, z0, z1, k Double, material Material) *xzRect
- func NewYZRect(y0, y1, z0, z1, k Double, material Material) *yzRect
- type Box
- type Camera
- type CheckerTexture
- type Color
- type Double
- type ImageTexture
- type Material
- type NoiseTexture
- type Object
- type ObjectList
- type Ray
- type SolidColor
- type Texture
- type Translate
- type TurbulanceNoiseTexture
- type Vec3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBvhNode ¶
func NewBvhNode(objects ObjectList, time0, time1 Double) *bvhNode
func NewConstantMedium ¶
func NewDielectric ¶
func NewDielectric(refIdx Double) *dielectric
func NewDiffuseLight ¶
func NewDiffuseLight(emit Texture) *diffuseLight
func NewIsotropic ¶
func NewIsotropic(albedo Texture) *isotropic
func NewLambertian ¶
func NewLambertian(albedo Texture) *lambertian
func NewMovingSphere ¶
func NewRotateY ¶
Types ¶
type CheckerTexture ¶
type CheckerTexture struct {
// contains filtered or unexported fields
}
Checker
func NewCheckerTexture ¶
func NewCheckerTexture(odd, even Texture) *CheckerTexture
type ImageTexture ¶
type ImageTexture struct {
// contains filtered or unexported fields
}
Image
func NewImageTexture ¶
func NewImageTexture(src image.Image) *ImageTexture
type NoiseTexture ¶
type NoiseTexture struct {
// contains filtered or unexported fields
}
Noise
func NewNoiseTexture ¶
func NewNoiseTexture(scale Double) *NoiseTexture
type ObjectList ¶
type ObjectList []Object
type SolidColor ¶
type SolidColor struct {
Color Color
}
SolidColor
func NewSolidColor ¶
func NewSolidColor(rgb Color) *SolidColor
type Translate ¶
type Translate struct {
// contains filtered or unexported fields
}
func NewTranslate ¶
type TurbulanceNoiseTexture ¶
type TurbulanceNoiseTexture struct {
// contains filtered or unexported fields
}
TurbulanceNoise (marble)
func NewTurbulanceNoiseTexture ¶
func NewTurbulanceNoiseTexture(scale Double, period Double) *TurbulanceNoiseTexture
Click to show internal directories.
Click to hide internal directories.