Light:Add Speedometer Light

This commit is contained in:
李维昊 2019-07-27 21:26:06 +08:00
parent 3c540aae0b
commit 19b52ca8eb
8 changed files with 37 additions and 1 deletions

22
Models/Effect/light.eff Normal file
View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>light</name>
<inherits-from>/Effects/model-combined-deferred</inherits-from>
<parameters>
<!-- Light Map -->
<lightmap-enabled type="int">1</lightmap-enabled>
<lightmap-multi type="int">1</lightmap-multi>
<texture n="3">
<image>../../Models/Effect/speedometer_LIT.png</image>
<wrap-s>repeat</wrap-s>
<wrap-t>repeat</wrap-t>
</texture>
<lightmap-factor type="float" n="0">1</lightmap-factor>
<lightmap-factor type="float" n="1">1</lightmap-factor>
<lightmap-factor type="float" n="2">1</lightmap-factor>
<lightmap-color type="vec3d" n="0"> 1. 0. 0. </lightmap-color>
<lightmap-color type="vec3d" n="1"> 0. 1. 0. </lightmap-color>
<lightmap-color type="vec3d" n="2"> 0. 0. 1. </lightmap-color>
<lightmap-factor type="float" n="3">0</lightmap-factor>
</parameters>
</PropertyList>

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

View File

@ -8,6 +8,20 @@
<path>speedometer.ac</path>
<effect>
<inherits-from>../../Models/Effect/light</inherits-from>
<object-name>digit.1</object-name>
<object-name>digit.2</object-name>
<object-name>digit.3</object-name>
<object-name>digit.4</object-name>
<object-name>digit.5</object-name>
<object-name>digit.6</object-name>
<object-name>face</object-name>
<object-name>needle</object-name>
</effect>
<animation>
<type>rotate</type>
<object-name>needle</object-name>
@ -25,5 +39,5 @@
</axis>
</animation>
</PropertyList>