

#include "subsys_icons.txt"
#include "starpedia.txt"
#include "rock_textures.txt"
#include "planet_textures.txt"
#include "distant_galaxies.txt"
#include "gui_images.txt"
#include "distant_icons.txt"
#include "research_icons.txt"

Material: rangeRing
#if shaders & !intel
 RenderMode: RangeRing
#else
 Texture: Images/rangeRing.png
 RenderMode: Alpha
 RenderVal: 0
#end
 FlagOff: Lighting
 FlagOff: ZWrite

Material: star_animated
 Defer: High
 FlagOff: Lighting
#if shaders
 Texture: Images/star_tex.png
	#if hi_shaders
	  Texture2: Images/planets/difference_noise.png
	  RenderMode: StarAnimHigh
	#elif med_shaders
	  RenderMode: StarAnim
	#else
	 RenderMode: SolidSignedColored
	#end
#else
 Texture: Images/star_tex_basic.png
#end

Material: star_static
 Defer: High
#if shaders
 Texture: Images/star_tex.png
 RenderMode: SolidSignedColored
#else
 Texture: Images/star_tex_basic.png
#end
 FlagOff: Lighting

Material: distantStar
 Defer: Required
 Texture: Images/distant_white_star.png
 RenderMode: Alpha
 RenderVal: 0.05
 FlagOff: Lighting 

Material: systemUnderAttack
 Defer: Required
 //Texture: Images/system_underattack.png
 RenderMode: Colored
 RenderVal: 0
 FlagOff: Lighting
 FlagOff: ZWrite

Material: emptyEmpty
 Defer: Required
 Texture: Images/emptyEmpty.png
 RenderMode: AttackGlow
 RenderVal: 0
 FlagOff: Lighting
 FlagOff: ZWrite

Material: emptyFringe
 Defer: Required
 Texture: Images/emptyFringe.png
 RenderMode: AttackGlow
 RenderVal: 0
 FlagOff: Lighting
 FlagOff: ZWrite

Material: emptyColony
 Defer: Required
 Texture: Images/emptyColony.png
 RenderMode: AttackGlow
 RenderVal: 0
 FlagOff: Lighting
 FlagOff: ZWrite

Material: emptySector
 Defer: Required
 Texture: Images/emptySector.png
 RenderMode: AttackGlow
 RenderVal: 0
 FlagOff: Lighting
 FlagOff: ZWrite

Material: scoutEmpty
 Defer: Required
 Texture: Images/scoutEmpty.png
 RenderMode: AttackGlow
 RenderVal: 0
 FlagOff: Lighting
 FlagOff: ZWrite

Material: scoutFringe
 Defer: Required
 Texture: Images/scoutFringe.png
 RenderMode: AttackGlow
 RenderVal: 0
 FlagOff: Lighting
 FlagOff: ZWrite

Material: scoutColony
 Defer: Required
 Texture: Images/scoutColony.png
 RenderMode: AttackGlow
 RenderVal: 0
 FlagOff: Lighting
 FlagOff: ZWrite

Material: scoutSector
 Defer: Required
 Texture: Images/scoutSector.png
 RenderMode: AttackGlow
 RenderVal: 0
 FlagOff: Lighting
 FlagOff: ZWrite

Material: armyEmpty
 Defer: Required
 Texture: Images/armyEmpty.png
 RenderMode: AttackGlow
 RenderVal: 0
 FlagOff: Lighting
 FlagOff: ZWrite

Material: armyFringe
 Defer: Required
 Texture: Images/armyFringe.png
 RenderMode: AttackGlow
 RenderVal: 0
 FlagOff: Lighting
 FlagOff: ZWrite

Material: armyColony
 Defer: Required
 Texture: Images/armyColony.png
 RenderMode: AttackGlow
 RenderVal: 0
 FlagOff: Lighting
 FlagOff: ZWrite

Material: armySector
 Defer: Required
 Texture: Images/armySector.png
 RenderMode: AttackGlow
 RenderVal: 0
 FlagOff: Lighting
 FlagOff: ZWrite

Material: selectRing
 Defer: Required
 Texture: Images/GUI/Cursor.png
 RenderMode: Alpha
 RenderVal: 0
 FlagOff: Lighting
 FlagOff: ZWrite
 FlagOff: BackfaceCulling

Material: planeDisc
#if shaders
 RenderMode: PlaneDisc
 Defer: Required
#else
 Texture: Images/planeDisc.png
 RenderMode: Alpha
 RenderVal: 0
#end
 FlagOff: Lighting
 FlagOff: ZWrite
 FlagOff: BackfaceCulling

Material: flagIcon
 Defer: Required
 Texture: Images/flag_ico.png
 RenderMode: Alpha
 RenderVal: 0
 FlagOff: Lighting
 FlagOff: ZWrite

Material: fleet_leader
 Defer: Required
 Texture: Images/fleet_leader.png
 RenderMode: Alpha
 RenderVal: 0
 FlagOff: Lighting
 FlagOff: ZWrite

Material: galaxyIco
 Defer: Required
 Texture: Images/galaxyIco.png

Material: starIco
 Defer: Required
 Texture: Images/starIco.png

Material: planetIco
 Defer: Required
 Texture: Images/planetIco.png

Material: galaxy_skybox
 Defer: Required
 Texture: Images/galaxy_bg1.png

Material: explosion
 Texture: Images/explosion.png
 RenderMode: Add
 FlagOff: ZWrite
 FlagOff: Lighting

Material: flak_dust
 Texture: Images/flak.png
 RenderMode: Alpha
 FlagOff: ZWrite
 FlagOff: Lighting

#makeMipMaps off
Material: corona
 Defer: Required
#if shaders & !intel
 RenderMode: CoronaAnim
 Texture: Images/corona_anim1.png
#else
 Texture: Images/corona.png
 RenderMode: Add
#end
 FlagOff: ZWrite
 FlagOff: Lighting
#makeMipMaps on

Material: smoke
 Texture: Images/smoke.png
 RenderMode: Alpha
 FlagOff: ZWrite
 FlagOff: Lighting

Material: dust
 Texture: Images/noisy_dust.png
 RenderMode: Alpha
 FlagOff: ZWrite
 FlagOff: Lighting

Material: ThrustFlare_Side
 Texture: Images/engineflare_conventional_side.png
 RenderMode: SignedColored
 FlagOff: ZWrite
 FlagOff: Lighting
 FlagOn: Clamp

Material: ThrustFlare_End
 Texture: Images/engineflare_conventional.png
 RenderMode: SignedColored
 FlagOff: ZWrite
 FlagOff: Lighting

Material: comet_tail
 Defer: Required
#if shaders
 Texture: Images/comet_tail.png
 RenderMode: CometTail
#else
 Texture: Images/comet_tail_lowq.png
 RenderMode: Add
 FlagOn: Clamp
#end
 FlagOff: ZWrite
 FlagOff: Lighting

Material: comet_sun_tail
 Defer: Required
 Texture: Images/comet_sun_tail.png
 RenderMode: Alpha
 FlagOff: ZWrite
 FlagOff: Lighting
 FlagOn: Clamp

Material: flare
 Texture: Images/flare.png
 RenderMode: Add
 FlagOff: ZWrite
 FlagOff: Lighting

Material: laser_impact
 Texture: Images/laserburn.png
 RenderMode: AdditiveColored
 FlagOff: ZWrite
 FlagOff: Lighting

Material: laser_emit
 Texture: Images/laseremit.png
 RenderMode: AdditiveColored
 FlagOff: ZWrite
 FlagOff: Lighting

Material: galaxy_dust
 Texture: Images/galaxy_dust.png
 RenderMode: Alpha
 FlagOff: ZWrite
 FlagOff: Lighting

Material: spaceRing_tex
 Texture: Images/Ships/Spacedock.png
 Texture2: Images/Ships/Spacedock_glowmap.png
 RenderMode: ShipLights
 FlagOff: Lighting
 FlagOn: NormalizeNorms
 Specular: 050505
 SpecularFactor: 3
//#if shaders
// Texture2: Images/Ships/Spacedock_glowmap.png
// RenderMode: ShipLights
// FlagOff: Lighting
// SpecularFactor: 12
//#else
// FlagOn: NormalizeNorms
// SpecularFactor: 3
// Specular: 050505
//#end

Material: beam
#if shaders
 Texture: Images/beam_detail.png
 Texture2: Images/beam.png
 RenderMode: DetailedBeam
#else
 Texture: Images/beam.png
 RenderMode: Add
#end
 FlagOff: Lighting
 FlagOff: ZWrite

Material: repair_beam
 Defer: Medium
#if shaders
 Texture: Images/repair_beam.png
 Texture2: Images/beam_detail.png
 RenderMode: DetailedBeam
#else
 Texture: Images/repair_beam.png
 RenderMode: Add
#end
 FlagOff: Lighting
 FlagOff: ZWrite

Material: pulsing_beam
 Defer: Medium
 Texture: Images/beam.png
#if shaders
 RenderMode: PulsedBeam
#else
 RenderMode: Add
#end
 FlagOff: Lighting
 FlagOff: ZWrite

Material: wave_beam
 Defer: Medium
 Texture: Images/wave_beam.png
 RenderMode: SignedVertexColored
 FlagOff: Lighting
 FlagOff: ZWrite

Material: glow
 Texture: Images/glow.png
 RenderMode: Alpha
 FlagOff: Lighting
 FlagOff: ZWrite

Material: energy_ring
 Texture: Images/energy_ring.png
 RenderMode: Alpha
 FlagOff: Lighting
 FlagOff: ZWrite

Material: projectile
 Defer: Medium
 Texture: Images/projectile.png
 RenderMode: Alpha
 FlagOff: Lighting
 FlagOff: ZWrite

Material: shields
 Texture: Images/shield.png
#if shaders
 #if med_shaders
  RenderMode: Shield
 #else
  RenderMode: AdditiveColored
 #end
#else
 RenderMode: Add
#end
 FlagOff: Lighting
 FlagOff: ZWrite

Material: shields_static
 Texture: Images/shield.png
#if shaders
 RenderMode: AdditiveColored
#else
 RenderMode: Add
#end
 FlagOff: Lighting
 FlagOff: ZWrite

Material: planetchunk1
 Texture: Images/PLANETCHUNK_1.png
 RenderMode: Alpha
 FlagOff: Lighting
 FlagOff: ZWrite

Material: debris1
 Texture: Images/debris_1.png
 RenderMode: Alpha
 FlagOff: Lighting

Material: debris2
 Texture: Images/debris_2.png
 RenderMode: Colored
 FlagOff: Lighting

Material: debris3
 Texture: Images/debris_3.png
 RenderMode: Colored
 FlagOff: Lighting

Material: sparks
 Texture: Images/sparks.png
 FlagOff: ZWrite
#if med_shaders
 RenderMode: SignedVertexColored
#else
 RenderMode: Add
#end

Material: plasmathruster
 Texture: Images/thruster_plasma.png
#if shaders
 RenderMode: SignedVertexColored
#else
 RenderMode: Add
#end
 FlagOff: Lighting
 FlagOff: ZWrite

Material: plasmathruster_back
 Texture: Images/thruster_plasma_back.png
#if shaders
 RenderMode: SignedVertexColored
#else
 RenderMode: Add
#end
 FlagOff: Lighting
 FlagOff: ZWrite

Material: bullet
 Defer: Low
 Texture: Images/bullet.png
 RenderMode: AdditiveColored
 FlagOff: Lighting
 FlagOff: ZWrite 
 FlagOn: Clamp

Material: plasma_bolt
 Defer: Low
 Texture: Images/plasma_bolt.png
 RenderMode: AdditiveColored
 FlagOff: Lighting
 FlagOff: ZWrite 
 FlagOn: Clamp

Material: muon
 Defer: Low
 Texture: Images/muon.png
 RenderMode: AdditiveColored
 FlagOff: Lighting
 FlagOff: ZWrite
 FlagOn: Clamp
 
Material: rocket
 Defer: Low
 Texture: Images/rocket.png
 RenderMode: Alpha
 FlagOff: Lighting
 FlagOff: ZWrite
 FlagOn: Clamp
 
Material: torpedo
 Defer: Low
 Texture: Images/torpedo.png
 RenderMode: Alpha
 FlagOff: Lighting
 FlagOff: ZWrite
 FlagOn: Clamp
