why dont u dive into the sources of those 2 shaders, and desect them then take the parts you need !
sry im low on contribution but i think those 2 shaders are fairly easy selfexplanatory, and you would learn more by doing it that way !
(dont wanna come off as a prick ! no harm intended )
Although the cube map seems to move a heck of a lot and really fast when i walk past, doesn’t really behave like glass maybe a planer 2d reflection would work better?)