Skip to content

Commit

Permalink
removed normals from skybox plugin to disable shading
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Mar 22, 2013
1 parent d130304 commit 50002e1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions build/latest/plugins/geometry/skybox.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,6 @@ SceneJS.Plugins.addPlugin(
x,-y,-z, -x,-y,-z, -x, y,-z, x, y,-z // v4-v7-v6-v5 back
];

var normals = [
0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1,
1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0,
0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0,
-1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0,
0, -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0,
0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, -1
];

var uv = [
0.5, 0.6666,
0.25, 0.6666,
Expand Down Expand Up @@ -114,7 +105,6 @@ SceneJS.Plugins.addPlugin(
primitive : "triangles",
coreId: "skybox_" + x + "_" + y + "_" + z,
positions : new Float32Array(positions),
normals: new Float32Array(normals),
uv : new Float32Array(uv),
indices : new Uint16Array(indices)
};
Expand Down

0 comments on commit 50002e1

Please sign in to comment.