PhongShader

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

This section is empty.

Variables

This section is empty.

Functions

func NewIShaderProgram

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

Types

type ShaderProgram

type ShaderProgram struct {
	*Shader.ShaderProgramCore
	ShadowShader   ShadowMapping.ShaderComponent
	MaterialShader Material.ShaderProgram
}

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