Norway


I am trying to achieve for a mesh in on iOS. I am confused by the documentation as there seem to be multiple ways to make a mesh :

  • Use channel of UIColor via SCNMaterial.(|emission|ambient|...).contents
  • Use SCNMaterial.transparency (a CGFloat from 0.0 to 1.0)
  • Use SCNMaterial.transparent (another SCNMaterialProperty)
  • Use SCNNode.opacity (a CGFloat from 0.0 (fully transparent) to 1.0 (fully opaque))

Questions:

  • Is there any detailed description of the color math somewhere?
  • What is the common way to add transparency (per object, not via textures/per vertex)?
  • How does SCNMaterial.transparent interact with the other color channels such as diffuse?
  • Is it true that alpha channel must be premultiplied as suggested in https://stackoverflow.com/a/30195543/278842?



Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here