mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48:55 +01:00
examples/shader: remove comments
This commit is contained in:
parent
2d6e13cda4
commit
0776a54712
@ -30,7 +30,6 @@ func Fragment(position vec4, texCoord vec2, color vec4) vec4 {
|
|||||||
return imageSrc2UnsafeAt(texCoord)
|
return imageSrc2UnsafeAt(texCoord)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: As the texture size can vary, using srcTexSize here seems wrong (#1431).
|
|
||||||
srcTexSize := imageSrcTextureSize()
|
srcTexSize := imageSrcTextureSize()
|
||||||
xoffset := (4 / srcTexSize.x) * cos(Time*3+pos.y/10)
|
xoffset := (4 / srcTexSize.x) * cos(Time*3+pos.y/10)
|
||||||
yoffset := (20 / srcTexSize.y) * (1.0 + cos(Time*3+pos.y/40))
|
yoffset := (20 / srcTexSize.y) * (1.0 + cos(Time*3+pos.y/40))
|
||||||
|
Loading…
Reference in New Issue
Block a user