SHARE
TWEET

Untitled

a guest Jun 12th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  Shader.useShader(diffuse);
  2.             int proj = glGetUniformLocation(Shader.shader, "projection");
  3.             int vi = glGetUniformLocation(Shader.shader, "view");
  4.             int mod = glGetUniformLocation(Shader.shader, "model");
  5.  
  6.             int lightPosLoc = glGetUniformLocation(Shader.shader, "lightPos");
  7.             int objectColor = glGetUniformLocation(Shader.shader, "objectColor");
  8.  
  9.             glUniform3f(lightPosLoc, lightPos.getX(), lightPos.getY(), lightPos.getZ());
  10.             glUniform3f(objectColor, 1.0f, 0.5f, 0.31f);
  11.  
  12.             glUniformMatrix4fv(proj, false, project.toFloatArray());
  13.             glUniformMatrix4fv(vi, false, view.toFloatArray());
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top