Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
*Intersection
}
type Frame ¶
func (*Frame) PopulateIntersectors ¶
func (sf *Frame) PopulateIntersectors()
func (*Frame) PopulateShaders ¶
func (sf *Frame) PopulateShaders()
type Intersection ¶
type Intersection struct { Ray line.Line *scene.Frame *triangle.Triangle *scene.TriangleIndex triangle.Intersection }
type Intersector ¶
type Intersector struct { scene.TriangleIndex *triangle.TriangleIntersector }
type MaterialWrapper ¶
type MaterialWrapper struct {
// contains filtered or unexported fields
}
func NewMaterialWrapper ¶
func NewMaterialWrapper(m material.Material) *MaterialWrapper
func (*MaterialWrapper) RayShader ¶
func (m *MaterialWrapper) RayShader(ctx *Context) *Material
type ModelIntersector ¶
type ModelIntersector struct { *box.Box Intersectors []Intersector }
Click to show internal directories.
Click to hide internal directories.