Volume Renderer DoF
|
#include <Tex3DShader.h>
Public Member Functions | |
Tex3DShader () | |
~Tex3DShader () | |
void | draw (FBO *fbo) |
void | prepare (GLCamera &camera, const GLuint &quadVAO, const GLuint &volTEX) |
![]() | |
GLShader (const QString &_vertex, const QString &_fragment) | |
~GLShader () | |
void | prepare (const GLuint &vao) |
void | cleanUp () |
const bool | isRenderable () const |
Additional Inherited Members | |
![]() | |
void | createShader (const QString &_vertex, const QString &_fragment) |
![]() | |
QOpenGLShaderProgram * | linker |
GLuint | program |
GLboolean | renderable |
A class for rendering a slice from a 3D texture
Tex3DShader::Tex3DShader | ( | ) |
Tex3DShader::~Tex3DShader | ( | ) |
void Tex3DShader::draw | ( | FBO * | fbo | ) |
renders a texture slice from a 3D texture
fbo | the fbo we are rendering in |
void Tex3DShader::prepare | ( | GLCamera & | camera, |
const GLuint & | quadVAO, | ||
const GLuint & | volTEX | ||
) |
activates the program and loads the uniform datas
camera | camera with matrices |
quadVAO | vao containing quad vertices |
volTex | 3d texture ID |