why is metal shader gradient lighter as a SCNProgram applied to a SceneKit Node than it is as a MTKView?

As explained in the Advances in SceneKit Rendering session from WWDC 2016, SceneKit now defaults to rendering in linear space which is required to have accurate results from lighting equations. The difference you see comes from the fact that in the MetalKit case you are providing color components (red, green and blue values) in the … Read more