Hi,
This is my first post in the “bug section”, not sure if it belongs here.
Here is the code I used to create the screenshot attached (using beta).
var tmCaRed:TextureMaterial = new TextureMaterial(new BitmapTexture((new texCaRed()).bitmapData));
tmCaRed.repeat = true;
tmCaRed.alphaBlending = true;
var matTex:TextureMaterial = new TextureMaterial(new BitmapTexture(new texLines1().bitmapData));
matTex.alphaBlending = true;
matTex.repeat = true;
matTex.bothSides = false;
p = new PlaneGeometry(512, 512, 4, 4, false);
mesh1 = new Mesh(p, tmCaRed);
mesh1.geometry.scaleUV(1, 1);
_view.scene.addChild(mesh1);
mesh1.geometry.addSubGeometry(SubGeometry(mesh1.geometry.subGeometries[0]).clone());
mesh1.subMeshes[1].material = matTex;
Basically, this creates a layered effect of both materials.
If I update to gold, I only see Mat 1 on the plane, Red with lines, the Gradient overlay (Mat 2) is missing.
Is this a bug, or can I not use “subgeometry” in this way anymore?
Regards
PS: there is this post “/forum/viewthread/2835/” already on this forum, I am not sure if this is the same problem. I tried the newest github code as suggested, but it doesn’t work