📄 tutorial4.vert
字号:
varying float xpos;
varying float ypos;
varying float zpos;
void main(void)
{
xpos = clamp(gl_Vertex.x,0.0,1.0);
ypos = clamp(gl_Vertex.y,0.0,1.0);
zpos = clamp(gl_Vertex.z,0.0,1.0);
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -