基于顶点着色器的雾化因子定义方法  

Definition Method of Fog Factor Based on Vertex Shader

在线阅读下载全文

作  者:王彦[1] 

机构地区:[1]暨南大学信息科学技术学院,广州510632

出  处:《计算机工程》2011年第8期291-292,F0003,共3页Computer Engineering

摘  要:Direct3D提供的线性、指数与指数平方3种雾化参数可便捷地渲染场景,但仅有的参数限制了雾化的多样性。雾化因子在定义参数的公式中起决定作用,顶点着色器则具有单独渲染顶点的能力。为此,结合两者特性,提出一种雾化因子定义方法,并给出一个根据顶点高度、观察距离及雾的密度产生雾化效果的实例。实验结果表明,该方法突破了原有参数的限制,能灵活模拟现实中的雾化环境。Fog effect can enhance the realism and distance of scene.Linear,exponential and exponential-squared fog parameters are enumerated in Direct3D,and they make the real-time rendering rapid and convenient,however,the various transformations of fog are limited by the only three parameters.Fog factor is the key to define the formula of parameters,and vertex shader has the ability to render vertex separately.This paper discusses a way to reconstruct the formula of fog factor by combination of the features above,gives an example,which can implement the fog effect according to the altitude of scene,the distance between observer and scene and the density of fog.Experimental results show that the restriction of original parameters can be improved in this way,and fog effect in reality can be imitated freely.

关 键 词:Direct3D图形系统 顶点着色器 雾化因子 雾化效果 

分 类 号:TP311.5[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象