martinsh watersurface render to texture editing

Hi! I know that in single render to texture I can, for example, make some objects before rendering invisible, than make them visible again so in the rendered texture the objects arent visible, but they’re in the scene render. I wanna do something similar with martinsh watersurface 1.1 shader, but - when I try to add something to the code watertexture.py, the water doesn’t render at all or renders as a chekers. How to manipulate with that stuff there?

Come on! All I wanna do is to modify something under scene(scene = bge.logic.getCrrentScene()) while rendering refraction and after that restore it. How to do it in martinsh watershader?

Solved myself!:wink: