代码之家  ›  专栏  ›  技术社区  ›  Tomaka17

Cg和OpenGL 3

  •  2
  • Tomaka17  · 技术社区  · 15 年前

    glVertex , glVertexPointer , glColor , glColorPointer 等都不见了。

    void main(in inPos : POSITION, out outPos : POSITION) {
        outPos = inPos;
    }
    

    glVertex公司 设置 inPos

    1 回复  |  直到 15 年前
        1
  •  0
  •   Community Mohan Dere    9 年前

    首先我推荐你去看看 the answer to this question: What's so different about OpenGL 3.x?

    其次,Norbert Nopper有很多使用OpenGL 3和GLSL的例子 here

    最后,这里有一个简单的 GLSL example

    推荐文章