[INCLUDE: common/materials_carpaint.ini]

[Material_CarPaint_Metallic] ; basic metallic
Materials= Car Body Paint
FresnelMax = 0.25
FresnelC = 0.08
BrightnessAdjustment = 0.8 ; compensates for ambient specular
ColoredSpecular =0.9
AmbientSpecular = 5.5
AmbientSpecularEXP = 5
ClearCoatThickness = 0.06
UseDiffuseAlphaAsMask = 1 ; ; Leave at 1 to apply the car's paint masking like sponsor decals, numbers, etc. 


;================= WIPER ================
[ANIMATED_WIPER_...]
MESHES = x0_wiper_fl
UNDERLYING_SURFACE = x0_window_f
;DEBUG = 1 ; remove when everything is ready

[MESH_ADJUSTMENT_...]
MESHES = x0_wiper_fl
MOVE_TO = modelRoot:y

[BASIC]
DISABLE_WIPER_KSANIM = 1

[ANIMATED_WIPER_0]
DEBUG = 1
MESHES = x0_wiper_fl
UNDERLYING_SURFACE = x0_window_f
GROUP_0 = 'x0_wiper_fl@A=*'
GROUP_0_ANGLE_FROM = 4.1
GROUP_0_ANGLE_TO = 109.6
GROUP_0_AXIS = 0, 0.70710677, 0.70710677
GROUP_0_AXIS_OFFSET_0 = 0, 0.70710677, 0.70710677
GROUP_0_AXIS_OFFSET_1 = 0, 0.70710677, 0.70710677
GROUP_0_END = -0.66478634, 0.82940674, 1.2027638
GROUP_0_PIVOT = 0.23034286, 0.79551995, 1.36129
GROUP_0_BASE_AXIS = 0, 0.70710677, 0.70710677
GROUP_0_BASE_PIVOT = 0.23034286, 0.79551995, 1.36129

;================= DRIVER ANIMATIONS ================
[ANIMATION_...] ; gas/throttle animation
FILE=gas.ksanim
INPUT=GAS
HOLD_STATE=1
INPUT_AS_PROGRESS = 1 

[ANIMATION_...] ; brake animation
FILE=brake.ksanim
INPUT=BRAKE
HOLD_STATE=1
INPUT_AS_PROGRESS = 1   

[EMISSIVE_...] ; light up when the headlights are turned on
INPUT=LIGHT
NAME=LOD_A_INT_STEERING_WHEEL_LED_EMISSIVE_mm_sw
TOGGLE_VISIBILITY=0
emSkipDiffuseMap=0
OFF_COLOR=0,0,0
COLOR=1, 1, 1 ,2
LAG=0.14 ; make it higher to add a delay/lag bofore it reached full intensity

;================= EXHAUSTS SAKE ================
[SHAKING_EXHAUST_...] ; make the exhaust shake
MESHES =x0_exhaust_bl_SUB0, x0_exhaust_bl_SUB1, x0_exhaust_br_SUB0, x0_exhaust_br_SUB1
POINT_0_SCALE = 0.8
POINT_0 = -0.14, 0.12, -0.054
POINT_0_RADIUS = 1.0
POINT_0_EXP = 0.001


;================= LIGHTS ================

[LIGHT_EXTRA_...] ;endurance ambi-light
BIND_TO_HEADLIGHTS=1 
COLOR=0,0,1,10
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=5
FADE_SMOOTH=5
MIRROR=0
POSITION=0.0768, 0.68, 1.01
DIRECTION=0,-1,0.5
RANGE=0.95
RANGE_GRADIENT_OFFSET=0.01
SPECULAR_MULT=3
SPOT=180
SPOT_SHARPNESS=0.5

[SHADER_REPLACEMENT_...]
MESHES = REARLIGHT1, REARLIGHT2, x0_light_combi_pod_br, x0_light_combi_pod_bl, x0_light_pod_fr, x0_light_pod_fl, FRONTLIGHT1, FRONTLIGHT2
SHADER=ksPerPixelMultiMap_emissive
PROP_... = emChannelsMode, 1
RESOURCE_1 = txDiffuse
RESOURCE_FILE_1 = scr_lights.dds
RESOURCE_2 = txEmissive
RESOURCE_FILE_2 = scr_lights_emiss.dds	;emissive mask


