Original Post
Hi all,
I got a problem with Transform Feedback and hope someone here can help me out. I want to capture vertex position and vertex normal while performing rendering and save the results into a frame buffer.
Here is a peace of code used to declare attributes that I want to record:
This peace of code goes after compiling the shaders and prior to linking them. But when I print out the results of loc, they all are -1.
Does this situation happen to anyone else? I would really appreciate if someone give me a help.
-D
I got a problem with Transform Feedback and hope someone here can help me out. I want to capture vertex position and vertex normal while performing rendering and save the results into a frame buffer.
Here is a peace of code used to declare attributes that I want to record:
transform feedback const GLint loc[] = {
glGetVaryingLocationNV(program, "position"),
glGetVaryingLocationNV(program, "normal"),
};
glTransformFeedbackVaryingsNV(program, 2, loc, GL_SEPARATE_ATTRIBS_NV);
This peace of code goes after compiling the shaders and prior to linking them. But when I print out the results of loc, they all are -1.
Does this situation happen to anyone else? I would really appreciate if someone give me a help.
-D