12 GLuint _shaderProgram = 0;
13 GLuint _skyboxDayTextureUID = 0;
14 GLuint _skyboxNightTextureUID = 0;
17 GLuint _projectionUID = 0;
18 GLuint _blendingCoeffUID = 0;
28 Skybox(
const std::string &dRight,
const std::string &dLeft,
const std::string &dTop,
const std::string &dBottom,
const std::string &dFront,
const std::string &dBack,
29 const std::string &nRight,
const std::string &nLeft,
const std::string &nTop,
const std::string &nBottom,
const std::string &nFront,
const std::string &nBack,
30 const std::string &fileSkyboxVertexShader,
const std::string &fileSkyboxFragmentShader);
31 void draw(
float deltaTime)
override;
Skybox(const std::string &dRight, const std::string &dLeft, const std::string &dTop, const std::string &dBottom, const std::string &dFront, const std::string &dBack, const std::string &nRight, const std::string &nLeft, const std::string &nTop, const std::string &nBottom, const std::string &nFront, const std::string &nBack, const std::string &fileSkyboxVertexShader, const std::string &fileSkyboxFragmentShader)
Initializes a skybox with two separate cubemaps for day and night.
Definition skybox.cpp:5
void update(Camera &camera, int winWidth, int winHeight, float deltaTime, float blendingCoeff)
Updates shader matrices (removing translation) and binds textures for blending.
Definition skybox.cpp:121