[EMISSIVE_LIGHT_...]		;rear light - pods 
NAME = REARLIGHT2
CHANNEL = 2			;blu mask
COLOR = 255,0,0
LAG = 0.8
SIMULATE_HEATING=0.3
LOCATION = REAR
ACT_AS_HEADLIGHTS = 1

[EMISSIVE_LIGHT_...] 		;rear light - glass glow
NAME = REARL
COLOR = 5, 0, 0
LAG = 0.8
SIMULATE_HEATING=0.3
LOCATION = REAR


[EMISSIVE_BRAKE_...]		;3rd brake light
NAME = REARLIGHT3
COLOR = 10, 0, 0
LAG = 0.8
SIMULATE_HEATING = 0
LOCATION = REAR

[EMISSIVE_BRAKE_...]		;side brake lights - pods
NAME = REARLIGHT1
CHANNEL = 0			;red mask
COLOR = 255, 0, 0
LAG = 0.8
SIMULATE_HEATING = 0
LOCATION = REAR

[EMISSIVE_BRAKE_...] 		;side brake lights - pods
NAME = x0_light_combi_pod_br, x0_light_combi_pod_bl
CHANNEL = 0		;red mask
COLOR = 255, 0, 0
LAG = 0.8
SIMULATE_HEATING = 0
LOCATION = REAR

[EMISSIVE_BRAKE_...]		;side brake lights - glass glow
NAME = x0_light_combi_glass_br, x0_light_combi_glass_bl
COLOR = 7, 0, 0
LAG = 0.8
SIMULATE_HEATING = 0
LOCATION = REAR


[EMISSIVE_REVERSE_...]		;reverse lights - pods
NAME = x0_light_rev_pod_bl, x0_light_rev_pod_br
COLOR = 125, 125, 125
LAG = 0.8
SIMULATE_HEATING=0.3
LOCATION = REAR


[EMISSIVE_TURNSIGNAL_LEFT_...]	;turn lights - rear left pod
NAME = x0_light_combi_pod_bl
CHANNEL = 1			;green mask
COLOR=75, 36, 0
LAG = 0.8
SIMULATE_HEATING = 0.0
LOCATION = REAR

[EMISSIVE_TURNSIGNAL_RIGHT_...]	;turn lights - rear right pod
NAME = x0_light_combi_pod_br
CHANNEL = 1			;green mask
COLOR=75, 36, 0
LAG = 0.8
SIMULATE_HEATING = 0.0
LOCATION = REAR


[EMISSIVE_LIGHT_...]		;Lowbeam front lights - pods
NAME = x0_light_pod_fr, x0_light_pod_fl, FRONTLIGHT1, FRONTLIGHT2
CHANNEL = 0			;red mask 
COLOR = 45,45,40
LAG = 0.8
SIMULATE_HEATING=0.3
LOCATION = FRONT
ACT_AS_HEADLIGHTS = 1

[EMISSIVE_HIGHBEAM_...]		;Highbeam front lights - pods
NAME = x0_light_pod_fr, x0_light_pod_fl, FRONTLIGHT1, FRONTLIGHT2
CHANNEL = 2			;blu mask
COLOR = 180,180,160
LAG = 0.8
SIMULATE_HEATING=0.3
LOCATION = FRONT
ACT_AS_HEADLIGHTS = 1


[EMISSIVE_TURNSIGNAL_LEFT_...]	;turn lights - front left pod (fake)
NAME = x0_light_pod_fl  
CHANNEL = 1			;green mask
COLOR=25, 12, 0
LAG = 0.8
SIMULATE_HEATING = 0.0
LOCATION = FRONT

[EMISSIVE_TURNSIGNAL_RIGHT_...]	;turn lights - front right pod (fake)
NAME =  x0_light_pod_fr
CHANNEL = 1			;green mask
COLOR=75, 36, 0
LAG = 0.8
SIMULATE_HEATING = 0.0
LOCATION = FRONT
