如果要转换 gl_FragCoord 以规范化设备空间,则建议创建统一的文件,其中包含视口(viewport)的大小: uniform vec2 u_resolution; // with and height of the viewport
確定! 回上一頁