
25 Feb
2010
25 Feb
'10
5:15 p.m.
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.