mrdoob/three.js — pull request #867 by rectalogic (2011-12-07 17:00:48+00:00)
Title: Support texture border color clamping

This adds a new borderClampColor parameter to materials. If this is defined, then the 'map' and 'lightMap' textures will be clamped to that color when their UV is outside of the 0..1 range.

This allows you to do things like "letterbox" 16:9 video texture image onto a 4:3 aspect ratio quad face, by adjusting the UVs so the texture is letterboxed and the untextured borders are solid colored.