NV Oblique Frustum Clipping demo
2016-07-19 10:10
435 查看
Direct3D Demo (.zip) ( 541 KB)
OpenGL Demo (.zip) ( 350 KB)
Oblique Frustum Clipping
This example aligns the hardware near clip plane with an aribitraily oriented, user specified plane. The result is that you get an arbitrary near clip plane
for no cost, since depth values below zero will be clipped by the hardware. The projection matrix is modified to shear the Z values to align with the user specified clip plane.
Because the projection matrix is modified, the depth values are different. This is fine for uses like render-to-texture or rendering mirror or portal views, but it cannot be arbitrarily enabled and disabled within a scene the way you can with user clipping
planes.
Demos for both DirectX and OpenGL are available as attachments.
Please note that the 'x' key toggles between geometry clip plane and projection matrix near clip plane.
相关文章推荐
- Oblique View Frustum
- 关于UE4.12打包后无法切换到VR模式的问题
- iOS--UI之导航控制器与标签控制器
- 第2条:遇到多个构造器参数时要考虑用构造器
- 常用UI布局
- hdu 3519 Lucky Coins Sequence 矩阵快速幂
- js中return false,return,return true的用法及区别
- 1.IOS>UI>storyboard
- UIScrollView上有3个表格,滑动到第2,3个表格,然后点击表格push下一页,UIScrollView显示回到第一个表格
- APUE 5-15 观察内存流的写入操作
- VS2010打开工程.csproj文件报错:无法计算“...”处的属性表达式“$([MSBuild]::ValueOrDefault('$(VCTargetsPath)','$(MSBuildExte
- APUE 5-13 mkstemp函数的应用
- APUE 5-11 对各个标准I/O流打印缓冲状态信息
- APUE 4-22 递归降序遍历目录层次结构,并按文件类型计数
- dedecms5.7安装百度(ueditor)编辑器的方法
- Median Value
- 在T-SQL语句中访问远程数据库(openrowset/opendatasource/openquery)
- APUE 4-3 对每个命令行参数打印文件类型
- APUE 3-5 将标准输入复制到标准输出
- APUE 3-11 对于指定的描述符打印文件标志