tracer

package
v0.0.0-...-4f29a8f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Position

func Position(r geom.Ray, distance float64) geom.Tuple4

Position multiplies direction of ray with the passed distance and adds the result onto the origin. Used for finding the position along a ray.

func Render

func Render(sceneFactory func() *scenes.Scene)

func TransformRay

func TransformRay(r geom.Ray, m1 geom.Mat4x4) geom.Ray

func TransformRayPtr

func TransformRayPtr(r geom.Ray, m1 geom.Mat4x4, out *geom.Ray)

Types

type Ctx

type Ctx struct {
	Id int
	// contains filtered or unexported fields
}

func NewCtx

func NewCtx(id int, scene *scenes.Scene, canvas *canvas2.Canvas, samples int) *Ctx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL