title: Android OpenGL ES 2.0:How to zoom texture with depth map?
body: <p>Android OpenGL ES 2.0, I bind bitmap and depth map bitmap to <code>fragment_shader.glsl</code>,</p>
  <pre><code>precision mediump float;
  
  uniform sampler2D sDepth;
  uniform sampler2D sTexture;
  uniform float time;
  
  varying vec2 varyTexCoord;
  
  void main() {
      vec4 depth=texture2D(sDepth, varyTexCoord);    
      gl_FragColor=texture2D(sTexture, varyTexCoord);
  }
  </code></pre>
  <p><code>sTexture</code> : original bitmap</p>
  <p><code>sDepth</code>: depth map(ARGB_8888, 0~255, 0:far 255:near)</p>
  <p>vertex_shader.glsl</p>
  <pre><code>attribute vec4 vPosition;
  attribute vec2 vTexCoord;
  uniform mat4 vMatrix;
  
  varying vec2 varyTexCoord;
  
  void main() {
      gl_Position = vPosition;
      varyTexCoord = vTexCoord;
  }
  </code></pre>
  <p>now I want to make parallax effect :According to the depth of field value, zoom in the image, the zoom in of the near area is higher than that of the far area, creating parallax effect.
  Can you give us some ideas? Thank you.</p>