13,212
edits
(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 | 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}} | |||
{{ | |||
}} | |||
It all began with a simple ReflectionShader, which simply adds a spherical map on the surface of the object. This shader works on | 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}} | |||
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! | |||
Later it had been enhanced by a [[Howto: Use the normal map effect in aircraft| | |||
=== 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 == | ||
{{ | {{caution|See caution at the top of the article}} | ||
}} | |||
=== 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. | ||