8,669
edits
m (→a bit more difficult Method- but more freedom!: fix tabs, create list.) |
|||
Line 50: | Line 50: | ||
<nowiki><!--foo_reflect.eff--></nowiki> | <nowiki><!--foo_reflect.eff--></nowiki> | ||
<PropertyList> | <PropertyList> | ||
<name>Effects/foo_reflect</name> | |||
<inherits-from>Effects/reflect</inherits-from> | |||
<parameters> | <parameters> | ||
<texture n="5"> | <texture n="5"> | ||
<type>cubemap</type> | |||
<!-- use this form for a cube cross | <!-- use this form for a cube cross | ||
<image>Aircraft/Generic/Effects/CubeCrosses/real.blue_sky.png</image>--> | |||
<!-- use this form for a 6 image cube map --> | <!-- use this form for a 6 image cube map --> | ||
<images> | |||
<positive-x>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_px.png</positive-x> | <positive-x>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_px.png</positive-x> | ||
<negative-x>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_nx.png</negative-x> | <negative-x>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_nx.png</negative-x> | ||
Line 67: | Line 67: | ||
</images> | </images> | ||
</texture> | </texture> | ||
<texture n="6"> | |||
<image>Aircraft/Generic/Effects/Rainbow.png</image> | |||
<filter>linear-mipmap-linear</filter> | |||
<wrap-s>repeat</wrap-s> | |||
<wrap-t>repeat</wrap-t> | |||
<internal-format>normalized</internal-format> | |||
</texture> | |||
<texture n="7"> | |||
<image>Aircraft/Generic/Effects/FresnelLookUp.png</image> | |||
<filter>linear-mipmap-linear</filter> | |||
<wrap-s>repeat</wrap-s> | |||
<wrap-t>repeat</wrap-t> | |||
<internal-format>normalized</internal-format> | |||
</texture> | |||
<texture n="8"> | |||
<image>Aircraft/foo/Models/Effects/greymap.png</image> | |||
<filter>linear-mipmap-linear</filter> | |||
<wrap-s>repeat</wrap-s> | |||
<wrap-t>repeat</wrap-t> | |||
<internal-format>normalized</internal-format> | |||
</texture> | |||
<rendering-hint>transparent</rendering-hint> | |||
<shade-model>smooth</shade-model> | |||
<rainbowiness type="float">0.01</rainbowiness> | |||
<fresneliness>0.0</fresneliness> | |||
<noisiness>0.0</noisiness> | |||
<refl_correction>0.0</refl_correction> | |||
<ambient_correction>0.0</ambient_correction> | |||
<reflect_map>1</reflect_map> | |||
</parameters> | </parameters> | ||
</PropertyList> | </PropertyList> | ||
Line 103: | Line 103: | ||
The tags at the bottom: | The tags at the bottom: | ||
<rainbowiness> = adds a nice Rainbow-effect to the reflection. Perfect for the modern Airliner-windows or modern coatings. | * <rainbowiness> = adds a nice Rainbow-effect to the reflection. Perfect for the modern Airliner-windows or modern coatings. | ||
* <fresneliness> = adds some black stripes to the reflection. | |||
<fresneliness> = adds some black stripes to the reflection. | * <noisiness> = adds noise to the reflection. Usefull for dirt etc... | ||
* <ambient_correction> = correct the appearance of the reflection at shadowed parts. | |||
<noisiness> = adds noise to the reflection. Usefull for dirt etc... | * <reflect_map> = enables the use of a greymap. If enabled the greymap will controll the strength of the reflection. Black = zero reflection, White = full reflection. For modern aircraft coatings a grey of 75-90% is usefull, for chromish parts about 10-25%. | ||
* <refl_correction> = another parameter for controlling the strength of the reflection. Reflect_map and refl_correction are working together. | |||
<ambient_correction> = correct the appearance of the reflection at shadowed parts. | * ''"texture= n5"'' is the path to the image wich will be later the reflection. You can choose between cubemaps with 6 single images or a cubecross. You can take the one included in ''data/Aircraft/Generic/Effects'' or you can use your own. | ||
* ''"texture= n6"'' is the path to the rainbow-texture. | |||
<reflect_map> = enables the use of a greymap. If enabled the greymap will controll the strength of the reflection. Black = zero reflection, White = full reflection. For modern aircraft coatings a grey of 75-90% is usefull, for chromish parts about 10-25%. | * ''"texture= n7"'' path to the fresnel-texture. | ||
* ''"texture= n8"''is the path to the greymap. | |||
<refl_correction> = another parameter for controlling the strength of the reflection. Reflect_map and refl_correction are working together. | |||
''"texture= n5"'' is the path to the image wich will be later the reflection. You can choose between cubemaps with 6 single images or a cubecross. You can take the one included in ''data/Aircraft/Generic/Effects'' or you can use your own. | |||
''"texture= n6"'' is the path to the rainbow-texture. | |||
''"texture= n7"'' path to the fresnel-texture. | |||
''"texture= n8"''is the path to the greymap. | |||
Line 130: | Line 121: | ||
article compiled by Liam Gathercole and Heiko Schulz, please feel free to change/add more details if further enhancements can be made. | article compiled by Liam Gathercole and Heiko Schulz, please feel free to change/add more details if further enhancements can be made. | ||
--[[User:HHS|HHS]] 21:52, 22 September 2010 (UTC) | --[[User:HHS|HHS]] 21:52, 22 September 2010 (UTC) | ||
[[Category:Aircraft enhancement|Aircraft Reflection Shader]] | [[Category:Aircraft enhancement|Aircraft Reflection Shader]] | ||
[[Category:Howto|Aircraft Reflection Shader]] | [[Category:Howto|Aircraft Reflection Shader]] |