⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tutorial4.vert

📁 GLSL tutorial with sourcecode
💻 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 + -