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); }
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); }