Results 1 to 3 of 3

Thread: Why is needed a Cg shader?

  1. #1
    Member Contributor
    Join Date
    Apr 2002
    Location
    Spain
    Posts
    63

    Why is needed a Cg shader?

    I've been programming a little with OpenGL, but I never had to code a "vertex shader" neither I don't understand why, before Cg was released, it was a task only suitable for people who feels comfortable programming in assembly.

    What is a vertex shader? Why only in assembly?

    Thanks for your replies.

  2. #2
    Guest

    Re: Why is needed a Cg shader?

    I'd also like to know what the real benny is of Vertex Shaders, et al.

    Is it fundamentally so that each pixel is lit more correctly?

    Baffled in Beantown...

  3. #3
    Super Moderator OpenGL Guru imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    Re: Why is needed a Cg shader?

    There is a lot of setup information required for fragment shaders for example (tangent space transform of various vectors for example). There are also things like animations for skinning of objects and pretty much any transformation and lighting you can come up with per vertex that doesn't match the standard OpenGL matrix transformations and lighting.

Similar Threads

  1. Replies: 4
    Last Post: 08-03-2017, 01:01 PM
  2. Some clarification needed regarding geometry shader
    By Lee_Jennifer_82 in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 04-02-2016, 03:06 AM
  3. Replies: 5
    Last Post: 06-23-2013, 01:13 AM
  4. Advice needed - regular texturing vs. pixel shader
    By anopgl in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-17-2011, 07:44 AM
  5. Help needed
    By in forum OpenGL: User Software
    Replies: 0
    Last Post: 02-07-2003, 04:07 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