Knowing the  GLSL version of your GPU
Sponsored Links
This presentation is the property of its rightful owner.
1 / 8

Knowing the GLSL version of your GPU glGetString (GL_SHADING_LANGUAGE_VERSION) PowerPoint PPT Presentation


  • 118 Views
  • Uploaded on
  • Presentation posted in: General

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 );.

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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


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);

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;

}

}


GLSL 1.2 or older 

Skeleton Code provide on ICG course web

Tutorial for GLSL 1.2

http://www.lighthouse3d.com/tutorials/glsl-tutorial/


HW2 requirement


Flat shading in OpenGL 3.0?


Strongly recommend to implement some transformations!

The difference between the shaders can be easily shown


GLSL quick reference guide

http://www.opengl.org/documentation/glsl/


  • Login