Jump to content
  • Advertisement
Sign in to follow this  
dpadam450

Shadow Map bigger than Window

This topic is 3623 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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!