mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2026-04-23 00:07:15 +08:00
colorm: use any instead of interface{}
This commit is contained in:
+2
-2
@@ -146,12 +146,12 @@ func (c *ColorM) ReadElements(body []float32, translation []float32) {
|
||||
c.affineColorM().Elements(body, translation)
|
||||
}
|
||||
|
||||
func uniforms(c ColorM) map[string]interface{} {
|
||||
func uniforms(c ColorM) map[string]any {
|
||||
var body [16]float32
|
||||
var translation [4]float32
|
||||
c.affineColorM().Elements(body[:], translation[:])
|
||||
|
||||
uniforms := map[string]interface{}{}
|
||||
uniforms := map[string]any{}
|
||||
uniforms[builtinshader.UniformColorMBody] = body[:]
|
||||
uniforms[builtinshader.UniformColorMTranslation] = translation[:]
|
||||
return uniforms
|
||||
|
||||
Reference in New Issue
Block a user