builtinshader

package
v2.7.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UniformColorMBody        = "ColorMBody"
	UniformColorMTranslation = "ColorMTranslation"
)
View Source
const AddressCount = 3
View Source
const FilterCount = 2

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