Exemplo n.º 1
0
        protected override void OnPaint(float dt, Vec2 pos)
        {
            base.OnPaint(dt, pos);
            float num = this.m_strength.Value * 32f * dt;

            TerrainManipulator.Bump(pos, (this.m_painting == ToolPaint.PaintingMode.Plus) ? num : (-num), this.m_brush);
        }
Exemplo n.º 2
0
        protected override void OnPaintGrab(float x, float y)
        {
            base.OnPaintGrab(x, y);
            float amount = -y * this.m_strength.Value * 0.3f;

            TerrainManipulator.Bump(this.m_cursorPos.XY, amount, this.m_brush);
        }