摘要
以往动态立体环境映射需要立体纹理的每个面都单独进行渲染,这种方式增加渲染PasS,降低帧率。该文用多渲染目标及几何着色器技术解决这个问题。渲染目标数组允许多渲染目标与深度缓冲同时激活。将送入几何着色器的每个三角形都生成6个三角形,并分别送到不同渲染目标上。用1次绘制完成以往6次绘制的任务,在不增加明显消耗的情况下,提高了帧率。
Traditionally, dynamic cubic environment maps are created by obtaining a surface for each face of a cube texture. This method, while it works, increases the number of rendering passes, greatly reducing the application frame rate. The pager applications can use geometry shaders and render target arrays to alleviate this problem, a render target array allows multiple render target and depth stencil textures to be active simultaneously. All six faces of the cube can be rendered together, increased the application frame rate.
出处
《中国电子商务》
2012年第22期134-135,共2页
E-commerce in China
基金
2012年度广西高等学校科研项目《可编程图形硬件加速的复杂场景实时绘制研究》,项目编号:201204LX626.
关键词
立体环境映照
多渲染目标
几何着色器
输出流
Cubic environment maps Multipe render target Geometry shader Output stream