<light>

<baseMaterial materialSlotName="string"Description: Material slot name in the i3d file
Type: String
Required: no
materialTemplateName="string"Description: Name of template to apply (all attributes will be used from template)
Type: String
Required: no
materialTemplateUseColorOnly="false"Description: If 'true', only the color is used from the material template. The rest from the i3d file.
Type: Boolean
Default: false
Required: no
>

<clearCoat intensity="float"Description: Intensity of clear coat
Type: Float
Required: no
smoothness="float"Description: Smoothness of clear coat
Type: Float
Required: no
/>

<colorScale value="string"Description: Material color if it should not be used from configuration (can also be a different material template, from which then ONLY the color is taken)
Type: String
Required: no
/>

<detail diffuse="string"Description: Path to detail diffuse texture
Type: Path to a certain file
Required: no
normal="string"Description: Path to detail normal texture
Type: Path to a certain file
Required: no
specular="string"Description: Path to detail specular texture
Type: Path to a certain file
Required: no
/>

<metalness value="float"Description: Metalness value
Type: Float
Required: no
/>

<smoothness value="float"Description: Smoothness value
Type: Float
Required: no
/>

<textures diffuse="string"Description: Path to diffuse texture
Type: Path to a certain file
Required: no
normal="string"Description: Path to normal texture
Type: Path to a certain file
Required: no
specular="string"Description: Path to specular texture
Type: Path to a certain file
Required: no
/>

</baseMaterial>

<bottomLight excludedLightTypes="1 2 .. n"Description: Excluded light types
Type: Multiple values
Required: no
intensity="5"Description: Intensity
Type: Float
Default: 5
Required: no
lightTypes="1 2 .. n"Description: Light types
Type: Multiple values
Required: no
node="node"Description: Visual light node
Type: Index to i3d node or i3d mapping identifier
Required: no
shaderNode="node"Description: Shader node
Type: Index to i3d node or i3d mapping identifier
Required: no
toggleVisibility="false"Description: Toggle visibility
Type: Boolean
Default: false
Required: no
uvSlotIndex="integer"Description: UV slot if vehicleShader with 'lightIds' shader parameter is used (slot 1-16)
Type: Integer
Default: if not defined, all slots will be set equally
Required: no
/>


<brakeLight excludedLightTypes="1 2 .. n"Description: Excluded light types
Type: Multiple values
Required: no
intensity="5"Description: Intensity
Type: Float
Default: 5
Required: no
lightTypes="1 2 .. n"Description: Light types
Type: Multiple values
Required: no
node="node"Description: Visual light node
Type: Index to i3d node or i3d mapping identifier
Required: no
shaderNode="node"Description: Shader node
Type: Index to i3d node or i3d mapping identifier
Required: no
toggleVisibility="false"Description: Toggle visibility
Type: Boolean
Default: false
Required: no
uvSlotIndex="integer"Description: UV slot if vehicleShader with 'lightIds' shader parameter is used (slot 1-16)
Type: Integer
Default: if not defined, all slots will be set equally
Required: no
/>


<dayTimeLight excludedLightTypes="1 2 .. n"Description: Excluded light types
Type: Multiple values
Required: no
intensity="5"Description: Intensity
Type: Float
Default: 5
Required: no
lightTypes="1 2 .. n"Description: Light types
Type: Multiple values
Required: no
node="node"Description: Visual light node
Type: Index to i3d node or i3d mapping identifier
Required: no
shaderNode="node"Description: Shader node
Type: Index to i3d node or i3d mapping identifier
Required: no
toggleVisibility="false"Description: Toggle visibility
Type: Boolean
Default: false
Required: no
uvSlotIndex="integer"Description: UV slot if vehicleShader with 'lightIds' shader parameter is used (slot 1-16)
Type: Integer
Default: if not defined, all slots will be set equally
Required: no
/>


