Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: vertex shader without fragment shader

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2000
    Location
    Greece
    Posts
    29

    vertex shader without fragment shader

    Hi,
    Does anybody know if I can create a shader program that links only to a vertex shader, without having to specify a fragment program? I know that this can be done with a vertex program (assembly) but I have failed to do that with GLSL (the fragment color becomes black)

    All I want is to add some vertex noise and use the fixed opengl pixel pipeline for the shading of the fragment. Is there an equivalent to the gl_Position=ftransform() for the fragment????

    Any help would be appreciated

  2. #2
    Junior Member Regular Contributor execom_rt's Avatar
    Join Date
    Jul 2000
    Location
    Canada
    Posts
    237

    Re: vertex shader without fragment shader

    You can write GLSL program without fragment shader. It's working nicely (tested on a Geforce 3).

    On ATI, it's another problem, there is few bugs when doing that.

  3. #3
    Member Regular Contributor
    Join Date
    Mar 2003
    Location
    Spain
    Posts
    269

    Re: vertex shader without fragment shader

    you can do that perfectly, but you must remember to write the varying variables that will be used in the next fixed process (gl_TexCoord[], gl_Color, etc)
    "I don't know... with a casual fly"

  4. #4
    Junior Member Newbie
    Join Date
    Sep 2000
    Location
    Greece
    Posts
    29

    Re: vertex shader without fragment shader

    ok, thanks alot guys

  5. #5
    Junior Member Regular Contributor
    Join Date
    Feb 2004
    Location
    Los Angeles, CA
    Posts
    154

    Re: vertex shader without fragment shader

    As far as I know only NVIDIA has officially supported vertex shaders on GF3/4 range of cards meaning that ATI has no plan to implement such thing on pre R300 hardware.
    But then again I've been wrong in the past and will be in the future

Posting Permissions

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