A good start to learn OpenGL Shading language. This simple program was built under Ubuntu OS.
The process that OpenGL using shading language is the much similar as D3D. Some difference exists like, pixel shader or fragment shader, the vertex element that pass to the shader program and those registers that could be used by application level. Something could go deeper are how to off-line compile the OpenGL shaders into binary files, how to profile GLSL shader performance on PC(windows or ubuntu), and how to debug them? It seems D3D provide some useful tools to help us do the shader profile & debug work, like the PIX. And OpenGL?
本文介绍了一个简单的OpenGL着色语言程序,在Ubuntu系统下构建。详细解释了OpenGL使用着色语言的过程,与Direct3D的相似之处及差异,如像素着色器、顶点元素和可用寄存器等。探讨了离线编译OpenGL着色器为二进制文件、在PC上(Windows或Ubuntu)进行GLSL着色器性能分析和调试的方法。
850

被折叠的 条评论
为什么被折叠?



