Changes between Version 27 and Version 28 of tutorial


Ignore:
Timestamp:
Jun 29, 2013, 7:51:22 PM (11 years ago)
Author:
leon
Comment:

copper

Legend:

Unmodified
Added
Removed
Modified
  • tutorial

    v27 v28  
    506506   if (location >= 0)  glUniform1f(location, zoom);
    507507  }}}
     508 3. Simplify the cartoon shader to [http://en.wikipedia.org/wiki/Gouraud_shading Gouraud shader] by using just
     509 greyscale {{{gl_FragColor = vec4(intensity);}}} or copper mix
     510  {{{
     511   #!c
     512    vec4 copper_ambient = vec4(0.191250, 0.073500, 0.022500, 1.000000); \
     513    vec4 copper_diffuse = vec4(0.703800, 0.270480, 0.082800, 1.000000); \
     514    gl_FragColor = copper_ambient + intensity*copper_diffuse;\
     515  }}}
    508516
    509517