Stained Glass Window material

Sorry for posting in such an old topic, but it still shows up when looking for a stained glass methods in search engine. Currently I’m really interested in the first image from this topic - how is it possible to create such stained light rays? I know most light rays in UE4 are just a model with proper material (with exception of Light Shafts from a Directional Light), but I can’t find anything about stained rays anywhere. Even here PlatypusGreen mentions only that “The material I currently have created has finally got the colour of the glass to effect the light rays coming through it.” Could someone please explain this in more detail?