Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SceneKit – material's colorBufferWriteMask

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.

like image 478
Nghia Bui Van Avatar asked Apr 25 '26 19:04

Nghia Bui Van


1 Answers

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.

like image 68
Nghia Bui Van Avatar answered Apr 28 '26 08:04

Nghia Bui Van