Model-combined effect

From FlightGear wiki
Revision as of 18:38, 3 January 2015 by Johan G (talk | contribs) (Created page with "{{stub}} The '''model-combined effect''' uses the "ubershader" to provide any or all of diffuse, light-map, reflection, bump-mapping and dirt effects on the model on which it...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This article is a stub. You can help the wiki by expanding it.

The model-combined effect uses the "ubershader" to provide any or all of diffuse, light-map, reflection, bump-mapping and dirt effects on the model on which it is applied.

Before this shader was available only one effect at a time could be used.

Caution

Do not use in any situation the normal-map enabled effect on objects that are not

  • completely uv-mapped to a texture,
  • and/or that texture is not available at runtime.

The binormal/tangent generator needs the texture information at runtime, failing to find this it crashes, causing a segfault for FlightGear.

When are the effects used

The effect responds to the quality setting of the Model slider in the advanced shader configuration, in the following order:

Model slider setting Effects used (if available)
Light-map and dirt Reflection Bump-mapping
Lowest quality Yes No No
Medium quality Yes Yes No
Highest quality Yes Yes Yes

Related content

Readme