Documentation ¶
Index ¶
- type AmbientLight
- type Camera
- type DirectionalLight
- type Layout
- func (l *Layout) CreateRenderable(matrix sprec.Mat4, radius float32, model *resource.Model) *Renderable
- func (l *Layout) DeleteRenderable(renderable *Renderable)
- func (l *Layout) InvalidateRenderable(renderable *Renderable)
- func (l *Layout) SetSkybox(skybox *Skybox)
- func (l *Layout) Skybox() *Skybox
- type Node
- type Renderable
- type Scene
- type Skybox
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmbientLight ¶
type AmbientLight struct { Color sprec.Vec3 IrradianceTexture *graphics.CubeTexture }
type Camera ¶
type Camera struct {
// contains filtered or unexported fields
}
func (*Camera) ProjectionMatrix ¶
func (*Camera) SetProjectionMatrix ¶
func (*Camera) ViewMatrix ¶
type Layout ¶
type Layout struct {
// contains filtered or unexported fields
}
func (*Layout) CreateRenderable ¶
func (*Layout) DeleteRenderable ¶
func (l *Layout) DeleteRenderable(renderable *Renderable)
func (*Layout) InvalidateRenderable ¶
func (l *Layout) InvalidateRenderable(renderable *Renderable)
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) IsVisibleFrom ¶
type Renderable ¶
type Scene ¶
type Scene struct {
// contains filtered or unexported fields
}
func (*Scene) Render ¶
func (s *Scene) Render(ctx game.RenderContext)
func (*Scene) SetActiveCamera ¶
type Skybox ¶
type Skybox struct { SkyboxTexture *graphics.CubeTexture AmbientReflectionTexture *graphics.CubeTexture AmbientRefractionTexture *graphics.CubeTexture }
Click to show internal directories.
Click to hide internal directories.