PostProcessing

package
v0.0.0-...-9749107 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OffscreenTexture Texture.Type = "offscreenTexture"
)

Variables

This section is empty.

Functions

func NewIShaderProgram

func NewIShaderProgram(vertexShaderFiles []string, fragmentShaderFiles []string, geometryShaderFiles []string) (Shader.IShaderProgram, error)

func NewOffscreenTexture

func NewOffscreenTexture(width int32, height int32) (*Texture.Texture, error)

func NewQuad

func NewQuad() *Mesh.Mesh

Types

type Kernel

type Kernel struct {
	Kernel []float32 `yaml:"kernel"`

	Multiplier struct {
		Numerator   float32 `yaml:"numerator"`
		Denominator float32 `yaml:"denominator"`
	} `yaml:"kernelMultiplier"`

	Offset struct {
		Numerator   float32 `yaml:"numerator"`
		Denominator float32 `yaml:"denominator"`
	} `yaml:"kernelOffset"`
}

func (*Kernel) GetKernel

func (kernel *Kernel) GetKernel() []float32

func (*Kernel) GetOffset

func (kernel *Kernel) GetOffset() float32

type ShaderProgram

type ShaderProgram struct {
	*Shader.ShaderProgramCore
}

func NewShaderProgram

func NewShaderProgram(vertexShaderFiles []string, fragmentShaderFiles []string, geometryShaderFiles []string) (*ShaderProgram, error)

func (*ShaderProgram) BindObject

func (program *ShaderProgram) BindObject(i interface{}) error

func (*ShaderProgram) GetUniformAddress

func (program *ShaderProgram) GetUniformAddress(i interface{}) (string, error)

Jump to

Keyboard shortcuts

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