CSS3Dframework icon indicating copy to clipboard operation
CSS3Dframework copied to clipboard

I can't seem to get the shading to work

Open ericdrosas87 opened this issue 5 years ago • 0 comments

Code:

CSS.set_unit("vmin");
CSS.set_perspective();
CSS.group({n:"g1",w:450,h:450})
CSS.pyramid({n:"ship", g: "g1", x: 100, y: 200, w: 200, h: 100, d: 100, b: "#89A4D3", b1: "#6684B8", b2: "#ACC6F3", rx: -20})
CSS.camera({z:300, ry: 0, rx: 40, rz: 150});

setTimeout(() => {
    CSS.move({n:"ship", rz: 1000});
}, 1000)

For some reason though, the b1/b2 property values are not being applied to the different sides of the pyramid. What exactly am I doing wrong?

ericdrosas87 avatar Aug 25 '20 03:08 ericdrosas87