This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
FAQ
编程
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
应用程序接口
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
CIGI Client Plugin
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 Settings, States tab.

Options

Specify the following options:

  • Use Insets - toggles terrain insets on and off. Disabling insets leads to performance gain.
    Notice
    When insets are disabled, two adjacent LODs aren't blended together if there is no data for the more detailed LOD: masks used for such LODs blending aren't generated. In the areas with no data, holes or sharp edges will occur.
  • Fast Frustum Culling - enables/disables optimization of frustum culling. When enabled, the number of culled polygons increases thereby increasing performance. If you have some issues with polygons rendering, try to disable the option (however, note that performance may drop).
  • Filter Mask Albedo - enables/disables linear filtering for the masks of the albedo LODs.
  • Filter Mask Normal - enables/disables linear filtering for the masks of the normal LODs.

Post Processing

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

Visualizer

  • LODs - enables/disables visualizer for LODs. One of the following:
    • Albedo - shows visualizer for albedo LODs.
    • Normal - shows visualizer for normal LODs.
    • None - disables visualizer for LODs.
  • No imagery Data - enables visualizer for areas with no imagery data available.

Parameters

Parameters

Material Settings, Parameters tab.

  • Shadow Offset - offset along the Z axis of the height LODs that cast shadows. If the low poly LOD casts shadows to the high poly LOD in areas where no shadows should be rendered, this parameter can be used to reduce this effect.
  • LOD Padding - distance from the LOD edge to which this LOD is dilated (the polygons are rendered outside the edges of the LOD). Decreasing the value leads to decreasing the number of rendered polygons. This value is used to adjust smooth transitions between LODs and improve performance.
    Terrain Grid with LOD Padding = 0.1
    Terrain Grid with LOD Padding = 0.3
  • Frustum Culling Padding - value, by which the borders of the current frustum are increased. Frustum culling is performed for the frustum of the increased size. By the maximum value of 1, the frustum borders will be increased by the size of the current frustum.
  • Subpixel Polygons Reduction - minimum allowed ratio of a polygon size (in screen space) to the size of an area seen in the viewport. If the ratio calculated for the polygon is less than this value, such polygon will be removed. Polygons rendered at the distance between the camera and its near clipping plane aren't removed. This parameter should be used for terrain optimization.
    Terrain Grid with Subpixel Polygons Reduction = 10
    Terrain Grid with Subpixel Polygons Reduction = 30
  • Back Face Culling - multiplier for the angle between the tessellation patch normal and the camera's view direction. The parameter is used for culling the tessellation patches that are turned to the camera by their back faces. The range of values is [0; 1]. The higher the value, the less the angle between the patch normal and the camera's direction is required for culling this patch. For example, the parameter culls the back of the mountain: the number of rendered polygons decreases and performance improves.
  • Oblique Frustum Culling - multiplier for culling tessellation patches beyond the oblique frustum plane. The range of values is [0; 1]. The higher the value, the more pathes will be culled. Try reducing this value if excessive polygon culling occurs (can be noticed, for example, in planar reflections of a low-poly terrain).

Base

  • Albedo - albedo color multiplier.
  • Roughness - roughness multiplier.
  • Microfiber - microfiber multiplier.

Default

  • Material mask - specifies material bit-mask.

Fade Lods

  • Albedo - linear interpolation factor for albedo LODs. Determines crossfading smoothness.
  • Normal - linear interpolation factor for normal LODs. Determines crossfading smoothness.
  • Height - linear interpolation factor for height LODs. Determines crossfading smoothness.
  • Masks - linear interpolation factor for masks LODs. Determines crossfading smoothness.
Last update: 2018-06-04
Build: ()