topical media & game development
graphic-webgl-scenejs-examples-tron-tank-grid-floor.js / js
var gridFloorJSON = {
id: "grid-floor",
type: "material",
baseColor: { r: 1.0, g: 1.0, b: 1.0 },
specularColor: { r: 0.0, g: 0.0, b: 0.0 },
specular: 0.2,
shine: 2.0,
nodes: [
{
type: "texture",
layers: [
{
uri: "../web/images/grid.jpg",
minFilter: "linearMipMapLinear",
magFilter: "linear",
wrapS: "repeat",
wrapT: "repeat",
isDepth: false,
depthMode:"luminance",
depthCompareMode: "compareRToTexture",
depthCompareFunc: "lequal",
flipY: false,
width: 1,
height: 1,
internalFormat:"lequal",
sourceFormat:"alpha",
sourceType: "unsignedByte",
applyTo:"baseColor",
blendMode: "multiply",
scale : { x: 300, y: 300, z: 1.0 }
}
],
nodes: [
{
type: "scale",
x: 6400,
y: .5,
z : 4800,
nodes: [
{
type: "cube"
}
]
}
]
}
]
};
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.