|
@@ -29,7 +29,7 @@ var scene = {
|
|
"visible" : true
|
|
"visible" : true
|
|
},
|
|
},
|
|
|
|
|
|
- "sphere" : {
|
|
|
|
|
|
+ "sphere_lambert" : {
|
|
"geometry" : "sphere",
|
|
"geometry" : "sphere",
|
|
"materials": [ "lambert_green" ],
|
|
"materials": [ "lambert_green" ],
|
|
"position" : [ -20, -5, 15 ],
|
|
"position" : [ -20, -5, 15 ],
|
|
@@ -38,6 +38,15 @@ var scene = {
|
|
"visible" : true
|
|
"visible" : true
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ "sphere_refraction" : {
|
|
|
|
+ "geometry" : "sphere",
|
|
|
|
+ "materials": [ "basic_refraction" ],
|
|
|
|
+ "position" : [ 50, 45, -50 ],
|
|
|
|
+ "rotation" : [ 0, 0, 0 ],
|
|
|
|
+ "scale" : [ 1, 1, 1 ],
|
|
|
|
+ "visible" : true
|
|
|
|
+ },
|
|
|
|
+
|
|
"icosahedron" : {
|
|
"icosahedron" : {
|
|
"geometry" : "icosahedron",
|
|
"geometry" : "icosahedron",
|
|
"materials": [ "faceted_white" ],
|
|
"materials": [ "faceted_white" ],
|
|
@@ -86,7 +95,7 @@ var scene = {
|
|
|
|
|
|
"walt" : {
|
|
"walt" : {
|
|
"geometry" : "WaltHead",
|
|
"geometry" : "WaltHead",
|
|
- "materials": [ "phong_white" ],
|
|
|
|
|
|
+ "materials": [ "lambert_cube" ],
|
|
"position" : [ -45, 10, 0 ],
|
|
"position" : [ -45, 10, 0 ],
|
|
"rotation" : [ 0, 0, 0 ],
|
|
"rotation" : [ 0, 0, 0 ],
|
|
"scale" : [ 0.5, 0.5, 0.5 ],
|
|
"scale" : [ 0.5, 0.5, 0.5 ],
|
|
@@ -257,19 +266,29 @@ var scene = {
|
|
"parameters": { color:0x000000, specular: 0xaa5500 }
|
|
"parameters": { color:0x000000, specular: 0xaa5500 }
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ "basic_refraction": {
|
|
|
|
+ "type": "MeshBasicMaterial",
|
|
|
|
+ "parameters": { color: 0xffffff, env_map: "cube_refraction", refraction_ratio: 0.95 }
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ "lambert_cube": {
|
|
|
|
+ "type": "MeshLambertMaterial",
|
|
|
|
+ "parameters": { color: 0xff6600, env_map: "cube_reflection", combine: "MixOperation", reflectivity: 0.3 }
|
|
|
|
+ },
|
|
|
|
+
|
|
"chrome": {
|
|
"chrome": {
|
|
"type": "MeshLambertMaterial",
|
|
"type": "MeshLambertMaterial",
|
|
- "parameters": { color: 0xffffff, env_map: "texture_cube" }
|
|
|
|
|
|
+ "parameters": { color: 0xffffff, env_map: "cube_reflection" }
|
|
},
|
|
},
|
|
|
|
|
|
"darkerchrome": {
|
|
"darkerchrome": {
|
|
"type": "MeshLambertMaterial",
|
|
"type": "MeshLambertMaterial",
|
|
- "parameters": { color: 0x222222, env_map: "texture_cube" }
|
|
|
|
|
|
+ "parameters": { color: 0x222222, env_map: "cube_reflection" }
|
|
},
|
|
},
|
|
|
|
|
|
"glass": {
|
|
"glass": {
|
|
"type": "MeshLambertMaterial",
|
|
"type": "MeshLambertMaterial",
|
|
- "parameters": { color: 0x101046, env_map: "texture_cube", opacity: 0.25 }
|
|
|
|
|
|
+ "parameters": { color: 0x101046, env_map: "cube_reflection", opacity: 0.25 }
|
|
},
|
|
},
|
|
|
|
|
|
"interior": {
|
|
"interior": {
|
|
@@ -297,7 +316,7 @@ var scene = {
|
|
"textures":
|
|
"textures":
|
|
{
|
|
{
|
|
|
|
|
|
- "texture_cube": {
|
|
|
|
|
|
+ "cube_reflection": {
|
|
"url": [ "textures/cube/SwedishRoyalCastle/px.jpg",
|
|
"url": [ "textures/cube/SwedishRoyalCastle/px.jpg",
|
|
"textures/cube/SwedishRoyalCastle/nx.jpg",
|
|
"textures/cube/SwedishRoyalCastle/nx.jpg",
|
|
"textures/cube/SwedishRoyalCastle/py.jpg",
|
|
"textures/cube/SwedishRoyalCastle/py.jpg",
|
|
@@ -307,6 +326,17 @@ var scene = {
|
|
]
|
|
]
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ "cube_refraction": {
|
|
|
|
+ "url": [ "textures/cube/SwedishRoyalCastle/px.jpg",
|
|
|
|
+ "textures/cube/SwedishRoyalCastle/nx.jpg",
|
|
|
|
+ "textures/cube/SwedishRoyalCastle/py.jpg",
|
|
|
|
+ "textures/cube/SwedishRoyalCastle/ny.jpg",
|
|
|
|
+ "textures/cube/SwedishRoyalCastle/nz.jpg",
|
|
|
|
+ "textures/cube/SwedishRoyalCastle/pz.jpg"
|
|
|
|
+ ],
|
|
|
|
+ "mapping": "CubeRefractionMapping"
|
|
|
|
+ },
|
|
|
|
+
|
|
"texture_bg": {
|
|
"texture_bg": {
|
|
"url": "textures/cube/SwedishRoyalCastle/pz.jpg"
|
|
"url": "textures/cube/SwedishRoyalCastle/pz.jpg"
|
|
},
|
|
},
|
|
@@ -350,7 +380,8 @@ var scene = {
|
|
"light1": {
|
|
"light1": {
|
|
"type" : "directional",
|
|
"type" : "directional",
|
|
"direction" : [0,1,1],
|
|
"direction" : [0,1,1],
|
|
- "color" : [1,1,1]
|
|
|
|
|
|
+ "color" : [1,1,1],
|
|
|
|
+ "intensity" : 0.8
|
|
},
|
|
},
|
|
|
|
|
|
"light2": {
|
|
"light2": {
|