1 / 8

Knowing the GLSL version of your GPU glGetString (GL_SHADING_LANGUAGE_VERSION)

Knowing the GLSL version of your GPU glGetString (GL_SHADING_LANGUAGE_VERSION). GLSL 1.20 or later?. GLSL 1.3 or Later . Great Tutorial for OpenGL 3.0 or later: http:// www.opengl-tutorial.org. GLFW keyboard call back. glfwSetCharCallback ( My_Key_Callback );.

julian-snow
Download Presentation

Knowing the GLSL version of your GPU glGetString (GL_SHADING_LANGUAGE_VERSION)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Knowing the GLSL version of your GPU glGetString(GL_SHADING_LANGUAGE_VERSION) GLSL 1.20 or later?

  2. GLSL 1.3 or Later  Great Tutorial for OpenGL 3.0 or later: http://www.opengl-tutorial.org

  3. GLFW keyboard call back glfwSetCharCallback(My_Key_Callback); void My_Key_Callback(int character, int action) { if (action == GLFW_PRESS) { switch (character) { case '1': light_switch[0] = (light_switch[0]+1)%2; break; case 'f': shader_mode = 'f'; break; default: break; } }

  4. GLSL 1.2 or older  Skeleton Code provide on ICG course web Tutorial for GLSL 1.2 http://www.lighthouse3d.com/tutorials/glsl-tutorial/

  5. HW2 requirement

  6. Flat shading in OpenGL 3.0?

  7. Strongly recommend to implement some transformations! The difference between the shaders can be easily shown

  8. GLSL quick reference guide http://www.opengl.org/documentation/glsl/

More Related