文件名称:shiyan4
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:768byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
光照显示
材质与光源的关系例程
以上程序运行结果是一个蓝色的球,其中高光部分仍为上一例的亮紫色。从上可看出,球漫反射光的结果是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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.