examples/shader: remove comments

This commit is contained in:
Hajime Hoshi 2023-04-13 14:10:34 +09:00
parent 2d6e13cda4
commit 0776a54712

View File

@ -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))