<defaultLight excludedLightTypes="1 2 .. n"Description: Excluded light types
Type: Multiple values
Required: no
intensity="5"Description: Intensity
Type: Float
Default: 5
Required: no
lightTypes="1 2 .. n"Description: Light types
Type: Multiple values
Required: no
node="node"Description: Visual light node
Type: Index to i3d node or i3d mapping identifier
Required: no
shaderNode="node"Description: Shader node
Type: Index to i3d node or i3d mapping identifier
Required: no
toggleVisibility="false"Description: Toggle visibility
Type: Boolean
Default: false
Required: no
uvSlotIndex="integer"Description: UV slot if vehicleShader with 'lightIds' shader parameter is used (slot 1-16)
Type: Integer
Default: if not defined, all slots will be set equally
Required: no
/>


<filename>stringDescription: Path to i3d file
Type: String
Required: yes
</filename>


<glassMaterial materialSlotName="string"Description: Material slot name in the i3d file
Type: String
Required: no
materialTemplateName="string"Description: Name of template to apply (all attributes will be used from template)
Type: String
Required: no
materialTemplateUseColorOnly="false"Description: If 'true', only the color is used from the material template. The rest from the i3d file.
Type: Boolean
Default: false
Required: no
>

<clearCoat intensity="float"Description: Intensity of clear coat
Type: Float
Required: no
smoothness="float"Description: Smoothness of clear coat
Type: Float
Required: no
/>

<colorScale value="string"Description: Material color if it should not be used from configuration (can also be a different material template, from which then ONLY the color is taken)
Type: String
Required: no
/>

<detail diffuse="string"Description: Path to detail diffuse texture
Type: Path to a certain file
Required: no
normal="string"Description: Path to detail normal texture
Type: Path to a certain file
Required: no
specular="string"Description: Path to detail specular texture
Type: Path to a certain file
Required: no
/>

<metalness value="float"Description: Metalness value
Type: Float
Required: no
/>

<smoothness value="float"Description: Smoothness value
Type: Float
Required: no
/>

<textures diffuse="string"Description: Path to diffuse texture
Type: Path to a certain file
Required: no
normal="string"Description: Path to normal texture
Type: Path to a certain file
Required: no
specular="string"Description: Path to specular texture
Type: Path to a certain file
Required: no
/>

</glassMaterial>

<parentFile xmlFilename="string"Description: Parent xml filepath used as basis
Type: String
Required: no
>

<attributes>
<clearList keepIndex="integer"Description: Index of list to keep
Type: Integer
Required: no
path="string"Description: List to clear but keep one item
Type: String
Required: no
/>

<remove path="string"Description: Path to remove from parent xml
Type: String
Required: no
/>

<set path="string"Description: Path change in parent xml
Type: String
Required: no
value="string"Description: Target value to set in parent file
Type: String
Required: no
/>

</attributes>
</parentFile>

<reverseLight excludedLightTypes="1 2 .. n"Description: Excluded light types
Type: Multiple values
Required: no
intensity="5"Description: Intensity
Type: Float
Default: 5
Required: no
lightTypes="1 2 .. n"Description: Light types
Type: Multiple values
Required: no
node="node"Description: Visual light node
Type: Index to i3d node or i3d mapping identifier
Required: no
shaderNode="node"Description: Shader node
Type: Index to i3d node or i3d mapping identifier
Required: no
toggleVisibility="false"Description: Toggle visibility
Type: Boolean
Default: false
Required: no
uvSlotIndex="integer"Description: UV slot if vehicleShader with 'lightIds' shader parameter is used (slot 1-16)
Type: Integer
Default: if not defined, all slots will be set equally
Required: no
/>


<rootNode node="node"Description: Node index
Type: Index to i3d node or i3d mapping identifier
Default: 0
Required: no
/>


<rotationNode name="string"Description: Name for reference in vehicle xml
Type: String
Required: no
node="node"Description: Node
Type: Index to i3d node or i3d mapping identifier
Required: no
/>


<staticLightCompound bottomLightAsHighBeam="true"Description: Use bottom light as high beam as well
Type: Boolean
Default: true
Required: no
lightTypeBitMask="integer"Description: Custom light type bit mask
Type: Integer
Default: Default mask is '20480' with blinking type set for turn light slots 7 & 8
Required: no
topLightAsHighBeam="true"Description: Use top light as high beam as well
Type: Boolean
Default: true
Required: no
useSliderTurnLights="false"Description: Turn lights will work as sliders if set to 'true'
Type: Boolean
Default: false
Required: no
>

<function intensityScale="float"Description: Custom intensity scale for this light type (is multiplied by the intensity defined in the node)
Type: Float
Required: no
lightType="string"Description: Name of the light type to use
Type: String
Required: no
name="string"Description: Function name
Type: String
Required: no
uvOffset="0"Description: Vertical UV offset that is used while this light function is active (value range: 0-64 -> this represents the height of the texture with a resolution of 1/64). This is used for double usage of certain lights with different colors.
Type: Integer
Default: 0
Required: no
uvSlotIndex="integer"Description: Custom UV slot index to assign the defined function name
Type: Integer
Required: no
/>

<node intensity="5"Description: Intensity for all lights in this node
Type: Float
Default: 5
Required: no
lightTypeBitMask="integer"Description: Custom light type bit mask
Type: Integer
Required: no
node="node"Description: Static light node
Type: Index to i3d node or i3d mapping identifier
Required: no
useSliderTurnLights="false"Description: Turn lights will work as sliders if set to 'true'
Type: Boolean
Default: false
Required: no
/>

</staticLightCompound>

<topLight excludedLightTypes="1 2 .. n"Description: Excluded light types
Type: Multiple values
Required: no
intensity="5"Description: Intensity
Type: Float
Default: 5
Required: no
lightTypes="1 2 .. n"Description: Light types
Type: Multiple values
Required: no
node="node"Description: Visual light node
Type: Index to i3d node or i3d mapping identifier
Required: no
shaderNode="node"Description: Shader node
Type: Index to i3d node or i3d mapping identifier
Required: no
toggleVisibility="false"Description: Toggle visibility
Type: Boolean
Default: false
Required: no
uvSlotIndex="integer"Description: UV slot if vehicleShader with 'lightIds' shader parameter is used (slot 1-16)
Type: Integer
Default: if not defined, all slots will be set equally
Required: no
/>


<turnLightLeft excludedLightTypes="1 2 .. n"Description: Excluded light types
Type: Multiple values
Required: no
intensity="5"Description: Intensity
Type: Float
Default: 5
Required: no
lightTypes="1 2 .. n"Description: Light types
Type: Multiple values
Required: no
node="node"Description: Visual light node
Type: Index to i3d node or i3d mapping identifier
Required: no
shaderNode="node"Description: Shader node
Type: Index to i3d node or i3d mapping identifier
Required: no
toggleVisibility="false"Description: Toggle visibility
Type: Boolean
Default: false
Required: no
uvSlotIndex="integer"Description: UV slot if vehicleShader with 'lightIds' shader parameter is used (slot 1-16)
Type: Integer
Default: if not defined, all slots will be set equally
Required: no
/>


<turnLightRight excludedLightTypes="1 2 .. n"Description: Excluded light types
Type: Multiple values
Required: no
intensity="5"Description: Intensity
Type: Float
Default: 5
Required: no
lightTypes="1 2 .. n"Description: Light types
Type: Multiple values
Required: no
node="node"Description: Visual light node
Type: Index to i3d node or i3d mapping identifier
Required: no
shaderNode="node"Description: Shader node
Type: Index to i3d node or i3d mapping identifier
Required: no
toggleVisibility="false"Description: Toggle visibility
Type: Boolean
Default: false
Required: no
uvSlotIndex="integer"Description: UV slot if vehicleShader with 'lightIds' shader parameter is used (slot 1-16)
Type: Integer
Default: if not defined, all slots will be set equally
Required: no
/>

</light>