文件名称:shiyan4
- 所属分类:
- OpenGL
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- lan c******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
光照显示
材质与光源的关系例程
以上程序运行结果是一个蓝色的球,其中高光部分仍为上一例的亮紫色。从上可看出,球漫反射光的结果是mat_diffuse[]与light_diffuse[]中的三个颜色分量值相乘,即 (0.0*1.0,0.0*1.0,0.8*1.0,1.0*1.0)=(0.0,0.0,0.8,1.0),所以球大部分呈现蓝色。-Light shows the relationship between materials and light sources for more than routine run result is a blue ball, which is still on the case of high light some of the bright purple. As can be seen from the ball a result of diffuse reflected light mat_diffuse [] and light_diffuse [] in the sub-value multiplied by three colors, namely, (0.0* 1.0,0.0* 1.0,0.8* 1.0,1.0* 1.0) = ( 0.0,0.0,0.8,1.0), so the ball most of the blue color.
材质与光源的关系例程
以上程序运行结果是一个蓝色的球,其中高光部分仍为上一例的亮紫色。从上可看出,球漫反射光的结果是mat_diffuse[]与light_diffuse[]中的三个颜色分量值相乘,即 (0.0*1.0,0.0*1.0,0.8*1.0,1.0*1.0)=(0.0,0.0,0.8,1.0),所以球大部分呈现蓝色。-Light shows the relationship between materials and light sources for more than routine run result is a blue ball, which is still on the case of high light some of the bright purple. As can be seen from the ball a result of diffuse reflected light mat_diffuse [] and light_diffuse [] in the sub-value multiplied by three colors, namely, (0.0* 1.0,0.0* 1.0,0.8* 1.0,1.0* 1.0) = ( 0.0,0.0,0.8,1.0), so the ball most of the blue color.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
shiyan4.cpp