require "luascape.math"

settings = {
  level = "level.ma",
  spawnPoint = Vector(0, 10, 0),
  numplayer = 1,
  player1device = "mouse1",
  player2device = "mouse3",
  kristall = "kristall",
  dynamic = "dynamic",
  crystalDensity = 1000.0,
  effectHoldTime = 0.5,
  effectSize = 5.0,
  textureCompression = true,
  renderer = "complexlevelrenderer.lua",
  retail = true
}
settings.mouse = {
  showCursor = false,
}
settings.physics = {
  debug = false,
  stepInterval = 1 / 150.0,
  gravity = Vector(0,-20,0)
}
settings.bulletTimeController = {
  durationPerRad = 1.0
}
settings.forceController = {
  maxForce = 5000000,
  maxRange = 40,
  gravityMultiplier = 6,
  inhertia = 0.1
}
settings.tiny = {
  jumpImpulse = 6.8,
  rotationSpeed = 9.0,
  speedForward = 8,
  speedBackward = 8.0,
  speedStrafe = 8.0
}

settings.shadows = {
  shadowMapSize = 2048,
  shadowRange = 64,
  fixedDepthBias = 1.1,
  slopeDepthBias = -0.2,--4.0
}

settings.fog = {
  near = 70,
  far = 200,
  texture = "posteffect_layer_textur.jpg"
}

settings.camera = {
  near = 0.1,
  far = 1000,
  clip = 60
}

settings.hatch = {
  scale = 0.015,
  perPixel = true,
  rgb = true,
  layers = 6,
  fadeNear = 30,
  fadeFar = settings.camera.clip,
  anisotropy = 4.0,
}

-- deprecated, do not use anymore
settings.outlines = true
settings.hatchScale = settings.hatch.scale
settings.perPixelHatch = settings.hatch.perPixel
settings.hatchRGB = settings.hatch.rgb
settings.hatchLayers = settings.hatch.layers
settings.mousesensity = settings.mouse.sensitivity
settings.showCursor = settings.mouse.showCursor
settings.mouse.sensitivity = 0.005

-- config.lua can be used to override settings
pcall(dofile, "config.lua")
