Jump to content
  • Advertisement
Sign in to follow this  
dpadam450

Shadow Map bigger than Window

This topic is 3684 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!