I am trying to display semitransparent "cubes within cubes", however,
it seems as though the two triangles of each side are differently
shaded:

http://www.iemar.tuwien.ac.at/processviz/away3d/questions/cubes_triangles_show/

I gathered this might be because the centerpoints of the two
triangles, have a different shading. I then tried to use a
DirectionalLight3D so that the shading should be the same all over the
side of a cube. However, I had no luck with this. My code is:

new Cube(
  material:new WireColorMaterial("random", {width:5, alpha:0.5}),
  x:0, y:0, z:0,
  width:1, height:1, depth: 1
);

Can anybody give me a hint how I can obtain a cube that has semi-
transparent sides with a flat shading ? that'd be nice.

Reply via email to