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 (https://cyos.babylonjs.com/#7FX5CA#1) 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 (https://playground.babylonjs.com/#56W0IX#1)

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: https://playground.babylonjs.com/#56W0IX#2

2 Likes