Documentation ¶
Index ¶
- Variables
- func Reconstruct(a, b image.Image, out draw.Image) error
- func TreeWidthToDepth(width int) int
- type Camera
- type Config
- type FreeFlightCamera
- func (c *FreeFlightCamera) Forward() Vec3
- func (c *FreeFlightCamera) Lift(dist float32)
- func (c *FreeFlightCamera) LookAt() Vec3
- func (c *FreeFlightCamera) Move(dist float32)
- func (c *FreeFlightCamera) Position() Vec3
- func (c *FreeFlightCamera) Right() Vec3
- func (c *FreeFlightCamera) Strafe(dist float32)
- func (c *FreeFlightCamera) Up() Vec3
- type LookAtCamera
- type Octree
- type Raytracer
- func (rt *Raytracer) ClearDepth(frame int)
- func (rt *Raytracer) Close()
- func (rt *Raytracer) Depth(frame int) *image.Gray16
- func (rt *Raytracer) Frame() int
- func (rt *Raytracer) Image(frame int) *image.RGBA
- func (rt *Raytracer) SetClearColor(c color.RGBA)
- func (rt *Raytracer) Trace(camera Camera, tree Octree, maxDepth int) int
- type Vec3
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InvalidSizeError = errors.New("invalid size") Uint28OverflowError = errors.New("uint28 overflow") )
Functions ¶
func TreeWidthToDepth ¶
Types ¶
type FreeFlightCamera ¶
func (*FreeFlightCamera) Forward ¶
func (c *FreeFlightCamera) Forward() Vec3
func (*FreeFlightCamera) Lift ¶
func (c *FreeFlightCamera) Lift(dist float32)
func (*FreeFlightCamera) LookAt ¶
func (c *FreeFlightCamera) LookAt() Vec3
func (*FreeFlightCamera) Move ¶
func (c *FreeFlightCamera) Move(dist float32)
func (*FreeFlightCamera) Position ¶
func (c *FreeFlightCamera) Position() Vec3
func (*FreeFlightCamera) Right ¶
func (c *FreeFlightCamera) Right() Vec3
func (*FreeFlightCamera) Strafe ¶
func (c *FreeFlightCamera) Strafe(dist float32)
func (*FreeFlightCamera) Up ¶
func (c *FreeFlightCamera) Up() Vec3
type LookAtCamera ¶
func (*LookAtCamera) LookAt ¶
func (c *LookAtCamera) LookAt() Vec3
func (*LookAtCamera) Position ¶
func (c *LookAtCamera) Position() Vec3
func (*LookAtCamera) Up ¶
func (c *LookAtCamera) Up() Vec3
type Raytracer ¶
type Raytracer struct {
// contains filtered or unexported fields
}
func NewRaytracer ¶
func (*Raytracer) ClearDepth ¶
func (*Raytracer) SetClearColor ¶
Click to show internal directories.
Click to hide internal directories.