Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些由一组顶点/法线/索引定义的 3D 形状。我希望以半透明的方式渲染一些对象。有些物体有纹理,有些则没有。
我正在使用 GLKit 在 iOS 上进行开发。请告诉我怎样才能达到效果?
在片段着色器中,只需将 设置为gl_Fragcoloralpha 值小于 1 的颜色。
gl_Fragcolor