Jump to content

Image of the Day

Working on #steam achievements!
#screenshotsaturday #indiegame #pixelart #NadiaWasHere #RPG #indiedev https://t.co/IcDuJSWsGK
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

Mutiple Viewport size for texture

4: Adsense

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   

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?



#2 Nyssa   GDNet+   

630
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.