Exemplo n.º 1
0
        protected override void OnPaint(float dt, Vec2 pos)
        {
            base.OnPaint(dt, pos);
            float value = this.m_height.Value;

            TerrainManipulator.SetHeight(pos, value, this.m_brush);
        }
Exemplo n.º 2
0
 protected override void OnPaint(float dt, Vec2 pos)
 {
     base.OnPaint(dt, pos);
     if (this.m_painting == ToolPaint.PaintingMode.Plus)
     {
         TerrainManipulator.SetHeight(pos, this.m_height, this.m_brush);
         return;
     }
     TerrainManipulator.Average(pos, this.m_brush);
 }