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

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


  • 109 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

Knowing the GLSL version of your GPU

glGetString(GL_SHADING_LANGUAGE_VERSION)

GLSL 1.20 or later?


Knowing the glsl version of your gpu glgetstring gl shading language version

GLSL 1.3 or Later 

Great Tutorial for

OpenGL 3.0 or later:

http://www.opengl-tutorial.org


Knowing the glsl version of your gpu glgetstring gl shading language version

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;

}

}


Knowing the glsl version of your gpu glgetstring gl shading language version

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

HW2 requirement


Knowing the glsl version of your gpu glgetstring gl shading language version

Flat shading in OpenGL 3.0?


Knowing the glsl version of your gpu glgetstring gl shading language version

Strongly recommend to implement some transformations!

The difference between the shaders can be easily shown


Knowing the glsl version of your gpu glgetstring gl shading language version

GLSL quick reference guide

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


  • Login