I always pass the texture size as shader constants, but that's just because I did not know about textureSize, which I found when googling ...
確定! 回上一頁