Results 1 to 2 of 2

Thread: glClearColor in GLSL

  1. #1
    Senior Member Regular Contributor
    Join Date
    Jul 2003
    Location
    Bangalore, Karnataka, India
    Posts
    123

    glClearColor in GLSL

    Dear all,

    I want to clear the frame buffer with a specified color using the fragment shader. How is it possible. I tried using gl_FragColor.
    But it is not working

    Please help

    Thanks in advance
    RAJESH.R

  2. #2
    Senior Member OpenGL Pro Zengar's Avatar
    Join Date
    Sep 2001
    Location
    Germany
    Posts
    1,931

    Re: glClearColor in GLSL

    Draw a screen-sized opaque quad with a fragmnet shader enabled.

Similar Threads

  1. glClearColor and ARR[]
    By Olexandr in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-18-2013, 01:15 AM
  2. Can't set glClearColor alpha to 0
    By PP2005 in forum OpenGL: Basic Coding
    Replies: 14
    Last Post: 12-06-2010, 03:14 PM
  3. glClearColor
    By darren in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 02-27-2003, 01:25 PM
  4. glClearColor
    By guju in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-20-2002, 12:22 PM
  5. glClearColor with Gradient
    By rks in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 01-02-2002, 04:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean