Skip to content

1.1.2

Compare
Choose a tag to compare
@pissang pissang released this 26 Mar 12:15
· 126 commits to master since this release

New Features

  • [GBuffer] Add velocity buffer for usage of motion blur and temporal reprojection. Use GBuffer#enableTargetTexture4 to enable rendering of velocity buffer, use GBuffer#getTargetTexture4 to get the buffer. In the shader code velocity can be extracted like following:
vec4 texel = texture2D(velocityTex, v_Texcoord); 
// If texel has valid velocity info
if (texel.a > 0.0) {
  vec2 vel = texel.rg * 2.0 - 1.0;
}