Project

General

Profile

« Previous | Next » 

Revision f89f791a

Added by Leszek Koltunski about 7 years ago

Preliminary support for MIPMAP levels of the postprocessing buffers. (doesn't work yet)

View differences:

src/main/res/raw/blur_vertex_shader.glsl
30 30
#endif
31 31

  
32 32
uniform float u_Depth;    // distance from the near plane to render plane, in clip coords
33
uniform float u_Scale;
33 34

  
34 35
//////////////////////////////////////////////////////////////////////////////////////////////
35 36

  
36 37
void main()
37 38
  {
38
  v_TexCoordinate = a_TexCoordinate;
39
  v_TexCoordinate = u_Scale*a_TexCoordinate;
39 40
  gl_Position     = vec4(2.0*a_Position,u_Depth,1.0);
40 41
  }

Also available in: Unified diff