SceneKit – material's colorBufferWriteMask

 ̄綄美尐妖づ 提交于 2019-12-10 20:22:42

问题


I'm working with SceneKit (swift) and found colorBufferWriteMask parameter that working with SCNMaterial. But it's still working with iOS11+.

So, have anyone know a parameter like colorBufferWriteMask that working with iOS9+?

Thanks.


回答1:


After research about scenekit, i found a solution. The first, i create a SCNNode (A) that is setting with opacity = 0.000001 and renderingOrder = -1. The second, i create other SCNNode (B) that setting with renderingOrder = 100 and add A.

So, right now, Part of B will be hidden, and this is okie like colorBufferWriteMask.

Thanks.



来源:https://stackoverflow.com/questions/47863430/scenekit-materials-colorbufferwritemask

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!