Advertisement Jump to content
Sign in to follow this  

Shadow Map bigger than Window

This topic is 3837 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

My shadow map texture is 1024x1024. My Window is only 800x600 though. I do: glViewPort(0,0,1024,1024); RenderToShadowMap(); glViewport(0,0,800,600);//Reset viewport The problem is the copied part of the image that goes outside of the bounds of the window, are chopped out. I assume this is because my buffers are still only drawing to what I set them as (800x600). Whats the way to fix this (other than FBO's, cuz I dont have them yet).

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!