fix material
This commit is contained in:
parent
3eeea33b0c
commit
ece4afe350
@ -31,6 +31,7 @@ namespace PDF3D.Addin
|
|||||||
{
|
{
|
||||||
Name = "default",
|
Name = "default",
|
||||||
MaterialDiffuse = System.Drawing.Color.FromArgb(255, 125, 125, 125),
|
MaterialDiffuse = System.Drawing.Color.FromArgb(255, 125, 125, 125),
|
||||||
|
MaterialOpacity = 1
|
||||||
};
|
};
|
||||||
this._scene.MaterialResources.Add(mat.Name, mat);
|
this._scene.MaterialResources.Add(mat.Name, mat);
|
||||||
this._scene.ShaderResources.Add(mat.Name,
|
this._scene.ShaderResources.Add(mat.Name,
|
||||||
|
@ -96,11 +96,6 @@ public class Program
|
|||||||
item.Parents[0].Transform.c1r0, item.Parents[0].Transform.c1r1, item.Parents[0].Transform.c1r2,
|
item.Parents[0].Transform.c1r0, item.Parents[0].Transform.c1r1, item.Parents[0].Transform.c1r2,
|
||||||
item.Parents[0].Transform.c2r0, item.Parents[0].Transform.c2r1, item.Parents[0].Transform.c2r2,
|
item.Parents[0].Transform.c2r0, item.Parents[0].Transform.c2r1, item.Parents[0].Transform.c2r2,
|
||||||
item.Parents[0].Transform.c3r0, item.Parents[0].Transform.c3r1, item.Parents[0].Transform.c3r2 }));
|
item.Parents[0].Transform.c3r0, item.Parents[0].Transform.c3r1, item.Parents[0].Transform.c3r2 }));
|
||||||
//dict3D.Put(new PdfName("C2W"),
|
|
||||||
// new PdfArray(new double[] { item.Parents[0].Transform.c0r0, item.Parents[0].Transform.c1r0, item.Parents[0].Transform.c2r0,
|
|
||||||
// item.Parents[0].Transform.c0r1, item.Parents[0].Transform.c1r1, item.Parents[0].Transform.c2r1,
|
|
||||||
// item.Parents[0].Transform.c0r2, item.Parents[0].Transform.c1r2, item.Parents[0].Transform.c2r2,
|
|
||||||
// item.Parents[0].Transform.c3r0, item.Parents[0].Transform.c3r1, item.Parents[0].Transform.c3r2 }));
|
|
||||||
dict3D.Flush();
|
dict3D.Flush();
|
||||||
list.Add(dict3D);
|
list.Add(dict3D);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user