Toplevel holder of the assets meshes, materials, textures and shaders.
Texture object for OpenGL texturing.
SLNode represents a node in a hierarchical scene graph.
const SLstring & name() const
SceneView class represents a dynamic real time 3D view onto the scene.
Skybox node class with a SLBox mesh.
SLGLTexture * _environmentCubemap
SLGLTexture * _hdrTexture
void build()
Builds all texture for HDR image based lighting.
SLCol4f colorAtDir(const SLVec3f &dir)
Returns the color in the skybox at the the specified direction dir.
SLGLTexture * _irradianceCubemap
SLGLTexture * irradianceCubemap()
SLbool _isHDR
flag for HDR skyboxes
SLSkybox(SLAssetManager *assetMgr, SLstring shaderPath, SLstring cubeMapXPos, SLstring cubeMapXNeg, SLstring cubeMapYPos, SLstring cubeMapYNeg, SLstring cubeMapZPos, SLstring cubeMapZNeg, SLstring name="Default Skybox")
Construct a new SLSkybox::SLSkybox object with 6 images for all sides.
SLGLTexture * brdfLutTexture()
SLGLTexture * roughnessCubemap()
void drawAroundCamera(SLSceneView *sv)
Draw the skybox with a cube map with the camera in its center.
SLGLTexture * _roughnessCubemap
SLGLTexture * _brdfLutTexture
SLbool _isBuilt
flag for late HDR skybox building
SLGLTexture * environmentCubemap()