From ad2d8977b6b5e6d55c1991a2294885d954f7f191 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 31 Aug 2023 11:50:15 +0900 Subject: [PATCH] ebiten: update a comment --- gameforui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gameforui.go b/gameforui.go index 4137e803f..888177ade 100644 --- a/gameforui.go +++ b/gameforui.go @@ -45,7 +45,7 @@ func Fragment(position vec4, texCoord vec2, color vec4) vec4 { // rate indicates how much the 4 colors are mixed. rate is in between [0, 1]. // // 0 <= p <= 1/scale: The rate is in between [0, 1] - // 1/scale < p: Don't care. Adjacent colors (e.g. c0 vs c1 in an X direction) should be the same. + // 1/scale < p: 1 scale := imageDstSize()/imageSrc0Size() rate := clamp(p*scale, 0, 1) return mix(mix(c0, c1, rate.x), mix(c2, c3, rate.x), rate.y)