/// <summary> /// Assigns the default values to core. /// </summary> /// <param name="core">The core.</param> protected override void AssignDefaultValuesToSceneNode(SceneNode core) { material.Width = (float)Size.Width; material.Height = (float)Size.Height; material.Figure = Figure; material.FigureRatio = (float)FigureRatio; material.PointColor = Color.ToColor4(); material.FixedSize = FixedSize; base.AssignDefaultValuesToSceneNode(core); }
protected override void AssignDefaultValuesToSceneNode(SceneNode core) { base.AssignDefaultValuesToSceneNode(core); if (core is NodePostEffectMeshOutlineBlur c) { c.EffectName = EffectName; c.Color = Color.ToColor4(); c.ScaleX = (float)ScaleX; c.ScaleY = (float)ScaleY; c.NumberOfBlurPass = (int)NumberOfBlurPass; } }
/// <summary> /// Assigns the default values to core. /// </summary> /// <param name="core">The core.</param> protected override void AssignDefaultValuesToSceneNode(SceneNode core) { if (core is PointNode n) { n.Size = new Size2F((float)Size.Width, (float)Size.Height); n.Figure = Figure; n.FigureRatio = (float)FigureRatio; n.Color = Color.ToColor4(); } base.AssignDefaultValuesToSceneNode(core); }
protected override MaterialCore OnCreateCore() { return(new PointMaterialCore() { PointColor = Color.ToColor4(), Width = (float)Size.Width, Height = (float)Size.Height, Figure = Figure, FigureRatio = (float)FigureRatio, Name = Name, EnableDistanceFading = EnableDistanceFading, FadingNearDistance = (float)FadingNearDistance, FadingFarDistance = (float)FadingFarDistance }); }