protected override void OnPaint(float dt, Vec2 pos) { base.OnPaint(dt, pos); float num = this.m_strength.Value * 40f * dt; TerrainManipulator.Noise(pos, (this.m_painting == ToolPaint.PaintingMode.Plus) ? num : (-num), this.m_brush); }
protected override void OnPaintGrab(float x, float y) { base.OnPaintGrab(x, y); float amount = -y * this.m_strength.Value * 0.3f; TerrainManipulator.Noise(this.m_cursorPos.XY, amount, this.m_brush); }