I am collaborating with someone making a water pack for Godot. I need a way to create a proper viewport texture in the editor for reflections in editor.
var viewport = Viewport.new()
#setup viewport and add it to node (this one)
material_override.set_shader_param('reflect_tex', viewport.get_texture())
The problem is that this seems to only work on run-time, but not in the editor!
Am I missing something? I already tried making the material local to the scene, but that didn't seem to work.