mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
parent
eea11ba6cb
commit
3bb21282af
@ -71,7 +71,7 @@ func Fragment(position vec4, texCoord vec2, color vec4) vec4 {
|
|||||||
p0 := texCoord - texelSize/2 + texelSize/512
|
p0 := texCoord - texelSize/2 + texelSize/512
|
||||||
p1 := texCoord + texelSize/2 + texelSize/512
|
p1 := texCoord + texelSize/2 + texelSize/512
|
||||||
|
|
||||||
{{if eq .Address .AddressRpeat}}
|
{{if eq .Address .AddressRepeat}}
|
||||||
p0 = adjustTexelForAddressRepeat(p0)
|
p0 = adjustTexelForAddressRepeat(p0)
|
||||||
p1 = adjustTexelForAddressRepeat(p1)
|
p1 = adjustTexelForAddressRepeat(p1)
|
||||||
{{end}}
|
{{end}}
|
||||||
|
Loading…
Reference in New Issue
Block a user