GPipe: Binding textures to geometry
Achim Schneider <[email protected]> Thu, 25 Feb 2010 23:15:15 +0100
| Newsgroups | gmane.comp.lang.haskell.hopengl |
|---|---|
| Message-ID | <20100225231515.45b7ddda@solaris> |
I'm by no means an GL expert, but I think it should be possible to attach a texture index to vertices, so that only one fragment shader is needed instead of one for every texture. Currently, I'm duplicating the whole graphics pipeline for virtually every triangle, and it seems that is what's killing performance. Random minor nitpick: The matrix multiplications in the example are done on the CPU, not GPU. -- (c) this sig last receiving data processing entity. Inspect headers for copyright history. All rights reserved. Copying, hiring, renting, performance and/or quoting of this signature prohibited.