Changes between Version 27 and Version 28 of tutorial
- Timestamp:
- Jun 29, 2013, 7:51:22 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified tutorial
v27 v28 506 506 if (location >= 0) glUniform1f(location, zoom); 507 507 }}} 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 }}} 508 516 509 517