Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


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