webgl performance cost of switching shader and texture

Viewed 2689

I.To switching a shader effect which way is better? 1.using a big shader program and using uniform an if/else clause in shader program to use difference effect. 2.switch program between calls.

II.Is it better to use a big texture or use several small texture? And does upload texture cost mush,how about bind texture?

1 Answers
Related