iMSTK
Interactive Medical Simulation Toolkit
imstkIBLProbe.cpp
1 /*
2 ** This file is part of the Interactive Medical Simulation Toolkit (iMSTK)
3 ** iMSTK is distributed under the Apache License, Version 2.0.
4 ** See accompanying NOTICE for details.
5 */
6 
7 #include "imstkIBLProbe.h"
8 #include "imstkTexture.h"
9 
10 namespace imstk
11 {
12 IblProbe::IblProbe(std::string irradianceCubemapPath,
13  std::string radianceCubemapPath, std::string brdfLUTPath) :
14  m_irradianceCubemapPath(irradianceCubemapPath),
15  m_radianceCubemapPath(radianceCubemapPath),
16  m_brdfLUTPath(brdfLUTPath),
17  m_irradianceCubemapTexture(std::make_shared<Texture>(irradianceCubemapPath,
18  Texture::Type::IrradianceCubeMap)),
19  m_radianceCubemapTexture(std::make_shared<Texture>(radianceCubemapPath,
20  Texture::Type::RadianceCubeMap)),
21  m_brdfLUTTexture(std::make_shared<Texture>(brdfLUTPath, Texture::Type::BRDF_LUT))
22 {
23 }
24 
25 std::shared_ptr<Texture>
27 {
28  return m_irradianceCubemapTexture;
29 }
30 
31 std::shared_ptr<Texture>
33 {
34  return m_radianceCubemapTexture;
35 }
36 
37 std::shared_ptr<Texture>
39 {
40  return m_brdfLUTTexture;
41 }
42 } // namespace imstk
std::shared_ptr< Texture > getRadianceCubemapTexture()
TODO.
IblProbe(std::string irradianceCubemapPath, std::string radianceCubemapPath, std::string brdfLUTPath)
Compound Geometry.
std::shared_ptr< Texture > getBrdfLUTTexture()
TODO.
A texture can be defined by file reference or ImageData input.
Definition: imstkTexture.h:24
std::shared_ptr< Texture > getIrradianceCubemapTexture()
TODO.