internal

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: MIT Imports: 4 Imported by: 0

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

type Presentation struct {
	Program render.Program
}

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

func (*QuadMesh) Allocate

func (m *QuadMesh) Allocate(api render.API)

func (*QuadMesh) Release

func (m *QuadMesh) Release()

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

Jump to

Keyboard shortcuts

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