glsl

package
v0.0.0-...-03afc55 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package glsl handles glsl shaders and applies some preprocessing to them

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(name string, defines ...string) string

Get returns the named shader optionally adding the passed defines. The output from this will be processed finding and expanding #include statements. This also adds debugging information to the shaders (line number and name).

func Register

func Register(name, source string)

Register adds the named shader to the database. Once included they may be obtained from Get or used within other shaders via #include

Types

This section is empty.

Jump to

Keyboard shortcuts

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