X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=render.h;h=f17018bb2e767006dbd6701c355a7f5e9dd5b33b;hb=6e9b9e12e1f9da0419cd4d89707c7d599512d3b8;hp=91fe39ea0516585ee37cafecea6ba710e53aca6a;hpb=56f320d8ce6e8997370ec8e02fe50ca2d07b67f0;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/render.h b/render.h index 91fe39e..f17018b 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 @@ -186,8 +188,8 @@ framebuffers[] = { { "colour", k_framebuffer_attachment_type_colour, - .internalformat = GL_RGBA, - .format = GL_RGBA, + .internalformat = GL_RED, + .format = GL_RED, .type = GL_UNSIGNED_BYTE, .attachment = GL_COLOR_ATTACHMENT0 },