摘要:
The gl_NormalMatrix The gl_NormalMatrix is present in many vertex shaders. In here some light is shed on what is this matrix and what is it for. This section was inspired by the excellent book by Eric... 阅读全文
posted @ 2009-08-09 22:54
lizhengjin
阅读(670)
评论(0)
推荐(0)
摘要:
The first version preseted in here computes an intensity per vertex. Then the fragment shader uses the vertex interpolated intensity to compute a tone for the fragment. The vertex shader must therefor... 阅读全文
posted @ 2009-08-09 20:54
lizhengjin
阅读(680)
评论(0)
推荐(0)
摘要:
Color Shader GLSL has access to part of the OpenGL state. In this tutorial we'll see how to access the color as set in an OpenGL application with glColor. GLSL has an attribute variable where it keeps... 阅读全文
posted @ 2009-08-09 18:39
lizhengjin
阅读(467)
评论(0)
推荐(0)
摘要:
This is kind of a Hello World for GLSL. A minimal shader that performs the most basic tasks: transform the vertices and render the primitives in a single color. In here it this shaders, vertex and fra... 阅读全文
posted @ 2009-08-09 17:31
lizhengjin
阅读(775)
评论(0)
推荐(0)
摘要:
http://3dshaders.com/ glsl的官方网址 阅读全文
posted @ 2009-08-09 15:59
lizhengjin
阅读(213)
评论(0)
推荐(0)
浙公网安备 33010602011771号