Direct3D9的学习历程二:Direct3D9中的灯光
来源:互联网 发布:知乎live的图标 编辑:程序博客网 时间:2024/04/28 23:44
Direct3D supports three light source models: directional lights,point lights, and spot lights. Light sources emit three types of light:ambient light, diffuse light, and specular light.
Direct3D支持三种光源模型:方向光源,点光源,聚光灯光源。这些光源可以发射出三种光:环境光,漫反射光,镜面反射光。
The material of a surface defines how light interacts with the sur-face that it strikes (that is, how much light is reflected andabsorbed, thus determining the color of the surface).
一个表面的材质被定义为当一束光穿过这个表面时会产生什么样的效果。(多少光被反射和多少光被吸收是取决于该表面的颜色)
Vertex normals are used to define the orientation of a vertex. They are used so that Direct3D can determine the angle at which a ray of light strikes the vertex. In some cases, the vertex normal is equal to the normal of the triangle that it forms, but this is not usually the case when approximating smooth surfaces (e.g., spheres,cylinders).
顶点法向量常常被定义为一个顶点的方向。Direct3D使用它们来决定一束光穿过顶点的角度。在某些情况下,顶点法向量就等于它所构成的三角形面的法向量,但是在曲面上这种情况并不是常常一致的。(如球体,圈体)
- Direct3D9的学习历程二:Direct3D9中的灯光
- Direct3D9的学习历程三:Direct3D9中的纹理贴图
- Direct3D9的学习历程四:Direct3D9中的颜色混合
- Direct3D9的学习历程一:熟悉Direct3D9渲染的运行过程
- Direct3D9之二学习资源篇
- Direct3D9中的纹理演示
- Direct3D9 中的Gamma矫正
- Direct3D9 中的Gamma矫正
- Direct3D9 中的Gamma矫正
- Direct3D9游戏编程中的颜色
- Direct3D10 和 Direct3D9 的版本
- Direct3D9的扩展纹理格式
- Direct3D9的扩展纹理格式
- direct3d9 渐变的窗口代码
- Direct3D9初级教程
- Direct3D9初始化
- C# Direct3D9开发实例二:树木成林
- D3D Enumerations Direct3d9的全部枚举类型
- 抗日情绪!!爱国热情??
- 初学数据结构即受挫
- 单片机的广泛选择
- 在Frame之间传递参数
- 英文前缀、后缀及其他
- Direct3D9的学习历程二:Direct3D9中的灯光
- 如何使用Google解决问题
- 页面内文章格式编辑器插件
- CSDN的BLOG真垃圾啊
- e书
- WebForm中DataGrid的20篇经典文章
- 网站地址
- DataGrid添加事件句柄
- ASP.NET中如何动态生成模板列