Model-combined effect: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(→‎Wiki articles: + Rembrandt, older shaders/effects)
(The quality settings response has been deprecated in newer versions since it didn't bring about any real benefit. Shader is now off with Model slider to the left, on with Model slider anywhere else)
Line 15: Line 15:


== When are the effects used ==
== When are the effects used ==
{{notice | message = Newer versions of the shader do not respond to the quality settings anymore, since there is no real benefit, compared to just turning the shader on and off.
The shader is turned off with ''Model'' slider to the left, turned on with full functionality for any other position of the ''Model'' slider.
The features can be turned on/off as needed for the desired material appearance via configuration of the effect parameters}}
The effect responds to the quality setting of the ''Model'' slider in the advanced shader configuration, in the following order:
The effect responds to the quality setting of the ''Model'' slider in the advanced shader configuration, in the following order:



Revision as of 10:56, 30 June 2015

This article is a stub. You can help the wiki by expanding it.


The model-combined effect uses the "uber-shader" 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

Template:Notice

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

Wiki articles

Older shaders

Readme