mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/builtinshader: fix comments
This commit is contained in:
parent
010bf69f5a
commit
a310b7c5bb
@ -80,7 +80,6 @@ func Fragment(position vec4, texCoord vec2, color vec4) vec4 {
|
||||
texelSize := 1 / sourceSize
|
||||
|
||||
// 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
|
||||
p1 := texCoord + texelSize/2 + texelSize/512
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user