瀏覽代碼

Update shaders_deferred_render.c for GLES3

pull/4705/head
MikiZX1 11 月之前
committed by GitHub
父節點
當前提交
f4d2428e52
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      examples/shaders/shaders_deferred_render.c

+ 2
- 2
examples/shaders/shaders_deferred_render.c 查看文件

@ -294,12 +294,12 @@ int main(void)
rlEnableColorBlend();
EndMode3D();
cp">#ifdef PLATFORM_DESKTOP
o">//#ifdef PLATFORM_DESKTOP
// As a last step, we now copy over the depth buffer from our g-buffer to the default framebuffer.
rlBindFramebuffer(RL_READ_FRAMEBUFFER, gBuffer.framebuffer);
rlBindFramebuffer(RL_DRAW_FRAMEBUFFER, 0);
rlBlitFramebuffer(0, 0, screenWidth, screenHeight, 0, 0, screenWidth, screenHeight, 0x00000100); // GL_DEPTH_BUFFER_BIT
cp">#endif
o">//#endif
rlDisableFramebuffer();
// Since our shader is now done and disabled, we can draw spheres

Loading…
取消
儲存