OpenGL Shading Language

本文介绍了一个简单的OpenGL着色语言程序,在Ubuntu系统下构建。详细解释了OpenGL使用着色语言的过程,与Direct3D的相似之处及差异,如像素着色器、顶点元素和可用寄存器等。探讨了离线编译OpenGL着色器为二进制文件、在PC上(Windows或Ubuntu)进行GLSL着色器性能分析和调试的方法。

shader_screen_shot-300x225 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?

转载于:https://www.cnblogs.com/open-coder/archive/2012/08/24/2653548.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值