// Stained glass
brightmap texture STAIN01 {
    map "textures/stainx01.png"
}

brightmap texture STAIN02 {
    map "textures/stainx02.png"
}

brightmap texture STAIN03 {
    map "textures/stainx03.png"
}

brightmap texture STAIN04 {
    map "textures/stainx04.png"
}


// Ceiling lamp
brightmap sprite HLMPX0 {
    map "sprites/ceiling_lights/hlmpx0.png"
}

PulseLight SMALLLANTERN {
    color 1.0 1.0 0.85
    size 60
    secondarySize 62
    interval 0.8
    offset 0 -36 0
}


// Caustics
HardwareShader texture DROCK3C {
  Shader "shaders/func_warp_caustic.fp"
  Speed 0.65
}

HardwareShader texture SUPC532E {
  Shader "shaders/func_warp_caustic.fp"
  Speed 0.65
}

HardwareShader texture SUPC532B {
  Shader "shaders/func_warp_caustic.fp"
  Speed 0.65
}

HardwareShader texture MARBGRYC {
  Shader "shaders/func_warp_caustic.fp"
  Speed 0.65
}

HardwareShader texture ROCK11C {
  Shader "shaders/func_warp_caustic.fp"
  Speed 0.65
}

HardwareShader texture DROCK1C {
  Shader "shaders/func_warp_caustic.fp"
  Speed 0.65
}


// Dungeon switches
brightmap texture DUNSW1 {
    map "textures/dunswb1.png"
}
brightmap texture DUNSW2 {
    map "textures/dunswb2.png"
}
brightmap texture DUNSW3 {
    map "textures/dunswb1.png"
}
brightmap texture DUNSW4 {
    map "textures/dunswb2.png"
}


// Explosive barrel
object WoodExplosiveBarrel {
  frame B3XPC { light ROCKET_X1 }
  frame B3XPD { light ROCKET_X2 }
  frame B3XPE { light ROCKET_X3 }
}


// Color grading
HardwareShader PostProcess Scene {
  Name "ColorGrade"
  Shader "shaders/colorgrade.fp" 330
  Texture lut "PPLUT"
  Uniform int lutA
  Uniform int lutB
  Uniform float alpha
  Enabled
}


// Key lighting
PointLight KEYPURPLE1 {
    color 0.5 0.25 1.0
    size 72
    offset 0 8 0
}

PointLight KEYPURPLE2 {
    color 0.5 0.25 1.0
    size 68
    offset 0 8 0
}

PointLight KEYRED1 {
    color 0.85 0.0 0.0
    size 96
    offset 0 8 0
}

PointLight KEYRED2 {
    color 0.85 0.0 0.0
    size 90
    offset 0 8 0
}

PointLight KEYBLUE1 {
    color 0.0 0.5 1.0
    size 64
    offset 0 8 0
}

PointLight KEYBLUE2 {
    color 0.0 0.5 1.0
    size 60
    offset 0 8 0
}

PointLight KEYYELLOW1 {
    color 1.0 0.5 0.0
    size 32
    offset 0 8 0
}

PointLight KEYYELLOW2 {
    color 1.0 0.5 0.0
    size 28
    offset 0 8 0
}

object BlueSkull {
  frame BSKUA { light KEYBLUE2 }
  frame BSKUB { light KEYBLUE1 }
}

object RedSkull {
  frame RSKUA { light KEYRED2 }
  frame RSKUB { light KEYRED1 }
}

object YellowSkull {
  frame YSKUA { light KEYYELLOW2 }
  frame YSKUB { light KEYYELLOW1 }
}

object PurpleSkull {
  frame PSKUA { light KEYPURPLE2 }
  frame PSKUB { light KEYPURPLE1 }
}

brightmap sprite PSKUA0 {
  map "sprites/keys/brightmaps/PSKUA0.png"
  disablefullbright
}

brightmap sprite PSKUB0 {
  map "sprites/keys/brightmaps/PSKUB0.png"
  disablefullbright
}
