On Dec 26, 8:52 am, the_edge123 <theedge...@gmail.com> wrote:
> On Dec 26, 11:05 am, bob <b...@coolfone.comze.com> wrote:> What is the best 
> way to learn OpenGL ES 2.0 for Android?
>
> What kind of tutorial are you looking for ? are you a beginner ?
> What did you already find ?

This is really good too:

http://en.wikibooks.org/wiki/GLSL_Programming/Vector_and_Matrix_Operations

Plus, I wrote my own shader:

    private final String mFragmentShader =
        "precision mediump float;\n" +
        "varying vec2 vTextureCoord;\n" +
        "uniform sampler2D sTexture;\n" +
        "void main() {\n" +
        "vec2 center = vec2(0.5,0.5);\n" +
        "float intensity = 1.0 - distance(vTextureCoord,center);\n" +
        "  gl_FragColor = texture2D(sTexture, vTextureCoord) *
vec4(0.0, 1.0, 0.0, 1.0) * intensity;\n" +
        "}\n";


Here's a pic of it:

http://i1190.photobucket.com/albums/z449/m75214/122711002015.jpg

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to