Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int shaderProgram = ARBShaderObjects.glCreateProgramObjectARB(); // program
- FragmentShader post_pass = new FragmentShader("shaders/post_pass.frag");
- post_pass.attach(shaderProgram); // what this does: ARBShaderObjects.glAttachObjectARB(program,id);
- int texID = ARBShaderObjects.glGetUniformLocationARB(post_pass.id, "renderedTexture");
- int timerID = ARBShaderObjects.glGetUniformLocationARB(post_pass.id, "time");
- System.out.println("texid location = "+texID);
- System.out.println("timerid location = "+texID);
- /* Output
- texid location = -1
- timerid location = -1
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement