test_scene.js 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  1. {
  2. "metadata": {
  3. "formatVersion": 3.1,
  4. "type" : "scene"
  5. },
  6. "urlBaseType" : "relativeToHTML",
  7. "objects": {
  8. "cube1" : {
  9. "geometry" : "cubeNormals",
  10. "materials": [ "phong_red" ],
  11. "position" : [ 0, 0, 0 ],
  12. "rotation" : [ 0, -0.3, 0 ],
  13. "scale" : [ 1, 1, 1 ],
  14. "visible" : true,
  15. "properties" : {
  16. "rotating" : true,
  17. "rotateX" : true,
  18. "rotateY" : true
  19. }
  20. },
  21. "cube2" : {
  22. "geometry" : "cubeWire",
  23. "materials": [ "basic_white" ],
  24. "position" : [ 0, 0, 0 ],
  25. "rotation" : [ 0, -0.3, 0 ],
  26. "scale" : [ 2, 2, 2 ],
  27. "visible" : true
  28. },
  29. "cube3" : {
  30. "geometry" : "cube",
  31. "materials": [ "minecraft" ],
  32. "position" : [ -30, -5, 25 ],
  33. "rotation" : [ 0, 0.8, 0 ],
  34. "scale" : [ 1, 1, 1 ],
  35. "visible" : true
  36. },
  37. "sphere_lambert" : {
  38. "geometry" : "sphere",
  39. "materials": [ "lambert_green" ],
  40. "position" : [ -20, -5, 15 ],
  41. "rotation" : [ 0, 0, 0 ],
  42. "scale" : [ 1, 1, 1 ],
  43. "visible" : true
  44. },
  45. "sphere_refraction" : {
  46. "geometry" : "sphere",
  47. "materials": [ "basic_refraction" ],
  48. "position" : [ 50, 45, -50 ],
  49. "rotation" : [ 0, 0, 0 ],
  50. "scale" : [ 1, 1, 1 ],
  51. "visible" : true
  52. },
  53. "sphere_cube" : {
  54. "geometry" : "sphere_uvs",
  55. "materials": [ "phong_compressed_cube" ],
  56. "position" : [ -30, -2, -15 ],
  57. "rotation" : [ 0, 0, 0 ],
  58. "scale" : [ 1.5, 1.5, 1.5 ],
  59. "visible" : true
  60. },
  61. "icosahedron" : {
  62. "geometry" : "icosahedron",
  63. "materials": [ "faceted_white" ],
  64. "position" : [ 20, 10, -60 ],
  65. "rotation" : [ 0, 0, 0 ],
  66. "scale" : [ 1, 1, 1 ],
  67. "visible" : true
  68. },
  69. "torus" : {
  70. "geometry" : "torus",
  71. "materials": [ "phong_orange" ],
  72. "position" : [ -20, 5, -50 ],
  73. "rotation" : [ 0, 0, 0 ],
  74. "scale" : [ 2, 2, 2 ],
  75. "visible" : true
  76. },
  77. "cone" : {
  78. "geometry" : "cone",
  79. "materials": [ "lambert_blue" ],
  80. "position" : [ -50, 15, -50 ],
  81. "rotation" : [ 0, 0, 0 ],
  82. "scale" : [ 1, 1, 1 ],
  83. "visible" : true
  84. },
  85. "cylinder" : {
  86. "geometry" : "cylinder",
  87. "materials": [ "lambert_blue" ],
  88. "position" : [ 50, 15, -50 ],
  89. "rotation" : [ 0, 0, 0 ],
  90. "scale" : [ 1, 1, 1 ],
  91. "visible" : true
  92. },
  93. "colorcube1" : {
  94. "geometry" : "colorcube",
  95. "materials": [],
  96. "position" : [ -10, -5, 30 ],
  97. "rotation" : [ 0, 0, 0 ],
  98. "scale" : [ 5, 5, 5 ],
  99. "visible" : true,
  100. "children" : {
  101. "colorcube2" : {
  102. "geometry" : "colorcube",
  103. "materials": [],
  104. "position" : [ 0, 2, 0 ],
  105. "rotation" : [ 0.1, 0.1, 0.1 ],
  106. "scale" : [ 0.5, 0.5, 0.5 ],
  107. "visible" : true,
  108. "children" : {
  109. "colorcube3" : {
  110. "geometry" : "colorcube",
  111. "materials": [],
  112. "position" : [ 0, 2, 0 ],
  113. "rotation" : [ 0.1, 0.1, 0.1 ],
  114. "scale" : [ 0.5, 0.5, 0.5 ],
  115. "visible" : true,
  116. "children" : {
  117. "colorcube4" : {
  118. "geometry" : "colorcube",
  119. "materials": [],
  120. "position" : [ 0, 2, 0 ],
  121. "rotation" : [ 0.1, 0.1, 0.1 ],
  122. "scale" : [ 0.5, 0.5, 0.5 ],
  123. "visible" : true
  124. }
  125. }
  126. }
  127. }
  128. }
  129. }
  130. },
  131. "veyron" : {
  132. "geometry" : "veyron",
  133. "materials": [ "face" ],
  134. "position" : [ 40, -1, 0 ],
  135. "rotation" : [ 0, 0.3, 0 ],
  136. "scale" : [ 0.25, 0.25, 0.25 ],
  137. "visible" : true
  138. },
  139. "walt" : {
  140. "geometry" : "WaltHead",
  141. "materials": [ "lambert_cube" ],
  142. "position" : [ -75, 10, -30 ],
  143. "rotation" : [ 0, 0.5, 0 ],
  144. "scale" : [ 0.5, 0.5, 0.5 ],
  145. "visible" : true
  146. },
  147. "ben" : {
  148. "geometry" : "ben",
  149. "materials": [ "phong_ben" ],
  150. "position" : [ -45, -10, 0 ],
  151. "rotation" : [ 0, 0.5, 0 ],
  152. "scale" : [ 55, 55, 55 ],
  153. "visible" : true
  154. },
  155. "hand" : {
  156. "geometry" : "hand",
  157. "materials": [ "phong_hand" ],
  158. "position" : [ -28, -1, 29 ],
  159. "rotation" : [ 0, 0.5, 0 ],
  160. "scale" : [ 12, 12, 12 ],
  161. "visible" : true,
  162. "properties" : {
  163. "rotating" : true,
  164. "rotateY" : true
  165. }
  166. },
  167. "ninja" : {
  168. "geometry" : "NinjaLo",
  169. "materials": [ "phong_normal" ],
  170. "position" : [ 75, 10, -30 ],
  171. "rotation" : [ 0, -0.5, 0 ],
  172. "scale" : [ 1.25, 1.25, 1.25 ],
  173. "visible" : true
  174. },
  175. "sittingBox" : {
  176. "geometry" : "sittingBox",
  177. "materials": [ "phong_morph" ],
  178. "position" : [ -60, -10, 10 ],
  179. "rotation" : [ 0, 0.5, 0 ],
  180. "scale" : [ 23, 23, 23 ],
  181. "visible" : true,
  182. "morph" : true,
  183. "duration" : 8000,
  184. "mirroredLoop" : true
  185. },
  186. "knight" : {
  187. "geometry" : "knight",
  188. "materials": [ "phong_skin" ],
  189. "position" : [ 70, -10, 10 ],
  190. "rotation" : [ 0, 0, 0 ],
  191. "scale" : [ 2.5, 2.5, 2.5 ],
  192. "visible" : true,
  193. "skin" : true
  194. },
  195. "man" : {
  196. "type": "obj",
  197. "url" : "obj/male02/male02.obj",
  198. "materials": [ "phong_hand" ],
  199. "position" : [ -10, -10, -25 ],
  200. "rotation" : [ 0, 0, 0 ],
  201. "scale" : [ 0.2, 0.2, 0.2 ],
  202. "visible" : true
  203. },
  204. "quad_bg" : {
  205. "geometry" : "quad",
  206. "materials": [ "textured_bg" ],
  207. "position" : [ 0, 15, -90 ],
  208. "rotation" : [ 0, 0, 0 ],
  209. "scale" : [ 20, 20, 20 ],
  210. "visible" : true
  211. },
  212. "quad_texture1" : {
  213. "geometry" : "quad",
  214. "materials": [ "textured_compressed_dxt3" ],
  215. "position" : [ 15, -5, 20 ],
  216. "rotation" : [ 0, 0, 0 ],
  217. "scale" : [ 1, 1, 1 ],
  218. "visible" : true
  219. },
  220. "quad_texture2" : {
  221. "geometry" : "quad",
  222. "materials": [ "textured_compressed_dxt5" ],
  223. "position" : [ 15, -5, 25 ],
  224. "rotation" : [ 0, 0, 0 ],
  225. "scale" : [ 1, 1, 1 ],
  226. "visible" : true
  227. },
  228. "ground" : {
  229. "geometry" : "plane",
  230. "materials": [ "basic_gray" ],
  231. "position" : [ 0, -10, 0 ],
  232. "rotation" : [ -1.57, 0, 0 ],
  233. "scale" : [ 100, 100, 100 ],
  234. "visible" : true
  235. },
  236. "light1": {
  237. "type" : "DirectionalLight",
  238. "direction" : [ 0, 1, 1 ],
  239. "color" : 16777215,
  240. "intensity" : 1
  241. },
  242. "light2": {
  243. "type" : "PointLight",
  244. "position": [ 0, 0, 0 ],
  245. "color" : 16777215,
  246. "intensity" : 1.25
  247. },
  248. "camera1": {
  249. "type" : "PerspectiveCamera",
  250. "fov" : 50,
  251. "aspect": 1.33333,
  252. "near" : 1,
  253. "far" : 1000,
  254. "position": [ 0, 0, 100 ],
  255. "target" : [ 0, 0, 0 ]
  256. },
  257. "camera2": {
  258. "type" : "OrthographicCamera",
  259. "left" : 0,
  260. "right" : 1024,
  261. "top" : 0,
  262. "bottom": 1024,
  263. "near" : 1,
  264. "far" : 1000,
  265. "position": [ 0, 0, 0 ],
  266. "target" : [ 0, 0, 0 ]
  267. }
  268. },
  269. "geometries": {
  270. "cube": {
  271. "type" : "cube",
  272. "width" : 10,
  273. "height": 10,
  274. "depth" : 10,
  275. "widthSegments" : 1,
  276. "heightSegments" : 1,
  277. "depthSegments" : 1,
  278. "flipped" : false,
  279. "sides" : { "px": true, "nx": true, "py": true, "ny": true, "pz": true, "nz": true }
  280. },
  281. "cubeNormals": {
  282. "type" : "cube",
  283. "width" : 10,
  284. "height": 10,
  285. "depth" : 10,
  286. "widthSegments" : 1,
  287. "heightSegments" : 1,
  288. "depthSegments" : 1,
  289. "flipped" : false,
  290. "sides" : { "px": true, "nx": true, "py": true, "ny": true, "pz": true, "nz": true }
  291. },
  292. "cubeWire": {
  293. "type" : "cube",
  294. "width" : 10,
  295. "height": 10,
  296. "depth" : 10,
  297. "widthSegments" : 1,
  298. "heightSegments" : 1,
  299. "depthSegments" : 1,
  300. "flipped" : false,
  301. "sides" : { "px": true, "nx": true, "py": true, "ny": true, "pz": true, "nz": true }
  302. },
  303. "plane": {
  304. "type" : "plane",
  305. "width" : 10,
  306. "height" : 10,
  307. "widthSegments" : 50,
  308. "heightSegments" : 50
  309. },
  310. "quad": {
  311. "type" : "plane",
  312. "width" : 10,
  313. "height" : 10,
  314. "widthSegments" : 1,
  315. "heightSegments" : 1
  316. },
  317. "sphere": {
  318. "type" : "sphere",
  319. "radius" : 5,
  320. "widthSegments" : 32,
  321. "heightSegments" : 16
  322. },
  323. "sphere_uvs": {
  324. "type" : "sphere",
  325. "radius" : 5,
  326. "widthSegments" : 32,
  327. "heightSegments" : 16
  328. },
  329. "icosahedron": {
  330. "type" : "icosahedron",
  331. "radius" : 20,
  332. "subdivisions" : 2
  333. },
  334. "torus": {
  335. "type" : "torus",
  336. "radius" : 5,
  337. "tube" : 2,
  338. "segmentsR" : 16,
  339. "segmentsT" : 32
  340. },
  341. "cylinder": {
  342. "type" : "cylinder",
  343. "topRad" : 5,
  344. "botRad" : 5,
  345. "height" : 50,
  346. "radSegs" : 32,
  347. "heightSegs": 1
  348. },
  349. "cone": {
  350. "type" : "cylinder",
  351. "topRad" : 0,
  352. "botRad" : 5,
  353. "height" : 50,
  354. "radSegs" : 32,
  355. "heightSegs" : 1
  356. },
  357. "WaltHead": {
  358. "type": "binary",
  359. "url" : "obj/walt/WaltHead_bin.js"
  360. },
  361. "NinjaLo": {
  362. "type": "binary",
  363. "url" : "obj/ninja/NinjaLo_bin.js"
  364. },
  365. "veyron": {
  366. "type": "binary",
  367. "url" : "obj/veyron/VeyronNoUv_bin.js"
  368. },
  369. "sittingBox": {
  370. "type": "ascii",
  371. "url" : "models/animated/sittingBox.js"
  372. },
  373. "knight": {
  374. "type": "ascii",
  375. "url" : "models/skinned/knight.js"
  376. },
  377. "ben": {
  378. "type": "ctm",
  379. "url" : "models/ctm/ben.ctm",
  380. "useWorkers" : true,
  381. "useBuffers" : true
  382. },
  383. "hand": {
  384. "type": "utf8",
  385. "url" : "models/utf8/hand.utf8",
  386. "scale" : 0.815141,
  387. "offsetX" : -0.371823,
  388. "offsetY" : -0.011920,
  389. "offsetZ" : -0.416061
  390. },
  391. "colorcube": {
  392. "type": "embedded",
  393. "id" : "cube_fvc"
  394. }
  395. },
  396. "embeds": {
  397. "cube_fvc": {
  398. "metadata" : {
  399. "formatVersion" : 3
  400. },
  401. "scale" : 1.0,
  402. "materials": [{
  403. "DbgColor" : 15658734,
  404. "DbgIndex" : 0,
  405. "DbgName" : "Material",
  406. "colorAmbient" : [0.0, 0.0, 0.0],
  407. "colorDiffuse" : [0.8, 0.8, 0.8],
  408. "colorSpecular" : [0.5, 0.5, 0.5],
  409. "specularCoef" : 50,
  410. "transparency" : 1.0,
  411. "vertexColors" : true
  412. }],
  413. "vertices": [1.000000,-1.000000,-1.000000,1.000000,-1.000000,1.000000,-1.000000,-1.000000,1.000000,-1.000000,-1.000000,-1.000000,1.000000,1.000000,-1.000000,0.999999,1.000000,1.000001,-1.000000,1.000000,1.000000,-1.000000,1.000000,-1.000000],
  414. "morphTargets": [],
  415. "normals": [],
  416. "colors": [16777215,16769421,16769424,8454135,15195931,7299839,16586715,16711687,1056014,6029475,13762484,9044089,7962349,6772991,16774622,4144383,11973887,1966063,1056285,9081232,13696943,5002581],
  417. "uvs": [[]],
  418. "faces": [131,0,1,2,3,0,0,1,2,3,131,4,7,6,5,0,4,5,6,7,131,0,4,5,1,0,0,8,9,10,131,1,5,6,2,0,0,11,12,13,131,2,6,7,3,0,14,15,16,17,131,4,0,3,7,0,18,19,20,21]
  419. }
  420. },
  421. "materials": {
  422. "basic_gray": {
  423. "type": "MeshBasicMaterial",
  424. "parameters": { "color": 6710886, "wireframe": true }
  425. },
  426. "basic_white": {
  427. "type": "MeshBasicMaterial",
  428. "parameters": { "color": 16777215, "wireframe": true }
  429. },
  430. "faceted_white": {
  431. "type": "MeshLambertMaterial",
  432. "parameters": { "color": 16777215, "shading": "flat" }
  433. },
  434. "phong_red": {
  435. "type": "MeshPhongMaterial",
  436. "parameters": { "color": 16711680, "specular": 16711680, "shininess": 25, "bumpMap": "texture_bump", "bumpScale": -0.75 }
  437. },
  438. "phong_ben": {
  439. "type": "MeshPhongMaterial",
  440. "parameters": { "color": 1118481, "ambient": 1118481, "specular": 5601245, "shininess": 12, "bumpMap": "texture_bump_repeat", "bumpScale": 0.125 }
  441. },
  442. "phong_hand": {
  443. "type": "MeshPhongMaterial",
  444. "parameters": { "color": 14531481, "ambient": 14531481, "specular": 2236962, "shininess": 40, "wrapAround": true, "wrapRGB": [ 0.15, 0.02, 0.01 ] }
  445. },
  446. "phong_normal": {
  447. "type": "MeshPhongMaterial",
  448. "parameters": { "color": 0, "specular": 16777215, "shininess": 25, "envMap": "cube_reflection", "reflectivity": 0.1, "lightMap": "texture_ao", "normalMap": "texture_normal", "normalScale": [ 1, -1 ], "displacementMap": "texture_displacement", "displacementScale": 2.436143, "displacementBias": -0.428408 }
  449. },
  450. "phong_morph": {
  451. "type": "MeshPhongMaterial",
  452. "parameters": { "color": 0, "ambient": 0, "specular": 16777215, "shininess": 50, "envMap": "cube_reflection", "reflectivity": 0.125, "combine": "MixOperation", "shading": "flat", "side": "double", "morphTargets": true, "morphNormals" : true }
  453. },
  454. "phong_skin": {
  455. "type": "MeshPhongMaterial",
  456. "parameters": { "color": 0, "ambient": 0, "specular": 16777215, "shininess": 50, "envMap": "cube_reflection", "reflectivity": 0.5, "combine": "MixOperation", "skinning": true, "morphTargets": true }
  457. },
  458. "phong_compressed_cube": {
  459. "type": "MeshPhongMaterial",
  460. "parameters": { "color": 16777215, "envMap": "cube_compressed", "bumpMap": "texture_bump_repeat_2", "bumpScale": -0.1 }
  461. },
  462. "lambert_green": {
  463. "type": "MeshLambertMaterial",
  464. "parameters": { "color": 30481, "blending": "AdditiveBlending", "transparent": true }
  465. },
  466. "lambert_blue": {
  467. "type": "MeshLambertMaterial",
  468. "parameters": { "color": 21930 }
  469. },
  470. "phong_orange": {
  471. "type": "MeshPhongMaterial",
  472. "parameters": { "color": 0, "specular": 11162880 }
  473. },
  474. "basic_refraction": {
  475. "type": "MeshBasicMaterial",
  476. "parameters": { "color": 16777215, "envMap": "cube_refraction", "refractionRatio": 0.95 }
  477. },
  478. "lambert_cube": {
  479. "type": "MeshLambertMaterial",
  480. "parameters": { "color": 16737792, "envMap": "cube_reflection", "combine": "MixOperation", "reflectivity": 0.3 }
  481. },
  482. "chrome": {
  483. "type": "MeshLambertMaterial",
  484. "parameters": { "color": 16777215, "envMap": "cube_reflection" }
  485. },
  486. "darkerchrome": {
  487. "type": "MeshLambertMaterial",
  488. "parameters": { "color": 2236962, "envMap": "cube_reflection" }
  489. },
  490. "glass": {
  491. "type": "MeshLambertMaterial",
  492. "parameters": { "color": 1052742, "envMap": "cube_reflection", "opacity": 0.25, "transparent": true }
  493. },
  494. "interior": {
  495. "type": "MeshLambertMaterial",
  496. "parameters": { "color": 328965 }
  497. },
  498. "backlights": {
  499. "type": "MeshLambertMaterial",
  500. "parameters": { "color": 16711680, "opacity": 0.5 }
  501. },
  502. "backsignals": {
  503. "type": "MeshLambertMaterial",
  504. "parameters": { "color": 16759552, "opacity": 0.5 }
  505. },
  506. "textured_bg": {
  507. "type": "MeshBasicMaterial",
  508. "parameters": { "color": 16777215, "map": "texture_bg" }
  509. },
  510. "textured_compressed_dxt3": {
  511. "type": "MeshBasicMaterial",
  512. "parameters": { "color": 16777215, "map": "texture_compressed_dxt3", "transparent": true }
  513. },
  514. "textured_compressed_dxt5": {
  515. "type": "MeshBasicMaterial",
  516. "parameters": { "color": 16777215, "map": "texture_compressed_dxt5", "transparent": true, "blending": "AdditiveBlending" }
  517. },
  518. "minecraft": {
  519. "type": "MeshBasicMaterial",
  520. "parameters": { "color": 16777215, "map": "texture_minecraft" }
  521. },
  522. "face": {
  523. "type": "MeshFaceMaterial",
  524. "parameters": {}
  525. }
  526. },
  527. "textures": {
  528. "cube_reflection": {
  529. "url": [
  530. "textures/cube/SwedishRoyalCastle/px.jpg",
  531. "textures/cube/SwedishRoyalCastle/nx.jpg",
  532. "textures/cube/SwedishRoyalCastle/py.jpg",
  533. "textures/cube/SwedishRoyalCastle/ny.jpg",
  534. "textures/cube/SwedishRoyalCastle/pz.jpg",
  535. "textures/cube/SwedishRoyalCastle/nz.jpg"
  536. ]
  537. },
  538. "cube_refraction": {
  539. "url": [
  540. "textures/cube/SwedishRoyalCastle/px.jpg",
  541. "textures/cube/SwedishRoyalCastle/nx.jpg",
  542. "textures/cube/SwedishRoyalCastle/py.jpg",
  543. "textures/cube/SwedishRoyalCastle/ny.jpg",
  544. "textures/cube/SwedishRoyalCastle/nz.jpg",
  545. "textures/cube/SwedishRoyalCastle/pz.jpg"
  546. ],
  547. "mapping": "CubeRefractionMapping"
  548. },
  549. "cube_compressed": {
  550. "url": [
  551. "textures/cube/Escher/dds/px.dds",
  552. "textures/cube/Escher/dds/nx.dds",
  553. "textures/cube/Escher/dds/py.dds",
  554. "textures/cube/Escher/dds/ny.dds",
  555. "textures/cube/Escher/dds/pz.dds",
  556. "textures/cube/Escher/dds/nz.dds"
  557. ]
  558. },
  559. "texture_bg": {
  560. "url": "textures/cube/SwedishRoyalCastle/pz.jpg",
  561. "anisotropy": 4
  562. },
  563. "texture_compressed_dxt3": {
  564. "url": "textures/compressed/hepatica_dxt3_mip.dds",
  565. "anisotropy": 4
  566. },
  567. "texture_compressed_dxt5": {
  568. "url": "textures/compressed/explosion_dxt5_mip.dds",
  569. "anisotropy": 4
  570. },
  571. "texture_bump": {
  572. "url": "textures/water.jpg",
  573. "anisotropy": 4
  574. },
  575. "texture_bump_repeat": {
  576. "url": "textures/water.jpg",
  577. "repeat" : [ 20, 20 ],
  578. "anisotropy": 4
  579. },
  580. "texture_bump_repeat_2": {
  581. "url": "textures/water.jpg",
  582. "repeat" : [ 4, 2 ],
  583. "anisotropy": 4
  584. },
  585. "texture_normal": {
  586. "url": "textures/normal/ninja/normal.jpg",
  587. "anisotropy": 4
  588. },
  589. "texture_ao": {
  590. "url": "textures/normal/ninja/ao.jpg",
  591. "anisotropy": 4
  592. },
  593. "texture_displacement": {
  594. "url": "textures/normal/ninja/displacement.jpg",
  595. "anisotropy": 4
  596. },
  597. "texture_minecraft": {
  598. "url": "textures/minecraft/grass.png",
  599. "magFilter": "NearestFilter",
  600. "minFilter": "LinearMipMapLinearFilter"
  601. }
  602. },
  603. "fogs": {
  604. "basic": {
  605. "type": "linear",
  606. "color": [1,0,0],
  607. "near": 1,
  608. "far": 1000
  609. },
  610. "exponential": {
  611. "type": "exp2",
  612. "color": [1,1,1],
  613. "density": 0.005
  614. },
  615. "black": {
  616. "type": "exp2",
  617. "color": [0,0,0],
  618. "density": 0.005
  619. }
  620. },
  621. "defaults": {
  622. "bgcolor": [0,0,0],
  623. "bgalpha": 1,
  624. "camera": "camera1",
  625. "fog": "black"
  626. }
  627. }