Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我发现我的片段着色器仅限于 OpenGL ES 视口的像素尺寸。
我可以创建一个“屏幕外片段着色器”或具有更多渲染像素的渲染环境吗?
片段着色器采用顶点着色器之后的光栅化创建的值。您需要做的是创建一个纹理(非常大的纹理),将其绑定到 FBO(您可以查看 OGL 的文档,它不是很复杂)并渲染到它。在离屏渲染之前,使用
glViewPort
定义渲染宽度和高度的函数。在这个离屏渲染之前,使用你的片段着色器,一切都会正常工作。祝你好运 :)