X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=render.h;h=e7220b0935a92f3a105eb8382bb8cd9345bfc1ba;hb=4b8aac300ee193cfa12011dfe0238cfe7d7ffce7;hp=44414ea5f63dd2bea0e808b5df4867fd47e7c19e;hpb=f3a2490079baf440238b78e54f4476649eddbda2;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/render.h b/render.h index 44414ea..e7220b0 100644 --- a/render.h +++ b/render.h @@ -16,9 +16,11 @@ #include "shaders/vblend.h" #endif -VG_STATIC void render_water_texture( world_instance *world, camera *cam ); +VG_STATIC void render_water_texture( world_instance *world, camera *cam, + int layer_depth ); VG_STATIC void render_water_surface( world_instance *world, camera *cam ); -VG_STATIC void render_world( world_instance *world, camera *cam ); +VG_STATIC void render_world( world_instance *world, camera *cam, + int layer_depth ); VG_STATIC void render_world_depth( world_instance *world, camera *cam ); #ifndef RENDER_H @@ -156,7 +158,7 @@ framebuffers[] = */ "water_reflection", .link = &gpipeline.fb_water_reflection, - .resolution_div = 3, + .resolution_div = 2, .attachments = { { @@ -181,7 +183,7 @@ framebuffers[] = */ "water_beneath", .link = &gpipeline.fb_water_beneath, - .resolution_div = 4, + .resolution_div = 2, .attachments = { {