Howto:Aircraft reflection shader: Difference between revisions

Jump to navigation Jump to search
Consolidating the warnings into a caution put at the top of the article. Left cations on top of relevant sections pointing to the top message box; minor copyediting
(some changes and a note)
(Consolidating the warnings into a caution put at the top of the article. Left cations on top of relevant sections pointing to the top message box; minor copyediting)
Line 1: Line 1:
{{stub}}
{{stub}}
{{forum|47|Effects & Shaders}}
{{forum|47|Effects & Shaders}}
{{caution|
The [[model-combined effect]] shader have '''replaced''' the separate reflection shaders.
The separate reflection shaders should be considered '''deprecated''' and '''should not be used for new development'''.}}


[[File:B29 shader.jpg|thumb|270px|Reflection Shader applied to the [[Boeing B-29 Superfortress|B-29]]. It shows a shiny, high-reflective blank metal.]]
[[File:B29 shader.jpg|thumb|270px|Reflection Shader applied to the [[Boeing B-29 Superfortress|B-29]]. It shows a shiny, high-reflective blank metal.]]
Line 6: Line 11:


== Reflection-Shaders - history and description ==
== Reflection-Shaders - history and description ==
We have currently different Reflection-Shaders, which represents the different states of development process behind.  
We have currently different reflection shaders, which represents the different states of development process behind.  


=== reflect.eff ===
=== reflect.eff ===
 
{{caution|See caution at the top of the article}}
{{warning|This shader is deprecated, and should not be used by new development. It is left in due to the vast amount of aircraft relying on it that need to be upgraded to model-combined-deferred/model-combined-transparent.
Use model-combined-deferred/model-combined-transparent instead
}}
   
   
It all began with a simple ReflectionShader, which simply adds a spherical map on the surface of the object. This shader works on not-UVmapped surfaces. Ideal for simple chrome parts.
It all began with a simple ReflectionShader, which simply adds a spherical map on the surface of the object. This shader works on non UV-mapped surfaces. Ideal for simple chrome parts.


'''Example Aircraft:''' B29
'''Example Aircraft:''' B29


=== reflect-bump-spec.eff ===
=== reflect-bump-spec.eff ===
{{caution|See caution at the top of the article}}


{{warning|This shader is deprecated, and should not be used by new development. It is left in due to compatibility reasons.
Later it had been enhanced by a [[Howto: Use the normal map effect in aircraft|normal map]]. This makes the surface appear "bumpy" depending on the used normal map. The alpha channel of the normal map also defines the specularity of the surface. This shader works only on UV-mapped surfaces!
Use model-combined-deferred/model-combined-transparent instead
}}
 
Later it had been enhanced by a [[Howto: Use the normal map effect in aircraft|Normalmap]]. This makes the surface appear "bumpy" depending on the used normalmap. The alpha channel of the normalmal also defines the specularity of the surface. This shader works only on UVmapped surfaces!


=== model-combined-deferred.eff and model-combined-transparent.eff ===  
=== model-combined-deferred.eff and model-combined-transparent.eff ===  
Line 37: Line 36:


== How to implement the simple ReflectionShader: reflect.eff ==
== How to implement the simple ReflectionShader: reflect.eff ==
{{warning| This Tutorial will be replaced soon as the mentioned shader is deprecated, and should not be used by new development. It is left in due to the vast amount of aircraft relying on it that need to be upgraded to model-combined-deferred/model-combined-transparent.
{{caution|See caution at the top of the article}}
Use model-combined-deferred/model-combined-transparent instead.
 
}}
=== the simple and quick 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.


Navigation menu