From 96425dcb796b1f1d2e30d1e2c008129244306fdd Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 30 Jun 2023 23:56:26 +0900 Subject: [PATCH] colorm: use any instead of interface{} --- colorm/colorm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/colorm/colorm.go b/colorm/colorm.go index 601888f5b..5e6d0f2aa 100644 --- a/colorm/colorm.go +++ b/colorm/colorm.go @@ -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