cycles nodes pbr that exports to upbge?

is it possible to code a pathway to export cycles pbr nodes to glsl nodes in upbge?

upbge has things like realtime cube map reflections, refraction, and geometry instancing…

basically it would need to convert metalness and roughness to a reflection mask and a mip map based texture blend thing for roughness…
(or something smarter*)