This page has been translated automatically.
Программирование
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

terrain_global_base

A terrain_global_base material is a default material for the global terrain object. Via this material you can adjust different visual and optimization parameters and control the post processing for the global terrain.

Notice
Casting of shadows for this material is disabled by default. You can enable it via the Common tab
Prior Knowledge
This article assumes you have prior knowledge of the following topics. Please read them before proceeding:

States

The terrain_global_base material has the following Options and Post processing states.

States

Material Editor, States tab.

Options

Specify the following options:

  • Fade lods height - enables gradual linear interpolation between the height LODs.
  • Fade lods albedo - enables gradual linear interpolation between the albedo LODs.
  • Fade lods normal - enables gradual linear interpolation between the normal LODs.
    Notice
    When smooth fading between LODs is not critical, these three options above can be disabled to gain performance.
  • Culling frustum - enables frustum polygon culling. Polygons outside the frustum are culled.
  • Culling lod - enables LOD polygon culling. Polygons of a more detailed LOD are culled if a less detailed LOD is visible.
  • Culling height - enables height culling. Reduces the number of polygons for areas with equal height values to 2 triangles.
    Notice
    These three options above increase performance.
  • Filter mask height - enables linear filtering for the masks of the height LODs.
  • Filter mask albedo - enables linear filtering for the masks of the albedo LODs.
  • Filter mask normal - enables linear filtering for the masks of the normal LODs.
    Notice
    When smooth linear filtration is not critical, these three options can be disabled to gain performance.
  • Attenuation - the shape of LOD fading when the distance changes:
    • Rectangle.
    • Circle.
  • Cubic filter albedo - enables cubic interpolation for albedo LODs.
  • Cubic filter normal - enables cubic interpolation for normal LODs.
    Notice
    These two options above are used for smoothing of low-detail data. However, when enabled, they significantly reduce performance.

Post Processing

  • SSAO - enables SSAO (screen-space ambient occlusion) post for the global terrain.
  • SSR - enables SSR (screen-space reflections) post for the global terrain.
  • SSS - enables SSS (sub-surface scattering) post for the global terrain.
  • DOF - enables DOF (depth of field) for the global terrain.
  • Motion blur - enables motion blur for the global terrain.
  • Sun Shafts - enables sun shafts for the global terrain.

Parameters

Parameters

Material Editor, Parameters tab.

.

  • fade_lods_albedo - linear interpolation factor for albedo LODs. Determines crossfading smoothness.
  • fade_lods_height - linear interpolation factor for height LODs. Determines crossfading smoothness.
  • fade_lods_normal - linear interpolation factor for normal LODs. Determines crossfading smoothness.
  • Material mask - specifies material bit-mask.
Last update: 03.07.2017
Build: ()