mrdoob/three.js — pull request #5036 by Oletus (2014-07-08 09:15:21+00:00)
Title: Only put those uniforms to uniformsList which are in the program

Also cache uniform locations in the uniformsList, so that querying them
from the program is not needed. This reduces CPU usage.