取得頂點. vec4 a = gl_Vertex;. //頂點中的x縮為一半 a.x = a.x*0.5;. //當作要畫的頂點位置. gl_Position = gl_ModelViewProjectionMatrix * a;.
確定! 回上一頁