Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: fakhir

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    2,268

    GL ES: Fragment shader optimization

    Summary:
    I get FPS slowdown as soon as I try to tint the sprites (i.e: multiply texture with color in the fragment shader)

    Details:

    Hardware: iPod touch 4

    Using 64x64 png texture containing...
  2. Replies
    5
    Views
    1,096

    Yes, it is rendering correctly in the Y direction...

    Yes, it is rendering correctly in the Y direction now, but still flipping the X axis. Is it possible to somehow change the glTexCoords in the following code in order to rotate/flip the texture:

    ...
  3. Replies
    5
    Views
    1,096

    I am using DevIL to load images. When I set +ve y...

    I am using DevIL to load images. When I set +ve y downwards the image renders perfectly:


    glOrtho(0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 1, -1);


    Setting the +ve y direction upwards inverts the...
  4. Replies
    5
    Views
    1,096

    Textures showing inverted (upside down) !

    Hi,

    I am setting the coordinates having +ve y axis upward direction:


    glOrtho(0, SCREEN_WIDTH, 0, SCREEN_HEIGHT, 1, -1);


    But the following code is rendering the texture upside down...
Results 1 to 4 of 4