public Color GetColor() { if (Color == null) { Color = new Engine_Point(1f, 1f, .28f, 1, PointType.Color); } return(new Color(Color.X, Color.Y, Color.Z, Color.L)); }
public Engine_Geometry() { Engine_Faces = new List <Engine_Face>(); Position = new Engine_Point() { EngPointType = PointType.Position }; Rotation = new Engine_Point() { EngPointType = PointType.Rotation }; GeoCullModel = CullMode.CullCcw; }
public void DrawLine(Engine_Point position, Engine_Point vector, Color color, Node Parent) { var linechild = Parent.CreateChild("Line"); var cusLine = linechild.CreateComponent <CustomGeometry>(); cusLine.BeginGeometry(0, PrimitiveType.LineList); var mat = Material_Ext.noLitFromColor(color, true); // mat.FillMode = FillMode.FillWireframe; cusLine.SetMaterial(mat); cusLine.DefineVertex(vector.ToVec3()); cusLine.DefineColor(color); cusLine.Commit(); linechild.Position = position.ToVec3(); }
public Engine_Face() { FaceColor = new Engine_Point(.28f, .28f, .28f, 1, PointType.Color); }