-
Notifications
You must be signed in to change notification settings - Fork 13
[Note] Program 2.6
Juhwi Eden Kim edited this page Oct 19, 2019
·
1 revision
-
GLuint offsetLoc = glGetUniformLocation(renderingProgram, "offset");: renderingProgram object의 "offset"이라고 이름지어진 uniform을 찾아서 Location(주소, 즉 ptr)를 가져옴 - Program 2.6의 "offset" uniform은 "vertShader.glsl"의 두번째줄에 있음
-
glProgramUniform1f(renderingProgram, offsetLoc, x);: renderingProgram object의 offsetLoc에 해당하는 uniform을 특정한 값 x로 지정 - glProgramUniform