Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Camera ¶
func (*Camera) Perspective ¶
type Context ¶
type Context struct { *Frame *TriangleRef barycentric.B }
type Frame ¶
func (*Frame) PopulateCameraMeshes ¶
func (f *Frame) PopulateCameraMeshes()
func (*Frame) PopulateShaders ¶
func (f *Frame) PopulateShaders()
type MaterialWrapper ¶
func (*MaterialWrapper) ZBufShader ¶
func (m *MaterialWrapper) ZBufShader(ctx *Context) *color.RGBA
type Scene ¶
type TriangleRef ¶
type TriangleRef struct { scene.TriangleIndex Space, Camera *triangle.Triangle NSpace, NCamera d3.V BSpace, BCamera *triangle.BT Orgin, U int }
TriangleRef is a reference to a triangle in the scene. The MeshIdx, PolygonIdx and TriangleIdx provide the indexes to pull the value out of a SceneFrame. Space represents the triangle in scene space and Camera represents the triangle in Camera space (after the camera transform). NSpace and NCamera provide the respective normals.
type ZBufShader ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.