I came across this when I started using tr .js. This is actually a javascript issue. You have:
renderer.setClearColorHex( 0x000000, 1 );
in your threejs init function. Change it to:
renderer.setClearColorHex( 0xffffff, 1 );
Update: Thanks to HdN8 for the updated solution:
renderer.setClearColor( 0xffffff, 0);
Update # 2: As WestLangley noted in another, similar question - you should now use the code below when creating a new WebGLRenderer instance in combination with the setClearColor() function:
var renderer = new THREE.WebGLRenderer({ alpha: true });
Update # 3: Mr.doob indicates that with r78 you can also use the code below to set the background color of the scene:
var scene = new THREE.Scene();
Joe Apr 23 '13 at 19:02 2013-04-23 19:02
source share