我知道可以使用textureSize(sampler) 来获取包含纹理大小的ivec2。但我不知道为什么这不起作用(它不能编译): #version 120 uniform sampler2D tex; float textureSize; ...
確定! 回上一頁