internal/builtinshader: fix comments

This commit is contained in:
Hajime Hoshi 2022-10-10 13:14:37 +09:00
parent 010bf69f5a
commit a310b7c5bb

View File

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