title: Andengine set alpha for each pixel in sprite
body: <p>I have a one big Sprite on the Scene - for example 200x200 and in the app i have an array[200][200] in which i store 0 or 1 for each pixel in big sprite.</p>
  
  <p>I want to draw one more textured sprite (for example 10x10) above existing one, but i want to calculate for eache pixel in new sprite if it needs to draw it on this scene depends on provided array (if in corresponding position of the pixel in new sprite in array is '1' - i need to draw this pixel, if '0' - i don't want to draw it (maybe set alpha = 0)).</p>
  
  <p>I think i can use fragment shader for each of new sprites, but i can't understand how to provide array data to the shader to calculate color for each pixel.
  I think also can use fragment shader for the whole scene (if render to texture).</p>
  
  <p>I am quite new in opengl and can't figure out in what way to move.</p>
  
  <p>When i create resources for the scene - i try to create my mask:</p>
  
  <pre><code>    mask = new float[512*512*4];
      for (int i = 0; i &lt; mask.length; i++)
      {
          mask[i] = 2f;
      }
  
      GLES20.glActiveTexture(GLES20.GL_TEXTURE1);
      GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, 1029384756);
      GLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 1, GLES20.GL_RGBA, 512, 512, 0, GLES20.GL_RGBA, GLES20.GL_FLOAT, FloatBuffer.wrap(mask));
      GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);
      GLES20.glActiveTexture(GLES20.GL_TEXTURE0);
  </code></pre>
  
  <p>Then when i draw new item on scene i use shader:</p>
  
  <pre><code>    setShaderProgram(ShaderProgram.getInstance());
  
      GLES20.glActiveTexture(GLES20.GL_TEXTURE1);
      GLES20.glUniform1i(RadialBlurExample.RadialBlurShaderProgram.sUniformMask, GLES20.GL_TEXTURE1);
      GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, 1029384756);
      GLES20.glActiveTexture(GLES20.GL_TEXTURE0);
  </code></pre>
  
  <p>But i can't see new item on scene (maskVal is &lt;0.5).</p>
  
  <p>I try to find working way to pass array as a texture but i can't find it.</p>