Skip to content

Commit

Permalink
Lowered resolution of shadow maps.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericchristenson committed May 5, 2014
1 parent fa8540d commit 91fb509
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/components/lights.d
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ public:
glBindFramebuffer( GL_FRAMEBUFFER, _shadowMapFrameBuffer );

// generate depth texture of shadow map
// TODO: make this not be .28125 GB because we have no optimizations
shadowMapSize = 2048 * 6;
shadowMapSize = 2048;
glGenTextures( 1, cast(uint*)&_shadowMapTexture );
glBindTexture( GL_TEXTURE_2D, _shadowMapTexture );
glTexImage2D( GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT16, shadowMapSize, shadowMapSize, 0, GL_DEPTH_COMPONENT, GL_FLOAT, null );
Expand Down

0 comments on commit 91fb509

Please sign in to comment.