iOS:设置 OSG 绘制背景为透明

在 OSG 3.2.1 中需要设置 OSG 绘制背景为透明的时候,需要做出如下设置:

1、设置 windata:

2、设置 trails:

3、设置 camera 透明色:

完整示例如下:

参考材料:
[1] http://forum.openscenegraph.org/viewtopic.php?t=9472
[2] http://stackoverflow.com/questions/1394934/iphone-layering-a-transparent-opengl-view-on-top-of-a-uiview

Add a Comment

您的电子邮箱地址不会被公开。 必填项已用*标注