OpenGL ES 2.0 Rendering with a Texture

Posted by Kyle on Stack Overflow See other posts from Stack Overflow or by Kyle
Published on 2010-05-05T07:53:31Z Indexed on 2010/05/05 7:58 UTC
Read the original article Hit count: 313

Filed under:
|
|
|

The iPhone SDK has an example of using ES 2.0 with a set of (Vertex & Fragment) GLSL shaders to render a varying colored box. Is there an example out there on how to render a simple texture using this API? I basically want to take a quad, and draw a texture onto it.

The old ES 1.1 API's don't work at all anymore, so I'm needing a bit of help getting started. Most shader references talk mainly about advanced shading topics, but I'm really unsure about how to tell the shader to use the bound texture, and how to reference the UV's.

Thanks!

© Stack Overflow or respective owner

Related posts about glsl

Related posts about shaders