Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatShader ¶
FormatShader formats a shader for CLI display.
Types ¶
type Shader ¶
type Shader struct {
Name string `json:"name"`
Description string `json:"description"`
Category string `json:"category"`
GLSL string `json:"glsl"`
Uniforms []Uniform `json:"uniforms"`
Inputs []string `json:"inputs"`
Tags []string `json:"tags"`
}
Shader represents a GLSL shader template.
type ShaderSummary ¶
type ShaderSummary struct {
Key string `json:"key"`
Name string `json:"name"`
Category string `json:"category"`
Description string `json:"description"`
}
ShaderSummary is a brief listing entry.
func List ¶
func List(category string) []ShaderSummary
List returns all shaders, optionally filtered by category.
func Search ¶
func Search(query string, limit int) []ShaderSummary
Search finds shaders matching a query string.
Click to show internal directories.
Click to hide internal directories.