Removed extra clearColor for Skybox
This commit is contained in:
@@ -90,8 +90,6 @@ void Skybox::refresh(float t, float mie, uint quality) {
|
|||||||
shader->uniform3f("u_lightDir", glm::normalize(vec3(sin(t), -cos(t), -0.7f)));
|
shader->uniform3f("u_lightDir", glm::normalize(vec3(sin(t), -cos(t), -0.7f)));
|
||||||
for (uint face = 0; face < 6; face++) {
|
for (uint face = 0; face < 6; face++) {
|
||||||
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_CUBE_MAP_POSITIVE_X + face, cubemap, 0);
|
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_CUBE_MAP_POSITIVE_X + face, cubemap, 0);
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
|
||||||
glClearColor(1.0f, 0.0f, 0.0f, 1.0f);
|
|
||||||
shader->uniform3f("u_xaxis", xaxs[face]);
|
shader->uniform3f("u_xaxis", xaxs[face]);
|
||||||
shader->uniform3f("u_yaxis", yaxs[face]);
|
shader->uniform3f("u_yaxis", yaxs[face]);
|
||||||
shader->uniform3f("u_zaxis", zaxs[face]);
|
shader->uniform3f("u_zaxis", zaxs[face]);
|
||||||
|
|||||||
Reference in New Issue
Block a user