opengl-deferred/types/material/values.go

17 lines
254 B
Go
Raw Normal View History

2024-12-17 01:59:59 +00:00
package material
import "git.tek.govt.hu/dowerx/opengl-deferred/types/shader"
type Value interface {
Apply(s *shader.Shader)
}
type IntValue struct {
Name string
Value int32
}
func (v IntValue) Apply(s *shader.Shader) {
s.Int(v.Name, v.Value)
}