Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. GLuint LUT;
  2. glGenTextures(1, &LUT);
  3. glBindTexture(GL_TEXTURE_3D, LUT);
  4.  
  5. glTexImage3D(GL_TEXTURE_3D, 0, GL_RGB8, sliceWidth, height, numberOfSlices, 0, GL_RGB,
  6. GL_UNSIGNED_BYTE, data);
  7.  
  8. glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
  9. glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
  10. glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, GL_REPEAT);
  11. glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_T, GL_REPEAT);
  12. glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, GL_REPEAT);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement