Exemple #1
0
        public EditorSceneElement_EditGadgetInstance_Paintable(EditGadgetInstance g) : base(g)
        {
            brush_now_mesh = new NowMesh(
                MeshExtensions.CreateCircleOutline(0.03f, 32),
                MaterialExtensions.CreateUnlitColorMaterial(Color.black)
                );

            surface_now_mesh = new NowMesh(
                MeshExtensions.CreateCenterQuad(),
                MaterialExtensions.CreateUnlitTransparentTextureMaterial(null)
                );

            last_texture_point = new Vector2();
            line_tool          = new SurfaceTool_Line_Basic_Straight <Color>(0.1f);
        }