SLTextureType
Texture type enumeration & their filename appendix for auto type detection.
Texture object for OpenGL texturing.
Texture object generated in run time from another texture.
SLGLProgram * _shaderProgram
Shader program to render the texture.
SLVMat4f _captureViews
All 6 positions of the views that represent the 6 sides of the cube map.
virtual ~SLGLTextureIBL()
SLGLTexture * _sourceTexture
2D Texture from the HDR Image
virtual void build(SLint texID=0)
void renderQuad()
Renders a 2x2 XY quad, used for rendering and capturing the BRDF integral.
SLMat4f _captureProjection
Projection matrix for capturing the textures.
void logFramebufferStatus()
void renderCube()
Renders 2x2 cube, used to project a texture to a cube texture with 6 sides.
void readPixels(int width, int height, string name, bool savePNG)
Reads back the pixels into an image.
SLbool _readBackPixels
Flag if generated texture should be read back from GPU into cvMat.