平行光镜面反射模型

摘要: 即Blinn-Phong 光照模型, 关于此模型的更多信息请google.参照:http://www.lighthouse3d.com/tutorials/glsl-tutorial/directional-lights-ii/源代码:http://download.csdn.net/detail/netrookie/4306817主要看vertex shader:struct MaterialParameters { vec4 emission; vec4 ambient; vec4 diffuse; vec4 specular; float shininess... 阅读全文
posted @ 2012-05-16 17:40 zengqh 阅读(415) 评论(0) 推荐(0)

平行光漫反射模型

摘要: 即Lambert模型,更多关于Lambert的信息请google.参考:http://www.lighthouse3d.com/tutorials/glsl-tutorial/directional-lights-i/例子的源代码:http://download.csdn.net/detail/netrookie/4306606glsl vertex shader:struct MaterialParameters { vec4 emission; vec4 ambient; vec4 diffuse; vec4 specular; float shininess... 阅读全文
posted @ 2012-05-16 16:13 zengqh 阅读(325) 评论(0) 推荐(0)

glsl teapot 简单演示

摘要: http://download.csdn.net/detail/netrookie/4305918效果: 阅读全文
posted @ 2012-05-16 13:39 zengqh 阅读(132) 评论(0) 推荐(0)

glsl学习之cube

摘要: http://download.csdn.net/detail/netrookie/4305894本次DEMO使用了opengl 3.x, 弃用了固定管线API,使用GLM作为矩阵的数据运算库。这个很简单的例子,我用了三个小时才做完,也可以说是一个简单的opengl 3 框架吧。 阅读全文
posted @ 2012-05-16 13:36 zengqh 阅读(208) 评论(0) 推荐(0)