Jump to content

  • Log In with Google      Sign In   
  • Create Account

Mutiple Viewport size for texture


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 svnstrk   Members   -  Reputation: 133

Like
0Likes
Like

Posted 22 December 2012 - 02:33 AM

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?



Sponsor:

#2 Nyssa   Members   -  Reputation: 426

Like
0Likes
Like

Posted 22 December 2012 - 05:45 AM

There sure is, glViewport






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS