소스 검색

Update shaders_deferred_render.c for GLES3

pull/4705/head
MikiZX1 11 달 전
committed by GitHub
부모
커밋
f4d2428e52
No known key found for this signature in database 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

불러오는 중...
취소
저장