3d texture

please have a look here maybe it could work for you…
How to render/set tinted glass material in Grasshopper?