Issue adding (working) custom shader to scene from CYOS

I have a shader developed in another application i am trying to port over. I have it working in CYOS ( once i replace the uniforms with constants, but when I copy/paste the exported code to Playground the texture is displayed as just white, and I cannot figure out why (

side note - i was having trouble with macros via #define statements, are those supported?

I guess you intent to use it with blending so you need to set the material accordingly with needAlphaBlending: