Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 09 Apr 2011
Offline Last Active Oct 23 2016 08:32 AM

Posts I've Made

In Topic: Blit depth buffer not working

23 October 2016 - 08:03 AM




or write shader that writes one depth buffer onto another (texture)


then use that again in fragment shader to read the depth value and discard your fragment


like here :P


In Topic: Blit depth buffer not working

23 October 2016 - 05:22 AM

every framebuffer needs renderbuffer and depth test enabled

In Topic: GLSL, Blending with Framebuffer Fragments via Shader?

23 October 2016 - 05:20 AM

+ in modern opengl theres possibility to switch between render tagets COLOR0 COLOR1 something like that you can read and write in one fragment shader to it

In Topic: Draw mixed geometry

23 October 2016 - 05:19 AM

dont call gldrawelements every face you draw


you need to draw the same set of polygons only onvce if you can GL_TRIANGLE_STRIP is cool.



either way you prepare the scene as sending whole buffer to gpu first, then you draw,

In Topic: Fast Approximation to memcpy()

23 October 2016 - 04:59 AM

so how do you transfer it faster?

d = new double[len];
for (int i=0; i < len; i++)
d[i] = s[i];