Ejemplo n.º 1
0
 /// <summary>
 ///     Setea y configura la technique que muestra el pincel sobre el terreno.
 /// </summary>
 /// <param name="terrain"></param>
 public virtual void configureTerrainEffect(SmartTerrain terrain)
 {
     if (Rounded)
     {
         terrain.Technique = "PositionColoredTexturedWithRoundBrush";
     }
     else
     {
         terrain.Technique = "PositionColoredTexturedWithSquareBrush";
     }
     terrain.Effect.SetValue("brushPosition", new[] { Position.X, Position.Z });
     terrain.Effect.SetValue("brushRadius", Radius);
     terrain.Effect.SetValue("brushHardness", Hardness);
     terrain.Effect.SetValue("brushColor1", Color1.ToArgb());
     terrain.Effect.SetValue("brushColor2", Color2.ToArgb());
 }