Documentation ¶
Index ¶
- func ArgParse() (nThread int, csvFile string, outFile string)
- func RandomScene(csvPath string) *pm.World
- func SceneParser(csvPath string) *pm.World
- type Pixel
- type Sampler
- func (s *Sampler) Render()
- func (s *Sampler) SamplePixel(x, y int) color.RGBA64
- func (s *Sampler) Save(filePath string) error
- func (s *Sampler) SetCamera(fov, aspect, aperture float64, pos, lookAt, up *vec3.Vec3)
- func (s *Sampler) SetParallel(nThread int)
- func (s *Sampler) SetWorldObj(world *pm.World)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SceneParser ¶
Types ¶
type Sampler ¶
Sampler performs the color sampling on pixel level
func NewSampler ¶
NewSampler creates a new sampler for rendering
func (*Sampler) SamplePixel ¶
SamplePixel yields the color for given coordinate (x, y)
func (*Sampler) SetCamera ¶
SetCamera customize the camera model with given parameters ** lookAt is a point
func (*Sampler) SetParallel ¶
func (*Sampler) SetWorldObj ¶
SetWorldObj sets up the world of hitable objects
Click to show internal directories.
Click to hide internal directories.