void Update() { if (Time.timeSinceLevelLoad < 1f) { water_input_drawer_.putPoint(2f, 2f, -0.5f, 0.1f); } water_input_drawer_.renderUpdate(0 /* front */); water_input_drawer_.render(0 /* front */); wave_equation_.render(Time.time, wave_equation_material_, water_input_drawer_.getRenderTexture()); surface_material_.SetTexture("_MainTex", wave_equation_.getLatestRenderTexture()); wave_equation_.bind(surface_material_); }
public RenderTexture getWaterInput() { return water_input_drawer_.getRenderTexture(); }