I'm using SCNMaterial and set it diffuse.contents using surface shader modifier. I want to log some color values that is being fed to shader but I couldn't find to do that. Is there a way I can read and print _surface.diffuse.rgba after the execution of the shader modifier?
We show a video with green background on a SCNPlane and we want this to know the exact rendered color of that green. It's created as (0,220,0,1) but somehow it's read by shader modifier as different green and we can't mask it out as we can mask out full green (0,255,0,1) bg videos.