Пример #1
0
 void vertexHelper_PointChanged(PointHelper sender)
 {
     if (Selected)
     {
         RebuildMesh(EditorOptions.Direct3DDevice);
     }
 }
Пример #2
0
        public static void Init(Device dev)
        {
            VolumeMesh = Mesh.Box(dev, 2f, 2f, 2f);
            Material = new NJS_MATERIAL
            {
                DiffuseColor = Color.FromArgb(200, Color.Purple),
                SpecularColor = Color.Black,
                UseAlpha = true,
                DoubleSided = false,
                Exponent = 10,
                IgnoreSpecular = false,
                UseTexture = false
            };

            pointHelperA = new PointHelper { BoxTexture = Gizmo.ATexture, DrawCube = true };
            pointHelperB = new PointHelper { BoxTexture = Gizmo.BTexture, DrawCube = true };
        }
Пример #3
0
        public static void Init()
        {
            SelectedMaterial = new NJS_MATERIAL
            {
                DiffuseColor = Color.White,
                SpecularColor = Color.Black,
                UseAlpha = false,
                DoubleSided = true,
                Exponent = 10,
                IgnoreSpecular = false,
                UseTexture = false,
                IgnoreLighting = true
            };

            UnSelectedMaterial = new NJS_MATERIAL
            {
                DiffuseColor = Color.Maroon,
                SpecularColor = Color.Black,
                UseAlpha = false,
                DoubleSided = true,
                Exponent = 10,
                IgnoreSpecular = false,
                UseTexture = false,
                IgnoreLighting = true
            };

            vertexHelper = new PointHelper { HandleSize = 3f };
        }