我只是读了这个文档:这个文档
我只是向下滚动,然后停在具有以下代码的示例程序1中:
!!ARBvp1.0
ATTRIB pos = vertex.position;
PARAM mat[4] = { state.matrix.mvp };
# Transform by concatenation of the
# MODELVIEW and PROJECTION matrices.
DP4 result.position.x, mat[0], pos;
DP4 result.position.y, mat[1], pos;
DP4 result.position.z, mat[2], pos;
DP4 result.position.w, mat[3], pos;
# Pass the primary color through w/o lighting.
MOV result.color, vertex.color;
END
Run Code Online (Sandbox Code Playgroud)
然后我才意识到“将代码放在哪里?”。所以我搜索了“如何组装ARB组件?” 或“如何使用ARB程序集?”。绝对找不到任何东西。
最后我在这里有一个问题:
我也用Linux Mint 18.3 Cinnamon 64位