Skip to main content
GameDev.net gamedev.net
🔒 Locked

Opengl 3+ rendering to a texture

Started by pressgreen Apr 16, 2013 at 3:25 PM 1 replies 1.5k views
Original Post
pressgreen
pressgreen

If i want to render to a texture in opengl 3+ can i uses the same vertex shader and fragment shader that I use to handle other regular loaded textures or do i need to create a separate vertex shader and fragment shader just for the handling of the frambuffer texture?

J-GREEN

Greenpanoply
Pufixas
Pufixas

Yes, you can use same fragment and vertex shaders for your framebuffer texture as well as for your rendering you main scene objects/textures.

“There are thousands and thousands of people out there leading lives of quiet, screaming desperation, where they work long, hard hours at jobs they hate to enable them to buy things they don't need to impress people they don't like.”? Nigel Marsh

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.