Howto:Aircraft reflection shader: Difference between revisions

Jump to navigation Jump to search
explanation started
mNo edit summary
(explanation started)
Line 8: Line 8:


==How to implement==
==How to implement==
===the simple Method===
===the simple and quick Method===


This is a simple and quick method for the simple ReflectionShader, but gives not the freedom to change the later appearance of the aircraft like setting the strength of the reflection or choosing a different cubemap.
This is a simple and quick method for the simple ReflectionShader, but gives not the freedom to change the later appearance of the aircraft like setting the strength of the reflection or choosing a different cubemap.
Line 45: Line 45:
The next method describes how to add the effect of a customized simple ReflectionShader, which allows more freedom.
The next method describes how to add the effect of a customized simple ReflectionShader, which allows more freedom.


Creates a Folder inside your Models-folder called "Effects".
Create a Folder inside your Models-folder called "Effects".
Now you create a new .eff-file called like that: foo_effects.eff and save it to the "Effects"-folder:
Now you create a new .eff-file called like that: foo_reflect.eff and save it to the "Effects"-folder:


  <nowiki><!--foo_effects.eff--></nowiki>
  <nowiki><!--foo_reflect.eff--></nowiki>
  <PropertyList>
  <PropertyList>
  <name>Effects/ec130reflect</name>
  <name>Effects/foo_reflect</name>
  <inherits-from>Effects/reflect</inherits-from>
  <inherits-from>Effects/reflect</inherits-from>
   <parameters>
   <parameters>
Line 98: Line 98:
   </parameters>
   </parameters>
  </PropertyList>
  </PropertyList>
Explanation: ''"texture= n5"'' sets the image wich will be later the reflection. You can choose a cubemap with 6 single images or a cubecross. You take the one included in ''data/Aircraft/Generic/Effects'' or you can use your own. 




884

edits

Navigation menu