|
@@ -1,7 +1,7 @@
|
|
|
<!DOCTYPE HTML>
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
- <title>three.js - cube map WebGL</title>
|
|
|
+ <title>three.js - webgl cube reflection / refraction [Walt]</title>
|
|
|
<meta charset="utf-8">
|
|
|
<style type="text/css">
|
|
|
body {
|
|
@@ -109,7 +109,7 @@
|
|
|
|
|
|
//var cubeMaterial3 = new THREE.MeshPhongMaterial( { color: 0x000000, specular:0xaa0000, env_map: new THREE.TextureCube( images ), combine: THREE.Mix, reflectivity: 0.25 } );
|
|
|
var cubeMaterial3 = new THREE.MeshLambertMaterial( { color: 0xff6600, env_map: reflectionCube, combine: THREE.Mix, reflectivity: 0.3 } );
|
|
|
- var cubeMaterial2 = new THREE.MeshLambertMaterial( { color: 0xffee00, env_map: refractionCube, refraction_ratio: 1 } );
|
|
|
+ var cubeMaterial2 = new THREE.MeshLambertMaterial( { color: 0xffee00, env_map: refractionCube, refraction_ratio: 0.95 } );
|
|
|
var cubeMaterial1 = new THREE.MeshLambertMaterial( { color: 0xffffff, env_map: reflectionCube } )
|
|
|
|
|
|
//createCubePlanes( 10000, images );
|