Issue #5941: Let effects work.
Merge pull request #2290 from dingpinglv/Iss5941_WebGLRenderer

Issue #5941: Let effects work.