mrdoob/three.js — pull request #2129 by spacecookies (2012-06-27 23:18:03+00:00)
Title: Loading reflective and refractive materials in ColladaLoader.js

I added some basic support to ColladaLoader.js for loading reflective and refractive materials. There's a new options.defaultEnvMap property on the ColladaLoader that specifies a cubemap to be used for all reflective or refractive materials loaded.

One unresolved issue is the conversion between Collada's "index_of_refraction" and Three.js's "refractionRatio". I'm not sure if they're equivalent or not.

Also, it's not a problem with ColladaLoader, but reflection and refraction in a single material will not currently work. It must be one or the other. This seems to be an issue with the built-in Three.js shader.