1
0
Fork 0

Fix line endings

This commit is contained in:
fredb 2010-04-07 21:09:48 +00:00
parent 31df14b691
commit bbdf4694ad

View file

@ -1,375 +1,375 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- Reflections <!-- Reflections
PARAMETERS: There are two forms of cube map texture:- vertical cross and 6 images. PARAMETERS: There are two forms of cube map texture:- vertical cross and 6 images.
Either can be used - alternative forms are shown in <parameters> and in <texture-unit> Either can be used - alternative forms are shown in <parameters> and in <texture-unit>
The reflection is set proportional to the shininess of the material. Thus by The reflection is set proportional to the shininess of the material. Thus by
varying the material shininess value over or between objects the amount of varying the material shininess value over or between objects the amount of
refection can be controlled. The overall amount of reflection may be refection can be controlled. The overall amount of reflection may be
adjusted by the use of <refl_correction> -1.0 (fully transparent)- 1.0 (fully opaque). adjusted by the use of <refl_correction> -1.0 (fully transparent)- 1.0 (fully opaque).
The overall values of the noisiness, coloured fringing or fresnel effect may be adjusted The overall values of the noisiness, coloured fringing or fresnel effect may be adjusted
by the use of <noisiness>, <rainbowiness> and <fresneliness>. by the use of <noisiness>, <rainbowiness> and <fresneliness>.
If your result is too dark/too light the overall ambient light value can be adjusted If your result is too dark/too light the overall ambient light value can be adjusted
by the use of <ambient_correction>. This correction also takes out some of the blueness by the use of <ambient_correction>. This correction also takes out some of the blueness
added as default to compensate for the lack of reflection. added as default to compensate for the lack of reflection.
To use a reflection map set <reflect_map> to 1,and the path to the map texture in To use a reflection map set <reflect_map> to 1,and the path to the map texture in
<texture n="8"> <texture n="8">
USE: To use the default reflection effect (controlled by material shininess values) use USE: To use the default reflection effect (controlled by material shininess values) use
<effect> <effect>
<inherits-from>Effects/reflect</inherits-from> <inherits-from>Effects/reflect</inherits-from>
<object-name>Fuselage</object-name> <object-name>Fuselage</object-name>
</<effect> </<effect>
To use your own reflection effectuse To use your own reflection effectuse
<effect> <effect>
<inherits-from>Aircraft/Lightning/Models/Effects/lightningreflect</inherits-from> <inherits-from>Aircraft/Lightning/Models/Effects/lightningreflect</inherits-from>
<object-name>Fuselage</object-name> <object-name>Fuselage</object-name>
</<effect> </<effect>
in your model file. in your model file.
To use your own effect place your efffect file containing something like this: To use your own effect place your efffect file containing something like this:
<name>Effects/lightningreflect</name> <name>Effects/lightningreflect</name>
<inherits-from>Effects/reflect</inherits-from> <inherits-from>Effects/reflect</inherits-from>
and the the modified tags in the path as above and the the modified tags in the path as above
EXAMPLES: You can find examples of both usages in the Hunter and Lightning models. EXAMPLES: You can find examples of both usages in the Hunter and Lightning models.
--> -->
<PropertyList> <PropertyList>
<name>Effects/reflect</name> <name>Effects/reflect</name>
<inherits-from>Effects/model-default</inherits-from> <inherits-from>Effects/model-default</inherits-from>
<parameters> <parameters>
<texture n="5"> <texture n="5">
<type>cubemap</type> <type>cubemap</type>
<!-- use this form for a cube cross --> <!-- use this form for a cube cross -->
<!--<image>Aircraft/Generic/Effects/CubeCrosses/blue_sky_big.jpg</image>--> <!--<image>Aircraft/Generic/Effects/CubeCrosses/blue_sky_big.jpg</image>-->
<!-- use this form for a 6 image cube map --> <!-- use this form for a 6 image cube map -->
<images> <images>
<positive-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_px.png</positive-x> <positive-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_px.png</positive-x>
<negative-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nx.png</negative-x> <negative-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nx.png</negative-x>
<positive-y>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_py.png</positive-y> <positive-y>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_py.png</positive-y>
<negative-y>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_ny.png</negative-y> <negative-y>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_ny.png</negative-y>
<positive-z>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_pz.png</positive-z> <positive-z>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_pz.png</positive-z>
<negative-z>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nz.png</negative-z> <negative-z>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nz.png</negative-z>
</images> </images>
</texture> </texture>
<texture n="6"> <texture n="6">
<image>Aircraft/Generic/Effects/Rainbow.png</image> <image>Aircraft/Generic/Effects/Rainbow.png</image>
<filter>linear-mipmap-linear</filter> <filter>linear-mipmap-linear</filter>
<wrap-s>repeat</wrap-s> <wrap-s>repeat</wrap-s>
<wrap-t>repeat</wrap-t> <wrap-t>repeat</wrap-t>
<internal-format>normalized</internal-format> <internal-format>normalized</internal-format>
</texture> </texture>
<texture n="7"> <texture n="7">
<image>Aircraft/Generic/Effects/FresnelLookUp.png</image> <image>Aircraft/Generic/Effects/FresnelLookUp.png</image>
<filter>linear-mipmap-linear</filter> <filter>linear-mipmap-linear</filter>
<wrap-s>repeat</wrap-s> <wrap-s>repeat</wrap-s>
<wrap-t>repeat</wrap-t> <wrap-t>repeat</wrap-t>
<internal-format>normalized</internal-format> <internal-format>normalized</internal-format>
</texture> </texture>
<texture n="8"> <texture n="8">
<image>Aircraft/737-300/Models/Effects/733LH.ReflectionMap3.png</image> <image>Aircraft/737-300/Models/Effects/733LH.ReflectionMap3.png</image>
<filter>linear-mipmap-linear</filter> <filter>linear-mipmap-linear</filter>
<wrap-s>repeat</wrap-s> <wrap-s>repeat</wrap-s>
<wrap-t>repeat</wrap-t> <wrap-t>repeat</wrap-t>
<internal-format>normalized</internal-format> <internal-format>normalized</internal-format>
</texture> </texture>
<rendering-hint>transparent</rendering-hint> <rendering-hint>transparent</rendering-hint>
<shade-model>smooth</shade-model> <shade-model>smooth</shade-model>
<rainbowiness type="float">0.01</rainbowiness> <rainbowiness type="float">0.01</rainbowiness>
<fresneliness>0.1</fresneliness> <fresneliness>0.1</fresneliness>
<noisiness>0.25</noisiness> <noisiness>0.25</noisiness>
<refl_correction>0.0</refl_correction> <refl_correction>0.0</refl_correction>
<ambient_correction>0.05</ambient_correction> <ambient_correction>0.05</ambient_correction>
<reflect_map>0</reflect_map> <reflect_map>0</reflect_map>
</parameters> </parameters>
<technique n="9"> <technique n="9">
<predicate> <predicate>
<and> <and>
<property>/sim/rendering/shader-effects</property> <property>/sim/rendering/shader-effects</property>
<or> <or>
<less-equal> <less-equal>
<value type="float">2.0</value> <value type="float">2.0</value>
<glversion/> <glversion/>
</less-equal> </less-equal>
<and> <and>
<extension-supported>GL_ARB_shader_objects</extension-supported> <extension-supported>GL_ARB_shader_objects</extension-supported>
<extension-supported>GL_ARB_shading_language_100</extension-supported> <extension-supported>GL_ARB_shading_language_100</extension-supported>
<extension-supported>GL_ARB_vertex_shader</extension-supported> <extension-supported>GL_ARB_vertex_shader</extension-supported>
<extension-supported>GL_ARB_fragment_shader</extension-supported> <extension-supported>GL_ARB_fragment_shader</extension-supported>
</and> </and>
</or> </or>
</and> </and>
</predicate> </predicate>
<pass> <pass>
<lighting>true</lighting> <lighting>true</lighting>
<material> <material>
<active> <active>
<use>material/active</use> <use>material/active</use>
</active> </active>
<ambient> <ambient>
<use>material/ambient</use> <use>material/ambient</use>
</ambient> </ambient>
<diffuse> <diffuse>
<use>material/diffuse</use> <use>material/diffuse</use>
</diffuse> </diffuse>
<specular> <specular>
<use>material/specular</use> <use>material/specular</use>
</specular> </specular>
<emissive> <emissive>
<use>material/emissive</use> <use>material/emissive</use>
</emissive> </emissive>
<shininess> <shininess>
<use>material/shininess</use> <use>material/shininess</use>
</shininess> </shininess>
<color-mode> <color-mode>
<use>material/color-mode</use> <use>material/color-mode</use>
</color-mode> </color-mode>
</material> </material>
<blend> <blend>
<active> <active>
<use>blend/active</use> <use>blend/active</use>
</active> </active>
<source> <source>
<use>blend/source</use> <use>blend/source</use>
</source> </source>
<destination> <destination>
<use>blend/destination</use> <use>blend/destination</use>
</destination> </destination>
</blend> </blend>
<shade-model> <shade-model>
<use>shade-model</use> <use>shade-model</use>
</shade-model> </shade-model>
<cull-face> <cull-face>
<use>cull-face</use> <use>cull-face</use>
</cull-face> </cull-face>
<rendering-hint> <rendering-hint>
<use>rendering-hint</use> <use>rendering-hint</use>
</rendering-hint> </rendering-hint>
<texture-unit> <texture-unit>
<unit>0</unit> <unit>0</unit>
<image> <image>
<use>texture[0]/image</use> <use>texture[0]/image</use>
</image> </image>
<filter> <filter>
<use>texture[0]/filter</use> <use>texture[0]/filter</use>
</filter> </filter>
<wrap-s> <wrap-s>
<use>texture[0]/wrap-s</use> <use>texture[0]/wrap-s</use>
</wrap-s> </wrap-s>
<wrap-t> <wrap-t>
<use>texture[0]/wrap-t</use> <use>texture[0]/wrap-t</use>
</wrap-t> </wrap-t>
<internal-format> <internal-format>
<use>texture[0]/internal-format</use> <use>texture[0]/internal-format</use>
</internal-format> </internal-format>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>5</unit> <unit>5</unit>
<type> <type>
<use>texture[5]/type</use> <use>texture[5]/type</use>
</type> </type>
<!-- use this form for a cube cross --> <!-- use this form for a cube cross -->
<!--<image> <!--<image>
<use>texture[5]/image</use> <use>texture[5]/image</use>
</image>--> </image>-->
<!-- use this form for a 6 image cube map --> <!-- use this form for a 6 image cube map -->
<images> <images>
<use>texture[5]/images</use> <use>texture[5]/images</use>
</images> </images>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>6</unit> <unit>6</unit>
<type> <type>
<use>texture[6]/type</use> <use>texture[6]/type</use>
</type> </type>
<image> <image>
<use>texture[6]/image</use> <use>texture[6]/image</use>
</image> </image>
<filter> <filter>
<use>texture[6]/filter</use> <use>texture[6]/filter</use>
</filter> </filter>
<wrap-s> <wrap-s>
<use>texture[6]/wrap-s</use> <use>texture[6]/wrap-s</use>
</wrap-s> </wrap-s>
<wrap-t> <wrap-t>
<use>texture[6]/wrap-t</use> <use>texture[6]/wrap-t</use>
</wrap-t> </wrap-t>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>7</unit> <unit>7</unit>
<type> <type>
<use>texture[7]/type</use> <use>texture[7]/type</use>
</type> </type>
<image> <image>
<use>texture[7]/image</use> <use>texture[7]/image</use>
</image> </image>
<filter> <filter>
<use>texture[7]/filter</use> <use>texture[7]/filter</use>
</filter> </filter>
<wrap-s> <wrap-s>
<use>texture[7]/wrap-s</use> <use>texture[7]/wrap-s</use>
</wrap-s> </wrap-s>
<wrap-t> <wrap-t>
<use>texture[7]/wrap-t</use> <use>texture[7]/wrap-t</use>
</wrap-t> </wrap-t>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>8</unit> <unit>8</unit>
<image> <image>
<use>texture[8]/image</use> <use>texture[8]/image</use>
</image> </image>
<filter> <filter>
<use>texture[8]/filter</use> <use>texture[8]/filter</use>
</filter> </filter>
<wrap-s> <wrap-s>
<use>texture[8]/wrap-s</use> <use>texture[8]/wrap-s</use>
</wrap-s> </wrap-s>
<wrap-t> <wrap-t>
<use>texture[8]/wrap-t</use> <use>texture[8]/wrap-t</use>
</wrap-t> </wrap-t>
<internal-format> <internal-format>
<use>texture[0]/internal-format</use> <use>texture[0]/internal-format</use>
</internal-format> </internal-format>
</texture-unit> </texture-unit>
<texture-unit> <texture-unit>
<unit>9</unit> <unit>9</unit>
<type>noise</type> <type>noise</type>
</texture-unit> </texture-unit>
<program> <program>
<vertex-shader>Shaders/reflect.vert</vertex-shader> <vertex-shader>Shaders/reflect.vert</vertex-shader>
<fragment-shader>Shaders/reflect.frag</fragment-shader> <fragment-shader>Shaders/reflect.frag</fragment-shader>
<attribute> <attribute>
<name>tangent</name> <name>tangent</name>
<index>6</index> <index>6</index>
</attribute> </attribute>
<attribute> <attribute>
<name>binormal</name> <name>binormal</name>
<index>7</index> <index>7</index>
</attribute> </attribute>
<attribute> <attribute>
<name>normal</name> <name>normal</name>
<index>15</index> <index>15</index>
</attribute> </attribute>
</program> </program>
<uniform> <uniform>
<name>BaseTex</name> <name>BaseTex</name>
<type>sampler-2d</type> <type>sampler-2d</type>
<value type="int">0</value> <value type="int">0</value>
</uniform> </uniform>
<uniform> <uniform>
<name>Environment</name> <name>Environment</name>
<type>sampler-cube</type> <type>sampler-cube</type>
<value type="int">5</value> <value type="int">5</value>
</uniform> </uniform>
<uniform> <uniform>
<name>Rainbow</name> <name>Rainbow</name>
<type>sampler-2d</type> <type>sampler-2d</type>
<value type="int">6</value> <value type="int">6</value>
</uniform> </uniform>
<uniform> <uniform>
<name>Fresnel</name> <name>Fresnel</name>
<type>sampler-2d</type> <type>sampler-2d</type>
<value type="int">7</value> <value type="int">7</value>
</uniform> </uniform>
<uniform> <uniform>
<name>Map</name> <name>Map</name>
<type>sampler-2d</type> <type>sampler-2d</type>
<value type="int">8</value> <value type="int">8</value>
</uniform> </uniform>
<uniform> <uniform>
<name>Noise</name> <name>Noise</name>
<type>sampler-3d</type> <type>sampler-3d</type>
<value type="int">9</value> <value type="int">9</value>
</uniform> </uniform>
<!-- set the amount of fringing colour 0.0 - 1.0 --> <!-- set the amount of fringing colour 0.0 - 1.0 -->
<uniform> <uniform>
<name>rainbowiness</name> <name>rainbowiness</name>
<type>float</type> <type>float</type>
<value> <value>
<use>rainbowiness</use> <use>rainbowiness</use>
</value> </value>
</uniform> </uniform>
<!-- set the amount of fresnel effect colour 0.0 - 1.0 --> <!-- set the amount of fresnel effect colour 0.0 - 1.0 -->
<uniform> <uniform>
<name>fresneliness</name> <name>fresneliness</name>
<type>float</type> <type>float</type>
<value> <value>
<use>fresneliness</use> <use>fresneliness</use>
</value> </value>
</uniform> </uniform>
<!-- set the amount of noisiness 0.0 - 1.0 --> <!-- set the amount of noisiness 0.0 - 1.0 -->
<uniform> <uniform>
<name>noisiness</name> <name>noisiness</name>
<type>float</type> <type>float</type>
<value> <value>
<use>noisiness</use> <use>noisiness</use>
</value> </value>
</uniform> </uniform>
<!-- The reflection is set proportional to the shininess of the material. <!-- The reflection is set proportional to the shininess of the material.
The amount of reflection may be adjusted by the use of this correction The amount of reflection may be adjusted by the use of this correction
-1.0 (fully transparent)- 1.0 (fully opaque) --> -1.0 (fully transparent)- 1.0 (fully opaque) -->
<uniform> <uniform>
<name>refl_correction</name> <name>refl_correction</name>
<type>float</type> <type>float</type>
<value> <value>
<use>refl_correction</use> <use>refl_correction</use>
</value> </value>
</uniform> </uniform>
<!-- set the amount of ambient light correction 0.0 - 1.0 --> <!-- set the amount of ambient light correction 0.0 - 1.0 -->
<uniform> <uniform>
<name>ambient_correction</name> <name>ambient_correction</name>
<type>float</type> <type>float</type>
<value> <value>
<use>ambient_correction</use> <use>ambient_correction</use>
</value> </value>
</uniform> </uniform>
<!-- use a reflection map--> <!-- use a reflection map-->
<uniform> <uniform>
<name>reflect_map</name> <name>reflect_map</name>
<type>float</type> <type>float</type>
<value> <value>
<use>reflect_map</use> <use>reflect_map</use>
</value> </value>
</uniform>noisiness </uniform>noisiness
</pass> </pass>
</technique> </technique>
</PropertyList> </PropertyList>