bk117reflect.eff 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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-bump-spec</inherits-from>
  36. <parameters>
  37. <texture n="4">
  38. <image>Aircraft/bk117/Models/Effects/bumpmap.png</image>
  39. <filter>linear-mipmap-linear</filter>
  40. <wrap-s>repeat</wrap-s>
  41. <wrap-t>repeat</wrap-t>
  42. <internal-format>normalized</internal-format>
  43. </texture>
  44. <texture n="5">
  45. <type>cubemap</type>
  46. <!-- use this form for a cube cross
  47. <image>Aircraft/Generic/Effects/CubeCrosses/real.blue_sky.png</image>
  48. -->
  49. <!-- use this form for a 6 image cube map -->
  50. <images>
  51. <positive-x>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_px.png</positive-x>
  52. <negative-x>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_nx.png</negative-x>
  53. <positive-y>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_py.png</positive-y>
  54. <negative-y>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_ny.png</negative-y>
  55. <positive-z>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_pz.png</positive-z>
  56. <negative-z>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_nz.png</negative-z>
  57. </images>
  58. </texture>
  59. <texture n="6">
  60. <image>Aircraft/Generic/Effects/Rainbow.png</image>
  61. <filter>linear-mipmap-linear</filter>
  62. <wrap-s>repeat</wrap-s>
  63. <wrap-t>repeat</wrap-t>
  64. <internal-format>normalized</internal-format>
  65. </texture>
  66. <texture n="7">
  67. <image>Aircraft/Generic/Effects/FresnelLookUp.png</image>
  68. <filter>linear-mipmap-linear</filter>
  69. <wrap-s>repeat</wrap-s>
  70. <wrap-t>repeat</wrap-t>
  71. <internal-format>normalized</internal-format>
  72. </texture>
  73. <texture n="8">
  74. <image>Aircraft/bk117/Models/Effects/greymap.png</image>
  75. <filter>linear-mipmap-linear</filter>
  76. <wrap-s>repeat</wrap-s>
  77. <wrap-t>repeat</wrap-t>
  78. <internal-format>normalized</internal-format>
  79. </texture>
  80. <rendering-hint>transparent</rendering-hint>
  81. <shade-model>smooth</shade-model>
  82. <rainbowiness type="float">0.01</rainbowiness>
  83. <fresneliness>0.0</fresneliness>
  84. <noisiness>0.0</noisiness>
  85. <refl_correction><use>/sim/rendering/refl_correction</use></refl_correction>
  86. <ambient_correction>0.1</ambient_correction>
  87. <reflect_map>1</reflect_map>
  88. </parameters>
  89. </PropertyList>