Hello, i’ve found a script for waterreflection here : Water reflection script , is work fine
with some modification ( like fov ) with the editor.
But, when i load the scene with native c++, my application crash with any error message , if i comment
the line 35 & 36: “Viewport@ rttViewport = Viewport(renderer.viewports[0].scene, reflectionCamera);” , the program run without any error and i dont see any reflection…
i have created in c++ an empty scene, after i loading scene and i grabing camera from previously loaded scene for create viewport. and i don’t known why that dont work.
can anyone help me ?
thanks. and sorry for my bad english.