Documentation ¶
Index ¶
Constants ¶
View Source
const ( CoordAttributeIndex = 0 NormalAttributeIndex = 1 TangentAttributeIndex = 2 TexCoordAttributeIndex = 3 ColorAttributeIndex = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeometryPresentation ¶
type GeometryPresentation struct { Presentation ProjectionMatrixLocation render.UniformLocation ModelMatrixLocation render.UniformLocation ViewMatrixLocation render.UniformLocation MetalnessLocation render.UniformLocation RoughnessLocation render.UniformLocation AlbedoColorLocation render.UniformLocation AlbedoTextureLocation render.UniformLocation }
func NewGeometryPresentation ¶
func NewGeometryPresentation(api render.API, vertexSrc, fragmentSrc string) *GeometryPresentation
type LightingPresentation ¶
type LightingPresentation struct { Presentation FramebufferDraw0Location render.UniformLocation FramebufferDraw1Location render.UniformLocation FramebufferDepthLocation render.UniformLocation ProjectionMatrixLocation render.UniformLocation CameraMatrixLocation render.UniformLocation ViewMatrixLocation render.UniformLocation ReflectionTextureLocation render.UniformLocation RefractionTextureLocation render.UniformLocation LightDirection render.UniformLocation LightIntensity render.UniformLocation }
func NewLightingPresentation ¶
func NewLightingPresentation(api render.API, vertexSrc, fragmentSrc string) *LightingPresentation
type PostprocessingPresentation ¶
type PostprocessingPresentation struct { Presentation FramebufferDraw0Location render.UniformLocation ExposureLocation render.UniformLocation }
func NewPostprocessingPresentation ¶
func NewPostprocessingPresentation(api render.API, vertexSrc, fragmentSrc string) *PostprocessingPresentation
type Presentation ¶
func (*Presentation) Delete ¶
func (p *Presentation) Delete()
type QuadMesh ¶
type QuadMesh struct { Topology render.Topology IndexCount int IndexOffsetBytes int VertexBuffer render.Buffer IndexBuffer render.Buffer VertexArray render.VertexArray }
func NewQuadMesh ¶
func NewQuadMesh() *QuadMesh
type ShadowPresentation ¶
type ShadowPresentation struct {
Presentation
}
func NewShadowPresentation ¶
func NewShadowPresentation(api render.API, vertexSrc, fragmentSrc string) *ShadowPresentation
type SkyboxMesh ¶
type SkyboxMesh struct { Topology render.Topology IndexCount int IndexOffsetBytes int VertexBuffer render.Buffer IndexBuffer render.Buffer VertexArray render.VertexArray }
func NewSkyboxMesh ¶
func NewSkyboxMesh() *SkyboxMesh
func (*SkyboxMesh) Allocate ¶
func (m *SkyboxMesh) Allocate(api render.API)
func (*SkyboxMesh) Release ¶
func (m *SkyboxMesh) Release()
type SkyboxPresentation ¶
type SkyboxPresentation struct { Presentation ProjectionMatrixLocation render.UniformLocation ViewMatrixLocation render.UniformLocation AlbedoCubeTextureLocation render.UniformLocation AlbedoColorLocation render.UniformLocation }
func NewSkyboxPresentation ¶
func NewSkyboxPresentation(api render.API, vertexSrc, fragmentSrc string) *SkyboxPresentation
Click to show internal directories.
Click to hide internal directories.