This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Basics
Rendering
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Version Control
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

grass_impostor_base

A grass_impostor_base material is used for vegetation impostors. It can be applied to grass objects that, in turn, can be used as impostors for trees.

Impostor Trees

States#

States

Material Settings, States Tab

Options#

Auxiliary#

Auxiliary rendering pass is used for writing an additional texture into an auxiliary color buffer. Detail information on the pass can be found in the Rendering Sequence article. The pass can be used for custom post-process effects.

Notice
Enabling this option activates the additional Auxiliary texture and Auxiliary parameters.

Noise#

Noise activates spatial color noise texture, so the grass is colored according to it. The noise texture can add irregularity to the color of the grass field or it can color the grass.

Notice
Enabling this option activates the additional Noise texture and Noise parameters.

Ambient Occlusion#

Ambient Occlusion enables the ambient occlusion that sets shading arising from the ground to the top of the grass blade.

Notice
Enabling this option activates the additional Ambient Occlusion parameters.

AO Map#

AO Map enables the ambient occlusion effect. This effect is used to modulate global environment illumination using baked shadows from environment probes. Enabling the option activates the ambient occlusion texture.

Normal Map#

Normal Map enables the normal map for the grass impostors. This option is used to fake the relief on the impostor surface.

Shading Map#

Shading Map enables the shading texture for the material.

Microfiber Map#

Microfiber Map enables using of the Alpha channel of the shading texture as a microfiber map.

Specular Map#

Specular Map enables using of the B channel of the shading texture as a specular reflection intensity map.

Translucent Map#

Translucent Map enables the translucence effect and activates an additional translucent texture.

Depth Map#

Depth Map activates an additional depth texture.

Screen Aligned#

Screen Aligned sets the impostor parallel to the screen plane. The option should be enabled for correct rotation of impostors when the camera looks down. We recommend you to use this option only when impostor rotation is required, as in other cases it may lead to visual artifacts.

Notice
It is not recommended to enable this option when multi-monitor configuration is used: noticeable seams between monitors may occur.

Lerp#

Lerp enables smooth linear interpolation of sprites when the camera rotates around the object. This state should be enabled, if the grabbed impostor textures store low number of frames (i.e. the Phi and Theta values are small).

The following options are available:

  • Disabled - linear interpolation between the sprites is disabled.
  • Lerp Unoptimized - legacy linear interpolation mode (interpolation is calculated during the depth pre-pass, making it three times slower than the mode below).
  • Lerp With Separate Opacity Map - optimized linear interpolation mode using an additional Opacity Lerp Map).

Selecting the last item in the list activates an additional opacity lerp map.

Lerp Mode#

Linear interpolation mode to be used, one of the following:

  • Full - sprites are interpolated horizontally and vertically.
  • Horizontal Only - sprites are interpolated only horizontally, vertically switching is used, this mode can be used for example if we do not fly above the impostors, but rather move around them.

Lerp Fix Blur#

This option helps making details of impostor images look sharper and less blurred reducing the negative effect of linear interpolation.

Notice
Lerp Fix Blur mostly improves the look of impostors generated for vegetation, or can be used for sprites having some irregular patterns. It should be disabled for sprites having geometry patterns, like bricks and so on.

Up Direction#

Up Direction makes impostors always point upwards.

When the impostors are oriented along normal of the parent node (usually the terrain), trees grow almost perpendicular to the terrain slopes. To make the trees pointing up, the Up Direction option should be enabled. At that, the impostors normals remain the same. It allows you to get correct shadowing of trees impostors on the steep slopes.

Animation#

Animation option enables animation for objects (e.g., for plants swinging in the wind). Available modes:

  • None — animation is disabled.
  • Animation — standard animation is used.

    Standard Animation of Impostors
  • Field Animation — standard animation is used together with animation produced by Field Animation.

    Standard Animation of Impostors + Field Animation
Notice
Enabling this option activates the additional Animation parameters.

Jitter Transparency#

Jitter Transparency enables creating deferred transparency for Alpha Test materials by using jittering. The state can be used when such result is acceptable and post-effects are applied to the material.

Mip Bias#

Mip Bias activates an additional mip bias parameter. It is used to adjust mip mapping.

Visibility Mask#

Visibility Mask activates an additional visibility mask texture and visibility mask threshold parameter. It is used to cut out grass according to the mask texture.

Post Processing#

Material SSAO#

SSAO enables screen space ambient occlusion.

Material SSR#

SSR enables screen space reflections.

Material SSSSS#

SSSSS enables screen-space subsurface scattering.

Material DOF#

DOF enables the depth of field effect.

Material Motion Blur#

Motion Blur enables the motion blur effect.

Screen-Space Shadows#

Screen-Space Shadows enables the screen-space shadows effect.

Textures#

Textures available for the material. All textures fields have set default textures, which can be replaced by your own ones. Availability of some textures depends on the set States values.

Textures

Material Settings, Textures Tab

Base Textures#

Albedo Texture#

An albedo texture that specifies the color of the impostor surface. To create an albedo texture for impostor, use Impostors Creator tool: the texture will be set automatically after generation.

The texture is 4-channelled (RGBA):

  1. RGB values store color information.
  2. An alpha (A) value stores transparency information.

Shading Texture#

A shading texture is a container for four different textures:

  • The R channel stores a metalness texture.
  • The G channel stores a roughness texture.
  • The B channel stores a specular texture.
    Notice
    The texture from this channel can be used only if the Specular Map option is enabled.
  • The A channel stores a microfiber texture.
    Notice
    The texture from this channel can be used only if the Microfiber Map option is enabled.

