Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GLuint LUT;
- glGenTextures(1, &LUT);
- glBindTexture(GL_TEXTURE_3D, LUT);
- glTexImage3D(GL_TEXTURE_3D, 0, GL_RGB8, sliceWidth, height, numberOfSlices, 0, GL_RGB,
- GL_UNSIGNED_BYTE, data);
- glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
- glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
- glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, GL_REPEAT);
- glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_T, GL_REPEAT);
- glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, GL_REPEAT);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement