// Light shader definitions for ET: Legacy renderer2
// !!! This file is a copy of materials/legacy_r2.shader !!!

// It's required in CreateExternalShaders() function when r_materialscan 1 is set (which is current default)

lights/defaultDynamicLight
{
	{
		stage attenuationMapZ
		map lights/squarelight1a
		edgeClamp
	}
	{
		stage attenuationMapXY
		forceHighQuality
		map lights/round
		colored
		zeroClamp
	}
}

lights/defaultPointLight
{
	// this will also be the falloff for any
	// point light shaders that don't specify one
	lightFalloffImage	lights/squarelight1a
	{
		stage attenuationMapXY
		forceHighQuality
		map lights/squarelight1
		colored
		zeroClamp
	}
}

lights/defaultProjectedLight
{
	// by default, stay bright almost all the way to the end
	//lightFalloffImage	_noFalloff

	//lightFalloffImage	lights/skyline1
	lightFalloffImage	lights/squarelight1b
	//lightFalloffImage	makeintensity(lights/flashoff)

	{
		stage attenuationMapXY
		forceHighQuality
		map lights/squarelight1
		colored
		zeroClamp
	}
}
