1
0
Fork 0

Normal effect on wings / body

This commit is contained in:
legoboyvdlp R 2020-07-18 13:27:05 +01:00
parent dfbe2a70fa
commit eb1216b63d
2 changed files with 119 additions and 4 deletions

View file

@ -11,6 +11,12 @@
<ambient-correction type="float"><use>/sim/model/reflection/ambient-correction-wing</use></ambient-correction> <ambient-correction type="float"><use>/sim/model/reflection/ambient-correction-wing</use></ambient-correction>
<lightmap-enabled type="int">0</lightmap-enabled> <lightmap-enabled type="int">0</lightmap-enabled>
<lightmap-multi type="int">0</lightmap-multi> <lightmap-multi type="int">0</lightmap-multi>
<normalmap-enabled type="int">1</normalmap-enabled>
<texture n="2">
<image>Aircraft/A320-family/Models/Effects/res/Fuse-Main-Normal.png</image>
<wrap-s>clamp</wrap-s>
<wrap-t>clamp</wrap-t>
</texture>
<texture n="5"> <texture n="5">
<type>cubemap</type> <type>cubemap</type>
<images> <images>
@ -21,5 +27,59 @@
<positive-z>Aircraft/Generic/Effects/CubeMaps/fgfs-sky/6.png</positive-z> <positive-z>Aircraft/Generic/Effects/CubeMaps/fgfs-sky/6.png</positive-z>
<negative-z>Aircraft/Generic/Effects/CubeMaps/fgfs-sky/5.png</negative-z> <negative-z>Aircraft/Generic/Effects/CubeMaps/fgfs-sky/5.png</negative-z>
</images> </images>
</texture></parameters> </texture>
</parameters>
<!-- ####################
### NORMALMAP INCLUDE ###
######################### -->
<generate>
<tangent type="int">6</tangent>
<binormal type="int">7</binormal>
</generate>
<technique n="4">
<pass>
<program>
<attribute>
<name>tangent</name>
<index>6</index>
</attribute>
<attribute>
<name>binormal</name>
<index>7</index>
</attribute>
</program>
</pass>
</technique>
<technique n="7">
<pass>
<program>
<attribute>
<name>tangent</name>
<index>6</index>
</attribute>
<attribute>
<name>binormal</name>
<index>7</index>
</attribute>
</program>
</pass>
</technique>
<technique n="9">
<pass>
<program>
<attribute>
<name>tangent</name>
<index>6</index>
</attribute>
<attribute>
<name>binormal</name>
<index>7</index>
</attribute>
</program>
</pass>
</technique>
<!-- ########################
### END NORMALMAP INCLUDE ###
############################# -->
</PropertyList> </PropertyList>

View file

@ -11,6 +11,7 @@
<ambient-correction type="float"><use>/sim/model/reflection/ambient-correction</use></ambient-correction> <ambient-correction type="float"><use>/sim/model/reflection/ambient-correction</use></ambient-correction>
<lightmap-enabled type="int">0</lightmap-enabled> <lightmap-enabled type="int">0</lightmap-enabled>
<lightmap-multi type="int">0</lightmap-multi> <lightmap-multi type="int">0</lightmap-multi>
<normalmap-enabled type="int">1</normalmap-enabled>
<texture n="2"> <texture n="2">
<image>Aircraft/A320-family/Models/Effects/res/Fuse-Main-Normal.png</image> <image>Aircraft/A320-family/Models/Effects/res/Fuse-Main-Normal.png</image>
<wrap-s>clamp</wrap-s> <wrap-s>clamp</wrap-s>
@ -26,5 +27,59 @@
<positive-z>Aircraft/Generic/Effects/CubeMaps/fgfs-sky/6.png</positive-z> <positive-z>Aircraft/Generic/Effects/CubeMaps/fgfs-sky/6.png</positive-z>
<negative-z>Aircraft/Generic/Effects/CubeMaps/fgfs-sky/5.png</negative-z> <negative-z>Aircraft/Generic/Effects/CubeMaps/fgfs-sky/5.png</negative-z>
</images> </images>
</texture></parameters> </texture>
</parameters>
<!-- ####################
### NORMALMAP INCLUDE ###
######################### -->
<generate>
<tangent type="int">6</tangent>
<binormal type="int">7</binormal>
</generate>
<technique n="4">
<pass>
<program>
<attribute>
<name>tangent</name>
<index>6</index>
</attribute>
<attribute>
<name>binormal</name>
<index>7</index>
</attribute>
</program>
</pass>
</technique>
<technique n="7">
<pass>
<program>
<attribute>
<name>tangent</name>
<index>6</index>
</attribute>
<attribute>
<name>binormal</name>
<index>7</index>
</attribute>
</program>
</pass>
</technique>
<technique n="9">
<pass>
<program>
<attribute>
<name>tangent</name>
<index>6</index>
</attribute>
<attribute>
<name>binormal</name>
<index>7</index>
</attribute>
</program>
</pass>
</technique>
<!-- ########################
### END NORMALMAP INCLUDE ###
############################# -->
</PropertyList> </PropertyList>