Results 1 to 2 of 2

Thread: Changing color in each rendering loop in open gl es 2.0

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    1

    Changing color in each rendering loop in open gl es 2.0

    Hi,

    I want to change the color of the drawn element(line) in each rendering loop.
    Please let me know what to do in fragment shader and other parts of the code.
    As I am a newbee, plz forgive me for such a silly question.

    Thanks,
    Biplab

  2. #2

    Re: Changing color in each rendering loop in open gl es 2.0

    You can take uniform variable in fragment shader and assign that to gl_Fragcolor. Now in your draw function loop, change your local variable as per your color requirement and assign value of this local variable to uniform variable.

Similar Threads

  1. Open GL and Open VG rendering on the same EGL surface
    By ajay in forum Cross API and window system integration
    Replies: 4
    Last Post: 01-15-2009, 01:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •