builtinshader

package
v2.5.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UniformColorMBody        = "ColorMBody"
	UniformColorMTranslation = "ColorMTranslation"
)

Variables

This section is empty.

Functions

func Shader

func Shader(filter Filter, address Address, useColorM bool) []byte

Shader returns the built-in shader based on the given parameters.

The returned shader always uses a color matrix so far.

Types

type Address

type Address int
const (
	AddressUnsafe Address = iota
	AddressClampToZero
	AddressRepeat
)

type Filter

type Filter int
const (
	FilterNearest Filter = iota
	FilterLinear
)

Jump to

Keyboard shortcuts

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