Normal Texture#

Normal texture of the grass impostor. The texture is used to fake the relief on the impostor surface. To create a normal texture for impostor, use Impostors Creator tool.

Notice
Unigine Engine expects a normal map in DirectX format. If your normal map is in OpenGL format, tick Invert G Channel in the import menu. As a general rule, if the lighting seems weird, try inverting the G Channel and see if it gets better.

Additional Textures#

Ambient Occlusion Texture#

Ambient occlusion texture modulates the global environment illumination, for example, when an object is lighter at the top from sky above, and darker at the bottom from the ground below. The texture uses only R channel.

Translucent Texture#

Translucent texture stores information on material's translucency. For example, by using this texture, it is possible to specify parts of the object that aren't translucent (the Translucent parameter won't affect them).

Auxiliary Texture#

Auxiliary texture is used for auxiliary rendering pass.

Notice
The texture is available only if Auxiliary is enabled.

Depth Texture#

Depth texture stores information on the material's depth.

The texture is 1-channelled.

Notice
The texture is available only if Depth Map is enabled.

Opacity Lerp Map#

This texture is used for smooth linear interpolation of sprites when the camera rotates around the object avoiding abrupt switching between the sprites. Linear interpolation based on this texture is performance-friendly, as it is performed during the deferred pass. To create a texture for an impostor, use the Impostors Creator tool: the texture is set automatically after generation.

The texture is 4-channelled.

Notice
The texture is available only if Lerp is enabled.

Noise Texture#

Noise texture is used to color the grass (for example, to match the colors of the terrain) or to add irregularity to the color of the grass field. In both cases, the colors of the grass diffuse texture and the spatial noise texture are blended in the overlay mode.

The texture is 3-channelled (RGB).

Notice
The texture is available only if Noise is enabled.

Visibility Mask Texture#

Visibility Mask texture is used to cut out grass.

The texture is 1-channelled (R).

  • R — visibility mask.
Notice
The texture is available only if Visibility Mask is enabled.

Parameters#

Availability of some parameters depends on the set States field values.

Material Settings, Parameters Tab

Material Mask#

Material Mask parameter specifies a decal bit-mask. If the material mask of the decal material matches the material mask of the surface material, the decal will be projected.

Transform Parameters#

This group of parameters determines coordinates transformation of impostors

Transform Parameters

Phi#

Phi determines the number of frames grabbed into the impostor texture (horizontal camera rotation).

Theta#

Theta determines the number of frames grabbed into the impostor texture (vertical camera rotation).

Size#

Size size of the object for which impostors were grabbed.

Pivot Offset#

Pivot Offset offset of the pivot point from the center of the object's bounding box.

Base Shading Parameters#

Albedo#

Albedo is a multiplier of the base color of the surface provided by the albedo texture.

Metalness#

Metalness is a multiplier of metalness.

Roughness#

Roughness is a multiplier of the roughness of a surface.

Specular#

Specular is a multiplier for the intensity of highlight provided by the specular texture.

Microfiber#

Microfiber is a coefficient to scale the intensity of the microfiber effect (provided by the microfiber texture). This parameter creates an effect of the napped surface. The higher the value, the higher the microfiber effect is.

Translucent#

Translucent is a coefficient to scale the translucent effect, which permits light to pass through the grass blades, but diffuses it so objects behind the grass blades are not visible. The higher the value, the more translucent the material is.

Alpha Intensity#

Alpha Intensity is a coefficient to scale the value of the alpha channel of the grass diffuse texture. The higher the value, the bigger areas of the texture are rendered.

Shadow Offset#

Shadow Offset sets an offset of grass impostors shadows.

Orientation Normals#

When the Up Direction option is used for impostors that are oriented along normal of the parent node (usually - a terrain), the normal map set for impostors is blended with the normal map produced by such orientation settings. Orientation Normals sets a coefficient of such normal maps blending. The default value is 1. The higher the value, the more intense the effect of orientation settings.

Mip Bias#

Mip Bias is a coefficient for mip maps adjusting.

Animation Parameters#

Stem Noise#

Stem noise is a coefficient to scale a spatial noise that diversifies the direction of movement of the grass.

  • 0 makes the grass move uniformly.
  • Increasing the value makes the grass blades movement more random.

Stem Offset#

Stem offset is a coefficient to scale an amplitude of horizontal movement of the grass.

Stem Radius#

Stem radius is a coefficient to scale an amplitude of vertical movement of the grass.

Stem Scale#

Stem scale is a coefficient to scale the speed of grass movement.

Ambient Occlusion Parameters#

Visibility#

Visibility specifies how the AO has influence on grass.

Multiplier#

Multiplier is a coefficient to scale the occlusion that sets shading starting from the ground to the top of the grass blades. The higher the value, the less shaded the grass is.

Power#

Power is the rate of ambient occlusion appearance on the grass.

Impact On Diffuse#

Impact On Diffuse shows how ambient occlusion affects the grass diffuse texture.

Noise Parameters#

Notice
Available only when Noise is enabled.

Transform#

Transform specifies spatial noise texture coordinates transformation.

Scale#

Scale is a coefficient to scale intensity of the spatial noise texture.

Auxiliary Parameters#

Auxiliary Color#

Color is a color for the auxiliary rendering pass.

Notice
Available only when Auxiliarystate is enabled.

Visibility Mask Threshold#

Visibility Mask Threshold determines the threshold of the visibility mask texture.

Notice
Available only when Visibility Mask option is enabled.
Last update: 2024-12-13
Build: ()