Creates a spot light.



## Description
no description
## Parameters

<table>
<thead>
	<tr>
		<th>Name</th>
		<th>Type</th>
		<th>Description</th>
	</tr>
</thead>
<tr>
	<td>keepPosWhenParenting</td>
	<td><div class='bg-emerald-800 px-2 py-px text-white rounded-sm'>boolean</div></td>
	<td>toggle on to keep world position when adding a parent or removing from one</td>
</tr>
<tr>
	<td>rotationOrder</td>
	<td><div class='bg-orange-800 px-2 py-px text-white rounded-sm'>integer</div></td>
	<td>rotation order</td>
</tr>
<tr>
	<td>t</td>
	<td><div class='bg-blue-800 px-2 py-px text-white rounded-sm'>vector3</div></td>
	<td>translate</td>
</tr>
<tr>
	<td>r</td>
	<td><div class='bg-blue-800 px-2 py-px text-white rounded-sm'>vector3</div></td>
	<td>rotation</td>
</tr>
<tr>
	<td>s</td>
	<td><div class='bg-blue-800 px-2 py-px text-white rounded-sm'>vector3</div></td>
	<td>scale</td>
</tr>
<tr>
	<td>scale</td>
	<td><div class='bg-yellow-800 px-2 py-px text-white rounded-sm'>float</div></td>
	<td>scale</td>
</tr>
<tr>
	<td>matrixAutoUpdate</td>
	<td><div class='bg-emerald-800 px-2 py-px text-white rounded-sm'>boolean</div></td>
	<td>set for the matrix to be updated every frame</td>
</tr>
<tr>
	<td>color</td>
	<td><div class='bg-lime-800 px-2 py-px text-white rounded-sm'>color</div></td>
	<td>light color</td>
</tr>
<tr>
	<td>intensity</td>
	<td><div class='bg-yellow-800 px-2 py-px text-white rounded-sm'>float</div></td>
	<td>light intensity</td>
</tr>
<tr>
	<td>angle</td>
	<td><div class='bg-yellow-800 px-2 py-px text-white rounded-sm'>float</div></td>
	<td>angle</td>
</tr>
<tr>
	<td>penumbra</td>
	<td><div class='bg-yellow-800 px-2 py-px text-white rounded-sm'>float</div></td>
	<td>penumbra</td>
</tr>
<tr>
	<td>decay</td>
	<td><div class='bg-yellow-800 px-2 py-px text-white rounded-sm'>float</div></td>
	<td>decay</td>
</tr>
<tr>
	<td>distance</td>
	<td><div class='bg-yellow-800 px-2 py-px text-white rounded-sm'>float</div></td>
	<td>distance</td>
</tr>
<tr>
	<td>showHelper</td>
	<td><div class='bg-emerald-800 px-2 py-px text-white rounded-sm'>boolean</div></td>
	<td>toggle on to show helper</td>
</tr>
<tr>
	<td>helperSize</td>
	<td><div class='bg-yellow-800 px-2 py-px text-white rounded-sm'>float</div></td>
	<td>helper size</td>
</tr>
<tr>
	<td>tmap</td>
	<td><div class='bg-emerald-800 px-2 py-px text-white rounded-sm'>boolean</div></td>
	<td>toggle on to show helper</td>
</tr>
<tr>
	<td>map</td>
	<td><div class='bg-indigo-800 px-2 py-px text-white rounded-sm'>node_path</div></td>
	<td>helper size</td>
</tr>
<tr>
	<td>name</td>
	<td><div class='bg-purple-800 px-2 py-px text-white rounded-sm'>string</div></td>
	<td>light name</td>
</tr>
<tr>
	<td>castShadow</td>
	<td><div class='bg-emerald-800 px-2 py-px text-white rounded-sm'>boolean</div></td>
	<td>toggle on to cast shadows</td>
</tr>
<tr>
	<td>shadowAutoUpdate</td>
	<td><div class='bg-emerald-800 px-2 py-px text-white rounded-sm'>boolean</div></td>
	<td>toggle off if the shadows do not need to be regenerated</td>
</tr>
<tr>
	<td>shadowUpdateOnNextRender</td>
	<td><div class='bg-emerald-800 px-2 py-px text-white rounded-sm'>boolean</div></td>
	<td>press button to update the shadows on next render</td>
</tr>
<tr>
	<td>shadowRes</td>
	<td><div class='bg-teal-800 px-2 py-px text-white rounded-sm'>vector2</div></td>
	<td>shadows res</td>
</tr>
<tr>
	<td>shadowBias</td>
	<td><div class='bg-yellow-800 px-2 py-px text-white rounded-sm'>float</div></td>
	<td>shadows bias</td>
</tr>
<tr>
	<td>shadowNear</td>
	<td><div class='bg-yellow-800 px-2 py-px text-white rounded-sm'>float</div></td>
	<td>shadows near</td>
</tr>
<tr>
	<td>shadowFar</td>
	<td><div class='bg-yellow-800 px-2 py-px text-white rounded-sm'>float</div></td>
	<td>shadows far</td>
</tr>
<tr>
	<td>shadowRadius</td>
	<td><div class='bg-yellow-800 px-2 py-px text-white rounded-sm'>float</div></td>
	<td>shadows radius. This only has effect when setting the ROP/WebGLRenderer's shadowMapType to VSM</td>
</tr>
<tr>
	<td>volumetric</td>
	<td><div class='bg-slate-800 px-2 py-px text-white rounded-sm'>folder</div></td>
	<td>display shadow on a plane behind the light</td>
</tr>
<tr>
	<td>tvolumetric</td>
	<td><div class='bg-emerald-800 px-2 py-px text-white rounded-sm'>boolean</div></td>
	<td>toggle on to add a volumetric effect to the spotlight</td>
</tr>
<tr>
	<td>volAttenuation</td>
	<td><div class='bg-yellow-800 px-2 py-px text-white rounded-sm'>float</div></td>
	<td>volumetric attenuation</td>
</tr>
<tr>
	<td>volAnglePower</td>
	<td><div class='bg-yellow-800 px-2 py-px text-white rounded-sm'>float</div></td>
	<td>volumetric angle power</td>
</tr>
<tr>
	<td>raymarchingPenumbra</td>
	<td><div class='bg-yellow-800 px-2 py-px text-white rounded-sm'>float</div></td>
	<td>this affects the shadows cast inside raymarchingBuilder materials</td>
</tr>
<tr>
	<td>raymarchingShadowBiasAngle</td>
	<td><div class='bg-yellow-800 px-2 py-px text-white rounded-sm'>float</div></td>
	<td>shadow bias</td>
</tr>
<tr>
	<td>raymarchingShadowBiasDistance</td>
	<td><div class='bg-yellow-800 px-2 py-px text-white rounded-sm'>float</div></td>
	<td>shadow bias</td>
</tr>
</table>