... shader needed to know the size of a texture you had to pass the size in uniform manually. In WebGL2 you can call. vec2 size = textureSize(sampler, lod).
確定! 回上一頁