opengl - render two images to the screen separately -


I want to give two textures on the screen in different situations at the same time, but, I am skeptical about the top Coordinates.

How can I write a peak shader to accomplish my goal

Just type " two images on the screen " bit ...

Address a textured map image colors on geometry. To be pedantic, you can not make a texture, but you and you can draw geometry with a map texture (using per-point).

While drawing, you can tie two textures once, a second set of texture coordinates will be required and to handle how they mix (or not in your case). Even then sha ader will be quite specific and because the images are different because every pixel has to run unnecessary code to handle the other image. What happens when you want to attract 3 images, or 100?

Instead, just drag an image twice (binding each texture before drawing) overhead will be small until you're taking too many pictures, at which point you see Texture Atlas Can and attract all geometry with all draw calls (actually "at the same time" ])


Comments