Advertisement
gmfreaky

Shader problem

Aug 11th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.57 KB | None | 0 0
  1. int shaderProgram = ARBShaderObjects.glCreateProgramObjectARB(); // program
  2. FragmentShader post_pass = new FragmentShader("shaders/post_pass.frag");
  3. post_pass.attach(shaderProgram); // what this does: ARBShaderObjects.glAttachObjectARB(program,id);
  4.        
  5. int texID =     ARBShaderObjects.glGetUniformLocationARB(post_pass.id, "renderedTexture");
  6. int timerID =   ARBShaderObjects.glGetUniformLocationARB(post_pass.id, "time");
  7.        
  8. System.out.println("texid location = "+texID);
  9. System.out.println("timerid location = "+texID);
  10.  
  11. /* Output
  12. texid location = -1
  13. timerid location = -1
  14. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement