my fucking fingers
[carveJwlIkooP6JGAAIwe30JlM.git] / render.h
index b6172283121632b9d18ac0ac6395e300b8c5341f..41aeef241ef529b7bc33522f8cb1dea880b3d067 100644 (file)
--- a/render.h
+++ b/render.h
@@ -36,7 +36,8 @@ VG_STATIC struct pipeline{
 
    framebuffer *fb_main,
                *fb_water_reflection,
-               *fb_water_beneath;
+               *fb_water_beneath,
+               *fb_workshop_preview;
    int ready;
 
    float view_render_scale,
@@ -175,6 +176,27 @@ framebuffers[] =
             .attachment     = GL_DEPTH_STENCIL_ATTACHMENT
          }
       }
+   },
+   {
+      "workshop_preview",
+      .link = &gpipeline.fb_workshop_preview,
+      .resolution_div = 0,
+      .fixed_w = 504, .fixed_h = 336,
+      .attachments = 
+      {
+         {
+            "colour", k_framebuffer_attachment_type_texture,
+            .internalformat = GL_RGB,
+            .format         = GL_RGB,
+            .type           = GL_UNSIGNED_BYTE,
+            .attachment     = GL_COLOR_ATTACHMENT0
+         },
+         {
+            "depth_stencil", k_framebuffer_attachment_type_renderbuffer,
+            .internalformat = GL_DEPTH24_STENCIL8,
+            .attachment = GL_DEPTH_STENCIL_ATTACHMENT
+         }
+      }
    }
 };