Sign in to follow this  
svnstrk

Mutiple Viewport size for texture

Recommended Posts

Hi, 

 

I'm trying to use 2 buffers: the first buffer renders a texture for shadows, the size of the texture is 1300*800

The second buffer renders the final program with size 1200*700.

 

The problem is I cant find a way to change my viewport size to 1300*800 during the texture rendering so it can render the whole texture. Is there a way to change my viewport size during program so the fragment shader can draw the whole texture?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this