-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finally got irradiance maps working, needs a big tidy up
- Loading branch information
Showing
17 changed files
with
489 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef MATERIALHDRCUBE_H | ||
#define MATERIALHDRCUBE_H | ||
|
||
#include "Material.h" | ||
#include <QOpenGLTexture> | ||
#include <QImage> | ||
|
||
class HDR_cube | ||
{ | ||
public: | ||
HDR_cube() = default; | ||
HDR_cube(const HDR_cube&) = default; | ||
HDR_cube& operator=(const HDR_cube&) = default; | ||
HDR_cube(HDR_cube&&) = default; | ||
HDR_cube& operator=(HDR_cube&&) = default; | ||
~HDR_cube() = default; | ||
|
||
void init(const std::shared_ptr<ShaderLib> &io_shaderLib, QOpenGLContext* io_context); | ||
|
||
unsigned int irradianceMapID() const noexcept { return m_irradianceMap; } | ||
|
||
private: | ||
unsigned int m_irradianceMap; | ||
unsigned int initSphereMap(QOpenGLContext *io_context); | ||
|
||
}; | ||
|
||
#endif // MATERIALHDRCUBE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,6 @@ | |
|
||
#include "Material.h" | ||
|
||
class Camera; | ||
|
||
class MaterialPhong : public Material | ||
{ | ||
public: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,6 @@ | |
|
||
#include "Material.h" | ||
|
||
class Camera; | ||
|
||
class MaterialWireframe : public Material | ||
{ | ||
public: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.