Skip to content

[Note] Program 4.2

Juhwi Eden Kim edited this page Nov 6, 2019 · 2 revisions
  • glDrawArraysInstanced()는 하나의 C++/OpenGL 호출로 개체를 복사 가능
  • instancing을 사용할 때 vertex 쉐이더는 빌트인 변수 gl_InstanceID에 접근 가능, 현재 작동되는 개체의 인스턴스 아이디를 알려줌

  • GLSL 함수는 호출되기 전에 정의 (main 밖에서)

Clone this wiki locally