internal/ui: remove unnecessary comments

This commit is contained in:
Hajime Hoshi 2022-10-13 12:28:32 +09:00
parent 30088cf602
commit c23af8fa3a

View File

@ -44,7 +44,6 @@ func Fragment(position vec4, texCoord vec2, color vec4) vec4 {
halfScaledTexelSize := texelSize / 2 / scale
// Shift 1/512 [texel] to avoid the tie-breaking issue.
// As all the vertex positions are aligned to 1/16 [pixel], this shiting should work in most cases.
pos := texCoord
p0 := pos - halfScaledTexelSize + (texelSize / 512)
p1 := pos + halfScaledTexelSize + (texelSize / 512)