我有以下的渲染管道:
[Input texture that changes every frame] -> [3D content rendered on top of changing texture-> [Post processing shader] -> [Composited texture with post processing applied to input texture + 3Dto 3D content]。我正在考虑将3D内容渲染到屏幕外纹理(
我正在尝试在3D场景中渲染2D文本。2D文本是使用来自TTF字体的freetype加载的,并使用正交投影来渲染,场景使用我的相机使用透视投影。我可以单独渲染文本和3D场景,但是2D文本在一起绘制时不会出现。* scale; // bitshift by 6 to get value in pixels (2^6 = 64) glBindTexture(GL_TEXTURE_2D, 0);
} 这里有两张图片,in this one