perfragment.vert
来自「GLSL tutorial with sourcecode」· VERT 代码 · 共 13 行
VERT
13 行
varying vec3 L;
varying vec3 N;
varying vec3 P;
void main(void)
{
P = vec3(gl_ModelViewMatrix * gl_Vertex);
L = normalize(gl_LightSource[0].position.xyz-P);
N = normalize(gl_NormalMatrix * gl_Normal);
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?