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 2 of 2

Thread: Blue Bible 5 edition, Toon shader program charter 6 page 286...

  1. #1
    Newbie Newbie
    Join Date
    Apr 2014
    Posts
    2

    Blue Bible 5 edition, Toon shader program charter 6 page 286...

    This Toon shader program, (is inside a package) SB5, refer to Cell lighting shader,
    and also state

    // Incoming for vertex... position and normal

    in vec4 vVertex;
    in vec3 vNormal;

    smooth out float textureCoordinate;

    My question is:
    I been reading (Blue Bible 5)this in and out variables declaration, shader and vertex part of the program, I can't find these variable declaration in the code provide in SB5, none
    of the charter 6 programs used these in and out variables in the cpp, they run and display like should be, to my knowledge level, where those code are locate it, where I can find it?

    Thanks for your time and patient
    learningcurve
    Last edited by learningCurve; 05-05-2014 at 10:27 AM. Reason: spelling

  2. #2
    Newbie Newbie
    Join Date
    Apr 2014
    Posts
    2
    If you come around this question, don't panic is very easy, GLSL is a text old file that, your function can read this as string, that is the reason of the quotation mark in the argument inside the functions ("MoonShader.fp") or ("MoonShader.vp") for fragment or vertex programs as example, other idea to consider , is there is not convention for the extension in this files , but you can read it with a text editor all of them

Posting Permissions

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