public void actionEmitWaterCursor()
        {
            _geometryAndSettings.autoEmmiter = true;


            int cursorSlot = _geometryAndSettings.findCursor();

            _geometryAndSettings.waterValueModel[cursorSlot].waterValue     += _geometryAndSettings.cursorEmitterStrength;
            _geometryAndSettings.waterValueModel[cursorSlot].saturationValue = Erosion.INITIAL_SATURATION;
        }
Example #2
0
        public void actionEmitLandCursor()
        {
            int   cursorSlot = _geometryAndSettings.findCursor();
            float effectiveEmitterStrength = _geometryAndSettings.cursorEmitterStrength * 0.003f;

            _geometryAndSettings.landVertices[cursorSlot].Position.Y += effectiveEmitterStrength; // scale appropriate to terrain
            _geometryAndSettings.landVertexBuffer.SetData(_geometryAndSettings.landVertices);
        }