bk117reflectglas.eff 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Reflections
  3. PARAMETERS: There are two forms of cube map texture:- vertical cross and 6 images.
  4. Either can be used - alternative forms are shown in <parameters> and in <texture-unit>
  5. The reflection is set proportional to the shininess of the material. Thus by
  6. varying the material shininess value over or between objects the amount of
  7. refection can be controlled. The overall amount of reflection may be
  8. adjusted by the use of <refl_correction> -1.0 (fully transparent)- 1.0 (fully opaque).
  9. The overall values of the noisiness, coloured fringing or fresnel effect may be adjusted
  10. by the use of <noisiness>, <rainbowiness> and <fresneliness>.
  11. If your result is too dark/too light the overall ambient light value can be adjusted
  12. by the use of <ambient_correction>. This correction also takes out some of the blueness
  13. added as default to compensate for the lack of reflection.
  14. To use a reflection map set <reflect_map> to 1,and the path to the map texture in
  15. <texture n="8">
  16. USE: To use the default reflection effect (controlled by material shininess values) use
  17. <effect>
  18. <inherits-from>Effects/reflect</inherits-from>
  19. <object-name>Fuselage</object-name>
  20. </<effect>
  21. To use your own reflection effectuse
  22. <effect>
  23. <inherits-from>Aircraft/Lightning/Models/Effects/lightningreflect</inherits-from>
  24. <object-name>Fuselage</object-name>
  25. </<effect>
  26. in your model file.
  27. To use your own effect place your efffect file containing something like this:
  28. <name>Effects/lightningreflect</name>
  29. <inherits-from>Effects/reflect</inherits-from>
  30. and the the modified tags in the path as above
  31. EXAMPLES: You can find examples of both usages in the Hunter and Lightning models.
  32. -->
  33. <PropertyList>
  34. <name>Effects/bk117reflect</name>
  35. <inherits-from>Effects/reflect</inherits-from>
  36. <parameters>
  37. <texture n="5">
  38. <type>cubemap</type>
  39. <!-- use this form for a cube cross
  40. <image>Aircraft/Generic/Effects/CubeCrosses/blue_sky.png</image>-->
  41. <!-- use this form for a 6 image cube map -->
  42. <images>
  43. <positive-x>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_px.png</positive-x>
  44. <negative-x>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_nx.png</negative-x>
  45. <positive-y>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_py.png</positive-y>
  46. <negative-y>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_ny.png</negative-y>
  47. <positive-z>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_pz.png</positive-z>
  48. <negative-z>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_nz.png</negative-z>
  49. </images>
  50. </texture>
  51. <texture n="6">
  52. <image>Aircraft/Generic/Effects/Rainbow.png</image>
  53. <filter>linear-mipmap-linear</filter>
  54. <wrap-s>repeat</wrap-s>
  55. <wrap-t>repeat</wrap-t>
  56. <internal-format>normalized</internal-format>
  57. </texture>
  58. <texture n="7">
  59. <image>Aircraft/Generic/Effects/FresnelLookUp.png</image>
  60. <filter>linear-mipmap-linear</filter>
  61. <wrap-s>repeat</wrap-s>
  62. <wrap-t>repeat</wrap-t>
  63. <internal-format>normalized</internal-format>
  64. </texture>
  65. <texture n="8">
  66. <image>Aircraft/bk117/Models/Effects/greymap.png</image>
  67. <filter>linear-mipmap-linear</filter>
  68. <wrap-s>repeat</wrap-s>
  69. <wrap-t>repeat</wrap-t>
  70. <internal-format>normalized</internal-format>
  71. </texture>
  72. <rendering-hint>transparent</rendering-hint>
  73. <shade-model>smooth</shade-model>
  74. <rainbowiness type="float">0.35</rainbowiness>
  75. <fresneliness>0.0</fresneliness>
  76. <noisiness>0.0</noisiness>
  77. <refl_correction>1</refl_correction>
  78. <ambient_correction>0.0</ambient_correction>
  79. <reflect_map>0</reflect_map>
  80. </parameters>
  81. </PropertyList>