Skip to content
Browse files

Regenerated the tests

  • Loading branch information...
1 parent a27e853 commit a9610f6a355b00bfa43a85fac789a6e9b0a89b47 @rehno-lindeque rehno-lindeque committed
Showing with 35 additions and 102 deletions.
  1. +0 −36 test/lightpos.js
  2. +1 −10 test/lines.js
  3. +2 −13 test/linespointsfaces.js
  4. +32 −18 test/multimaterial.js
  5. +0 −9 test/quadflat.js
  6. +0 −16 test/quadtexlit.js
View
36 test/lightpos.js
@@ -26,7 +26,6 @@ SceneJS.createScene({
type: 'geometry',
coreId: 'Cube_003-mesh-mes_000-mesh',
primitive: 'triangles',
- resource: 'Cube_003-mesh-mes_000-mesh',
positions: [1.0,1.0,0.0,1.0,-1.0,0.0,-1.0,-1.0,0.0,-1.0,1.0,0.0,],
normals: [0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,],
indices: [0,3,2,0,2,1,],
@@ -35,7 +34,6 @@ SceneJS.createScene({
type: 'geometry',
coreId: 'Cube_002-mesh-mes_000-mesh',
primitive: 'triangles',
- resource: 'Cube_002-mesh-mes_000-mesh',
positions: [1.0,1.0,0.0,1.0,-1.0,0.0,-1.0,-1.0,0.0,-1.0,1.0,0.0,],
normals: [0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,],
indices: [0,3,2,0,2,1,],
@@ -44,7 +42,6 @@ SceneJS.createScene({
type: 'geometry',
coreId: 'Cube_001-mesh-mes_000-mesh',
primitive: 'triangles',
- resource: 'Cube_001-mesh-mes_000-mesh',
positions: [1.0,1.0,0.0,1.0,-1.0,0.0,-1.0,-1.0,0.0,-1.0,1.0,0.0,],
normals: [0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,],
indices: [0,3,2,0,2,1,],
@@ -53,7 +50,6 @@ SceneJS.createScene({
type: 'geometry',
coreId: 'Cube-mesh-mesh_001-mesh',
primitive: 'triangles',
- resource: 'Cube-mesh-mesh_001-mesh',
positions: [1.0,1.0,0.0,1.0,-1.0,0.0,-1.0,-1.0,0.0,-1.0,1.0,0.0,],
normals: [0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,],
indices: [0,3,2,0,2,1,],
@@ -138,15 +134,7 @@ SceneJS.createScene({
nodes: [
{
type: 'material',
- id: 'Cube_003-mesh-mes_000-mesh-Material_001_001',
coreId: 'Material_001_001',
- baseColor:
- {
- r: 0.5,
- b: 0.5,
- g: 0.5,
- },
- emit: 0.0,
nodes: [
{
type: 'geometry',
@@ -162,15 +150,7 @@ SceneJS.createScene({
nodes: [
{
type: 'material',
- id: 'Cube_002-mesh-mes_000-mesh-Material_001_001',
coreId: 'Material_001_001',
- baseColor:
- {
- r: 0.5,
- b: 0.5,
- g: 0.5,
- },
- emit: 0.0,
nodes: [
{
type: 'geometry',
@@ -186,15 +166,7 @@ SceneJS.createScene({
nodes: [
{
type: 'material',
- id: 'Cube_001-mesh-mes_000-mesh-Material_001_001',
coreId: 'Material_001_001',
- baseColor:
- {
- r: 0.5,
- b: 0.5,
- g: 0.5,
- },
- emit: 0.0,
nodes: [
{
type: 'geometry',
@@ -210,15 +182,7 @@ SceneJS.createScene({
nodes: [
{
type: 'material',
- id: 'Cube-mesh-mesh_001-mesh-Material_001_001',
coreId: 'Material_001_001',
- baseColor:
- {
- r: 0.5,
- b: 0.5,
- g: 0.5,
- },
- emit: 0.0,
nodes: [
{
type: 'geometry',
View
11 test/lines.js
@@ -25,9 +25,8 @@ SceneJS.createScene({
{
type: 'geometry',
coreId: 'Cube-mesh',
- primitive: 'lines',
- resource: 'Cube-mesh',
positions: [1.0,1.0,-1.0,1.0,-1.0,-1.0,-1.0,-0.999999821186,-1.0,-0.999999701977,1.0,-1.0,1.0,0.999999523163,1.0,0.999999403954,-1.00000095367,1.0,-1.0,-0.999999701977,1.0,-1.0,1.0,1.0,0.977304816246,2.10886001587,1.0,0.977304279804,2.10886001587,-0.999999523163,-0.028740759939,1.6484940052,2.47447395325,-0.815371215343,-0.5016310215,2.17498397827,-0.794783592224,-2.70871400833,0.346526801586,-1.16639399529,-1.50765895844,2.00356197357,-0.267441302538,-1.71102797985,0.187304794788,1.53667402267,-0.0513397417963,-1.78009104729,0.148037597537,-2.01348900795,-0.821267485619,2.06411910057,0.8370642066,-1.34161901474,1.97824299335,0.730930805206,-0.867338001728,1.82024002075,0.421330094337,-1.12671601772,],
+ primitive: 'lines',
indices: [0,1,1,2,2,3,3,4,4,5,],
},
],
@@ -110,15 +109,7 @@ SceneJS.createScene({
nodes: [
{
type: 'material',
- id: 'Cube-mesh-Material',
coreId: 'Material',
- baseColor:
- {
- r: 0.64,
- b: 0.64,
- g: 0.64,
- },
- emit: 0.0,
nodes: [
{
type: 'geometry',
View
15 test/linespointsfaces.js
@@ -25,23 +25,20 @@ SceneJS.createScene({
{
type: 'geometry',
coreId: 'Cube-mesh',
- resource: 'Cube-mesh',
positions: [1.0,1.0,-1.0,1.0,-1.0,-1.0,-1.0,-0.999999821186,-1.0,-0.999999701977,1.0,-1.0,1.0,0.999999523163,1.0,0.999999403954,-1.00000095367,1.0,-1.0,-0.999999701977,1.0,-1.0,1.0,1.0,0.977304816246,2.10886001587,1.0,0.977304279804,2.10886001587,-0.999999523163,-0.028740759939,1.6484940052,2.47447395325,-0.815371215343,-0.5016310215,2.17498397827,-0.794783592224,-2.70871400833,0.346526801586,-1.16639399529,-1.50765895844,2.00356197357,-0.267441302538,-1.71102797985,0.187304794788,1.53667402267,-0.0513397417963,-1.78009104729,0.148037597537,-2.01348900795,-0.821267485619,2.06411910057,0.8370642066,-1.34161901474,1.97824299335,0.730930805206,-0.867338001728,1.82024002075,0.421330094337,-1.12671601772,1.0,1.0,-1.0,1.0,-1.0,-1.0,-1.0,-0.999999821186,-1.0,-0.999999701977,1.0,-1.0,1.0,0.999999523163,1.0,0.999999403954,-1.00000095367,1.0,-1.0,-0.999999701977,1.0,-1.0,1.0,1.0,0.977304816246,2.10886001587,1.0,0.977304279804,2.10886001587,-0.999999523163,-0.028740759939,1.6484940052,2.47447395325,-0.815371215343,-0.5016310215,2.17498397827,-0.794783592224,-2.70871400833,0.346526801586,-1.16639399529,-1.50765895844,2.00356197357,-0.267441302538,-1.71102797985,0.187304794788,1.53667402267,-0.0513397417963,-1.78009104729,0.148037597537,-2.01348900795,-0.821267485619,2.06411910057,0.8370642066,-1.34161901474,1.97824299335,0.730930805206,-0.867338001728,1.82024002075,0.421330094337,-1.12671601772,],
normals: [0.999790728092,0.0204632207751,-2.33440999864e-07,0.999790728092,0.0204632207751,-2.33440999864e-07,0.999790728092,0.0204632207751,-2.33440999864e-07,0.999790728092,0.0204632207751,-2.33440999864e-07,0.999790728092,0.0204632207751,-2.33440999864e-07,0.999790728092,0.0204632207751,-2.33440999864e-07,0.0,0.0,0.0,0.0,0.0,0.0,0.999790728092,0.0204632207751,-2.33440999864e-07,0.999790728092,0.0204632207751,-2.33440999864e-07,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.872371613979,-0.486342996359,0.049104269594,0.872371613979,-0.486342996359,0.049104269594,0.872371613979,-0.486342996359,0.049104269594,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,],
nodes: [
{
type: 'geometry',
coreId: 'Cube-mesh0',
- resource: 'Cube-mesh',
- primitive: 'triangles',
indices: [4,0,9,4,9,8,17,18,19,],
+ primitive: 'triangles',
},
{
type: 'geometry',
coreId: 'Cube-mesh1',
- resource: 'Cube-mesh',
- primitive: 'lines',
indices: [0,1,1,2,2,3,3,4,4,5,],
+ primitive: 'lines',
},
],
},
@@ -125,15 +122,7 @@ SceneJS.createScene({
nodes: [
{
type: 'material',
- id: 'Cube-mesh-Material',
coreId: 'Material',
- baseColor:
- {
- r: 0.64,
- b: 0.64,
- g: 0.64,
- },
- emit: 0.0,
nodes: [
{
type: 'geometry',
View
50 test/multimaterial.js
@@ -47,30 +47,26 @@ SceneJS.createScene({
{
type: 'geometry',
coreId: 'Cube-mesh',
- resource: 'Cube-mesh',
positions: [1.0,1.0,-1.0,1.0,-1.0,-1.0,-1.0,-0.999999821186,-1.0,1.0,0.999999523163,1.0,0.999999403954,-1.00000095367,1.0,-1.0,-0.999999701977,1.0,-1.0,1.0,1.0,1.0,1.0,-1.0,1.0,-1.0,-1.0,-1.0,-0.999999821186,-1.0,1.0,0.999999523163,1.0,0.999999403954,-1.00000095367,1.0,-1.0,-0.999999701977,1.0,-1.0,1.0,1.0,1.0,1.0,-1.0,1.0,-1.0,-1.0,-1.0,-0.999999821186,-1.0,1.0,0.999999523163,1.0,0.999999403954,-1.00000095367,1.0,-1.0,-0.999999701977,1.0,-1.0,1.0,1.0,],
normals: [1.0,-2.8312200584e-07,0.0,1.0,-2.8312200584e-07,0.0,-2.8312200584e-07,-1.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,],
nodes: [
{
type: 'geometry',
coreId: 'Cube-mesh0',
- resource: 'Cube-mesh',
- primitive: 'triangles',
indices: [1,4,5,1,5,2,],
+ primitive: 'triangles',
},
{
type: 'geometry',
coreId: 'Cube-mesh1',
- resource: 'Cube-mesh',
- primitive: 'triangles',
indices: [0,3,4,0,4,1,],
+ primitive: 'triangles',
},
{
type: 'geometry',
coreId: 'Cube-mesh2',
- resource: 'Cube-mesh',
- primitive: 'triangles',
indices: [3,6,5,3,5,4,],
+ primitive: 'triangles',
},
],
},
@@ -153,20 +149,38 @@ SceneJS.createScene({
elements: [1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,],
nodes: [
{
- type: 'material',
- id: 'Cube-mesh-Red',
- coreId: 'Red',
- baseColor:
+ type: 'geometry',
+ coreId: 'Cube-mesh',
+ nodes: [
{
- r: 0.64,
- b: 0.0,
- g: 0.0,
+ type: 'material',
+ coreId: 'Red',
+ nodes: [
+ {
+ type: 'geometry',
+ coreId: 'Cube-mesh0',
+ },
+ ],
+ },
+ {
+ type: 'material',
+ coreId: 'Blue',
+ nodes: [
+ {
+ type: 'geometry',
+ coreId: 'Cube-mesh1',
+ },
+ ],
},
- emit: 0.0,
- nodes: [
{
- type: 'geometry',
- coreId: 'Cube-mesh',
+ type: 'material',
+ coreId: 'Green',
+ nodes: [
+ {
+ type: 'geometry',
+ coreId: 'Cube-mesh2',
+ },
+ ],
},
],
},
View
9 test/quadflat.js
@@ -26,7 +26,6 @@ SceneJS.createScene({
type: 'geometry',
coreId: 'Cube-mesh',
primitive: 'triangles',
- resource: 'Cube-mesh',
positions: [1.0,1.0,-1.0,1.0,-1.0,-1.0,1.0,0.999999523163,1.0,0.999999403954,-1.00000095367,1.0,],
normals: [1.0,-2.8312200584e-07,0.0,1.0,-2.8312200584e-07,0.0,1.0,-2.8312200584e-07,0.0,1.0,-2.8312200584e-07,0.0,],
indices: [0,2,3,0,3,1,],
@@ -86,15 +85,7 @@ SceneJS.createScene({
nodes: [
{
type: 'material',
- id: 'Cube-mesh-Material',
coreId: 'Material',
- baseColor:
- {
- r: 0.64,
- b: 0.64,
- g: 0.64,
- },
- emit: 0.0,
nodes: [
{
type: 'geometry',
View
16 test/quadtexlit.js
@@ -42,7 +42,6 @@ SceneJS.createScene({
type: 'geometry',
coreId: 'Cube_007-mesh',
primitive: 'triangles',
- resource: 'Cube_007-mesh',
positions: [1.0,1.0,-1.0,1.0,-1.0,-1.0,1.0,1.0,1.0,1.0,-1.0,1.0,],
uv: [1.0,0.0,0.0,0.0,1.0,1.0,0.0,1.0,],
normals: [1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,],
@@ -128,22 +127,7 @@ SceneJS.createScene({
nodes: [
{
type: 'material',
- id: 'Cube_007-mesh-Plain',
coreId: 'Plain',
- shine: 12.0,
- baseColor:
- {
- r: 0.5,
- b: 0.5,
- g: 0.5,
- },
- specularColor:
- {
- r: 0.25,
- b: 0.25,
- g: 0.25,
- },
- emit: 0.0,
nodes: [
{
type: 'geometry',

0 comments on commit a9610f6

Please sign in to comment.
Something went wrong with that request. Please try again.